Skip to content

Commit

Permalink
fix latent
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Oct 16, 2024
1 parent 7dc16d2 commit 498d3be
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scenvi/ENVI.py
Original file line number Diff line number Diff line change
Expand Up @@ -626,12 +626,12 @@ def latent_rep(self):
:return: nothing, adds 'envi_latent' self.spatial_data.obsm and self.spatial_data.obsm
"""

self.spatial_data.obsm["envi_latent"] = self.encode(
self.spatial_data.obsm["envi_latent"] = np.asarray(self.encode(
self.spatial_data.X, mode="spatial"
)
self.sc_data.obsm["envi_latent"] = self.encode(
))
self.sc_data.obsm["envi_latent"] = np.asarray(self.encode(
self.sc_data[:, self.spatial_data.var_names].X, mode="sc"
)
))

def impute_genes(self):
"""
Expand Down

0 comments on commit 498d3be

Please sign in to comment.