Skip to content

Commit

Permalink
reformat other file
Browse files Browse the repository at this point in the history
  • Loading branch information
chelseabright96 committed Jun 19, 2024
1 parent 0573377 commit 4841a08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scgen/_scgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def batch_removal(self, adata: Optional[AnnData] = None) -> AnnData:
adata_raw = AnnData(X=adata.raw.X, var=adata.raw.var)
adata_raw.obs_names = adata.obs_names
corrected.raw = adata_raw
corrected.obsm["latent"] = all_shared_ann[corrected.obs_names,:].X
corrected.obsm["latent"] = all_shared_ann[corrected.obs_names, :].X
corrected.obsm["corrected_latent"] = self.get_latent_representation(
corrected
)
Expand Down Expand Up @@ -314,7 +314,7 @@ def batch_removal(self, adata: Optional[AnnData] = None) -> AnnData:
adata_raw = AnnData(X=adata.raw.X, var=adata.raw.var)
adata_raw.obs_names = adata.obs_names
corrected.raw = adata_raw
corrected.obsm["latent"] = all_corrected_data[corrected.obs_names,:].X
corrected.obsm["latent"] = all_corrected_data[corrected.obs_names, :].X
corrected.obsm["corrected_latent"] = self.get_latent_representation(
corrected
)
Expand Down

0 comments on commit 4841a08

Please sign in to comment.