Skip to content

Commit

Permalink
Merge pull request #20 from icbi-lab/heatmap_hotfix
Browse files Browse the repository at this point in the history
use_rep fix
  • Loading branch information
grst authored Sep 9, 2021
2 parents 7ee25b0 + 03f54d7 commit e8960f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion infercnvpy/pl/_chromosome_heatmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def chromosome_heatmap(
raise ValueError(
"'cnv_leiden' is not in `adata.obs`. Did you run `tl.leiden()`?"
)
tmp_adata = AnnData(X=adata.obsm["X_cnv"], obs=adata.obs)
tmp_adata = AnnData(X=adata.obsm[f"X_{use_rep}"], obs=adata.obs)

# re-sort, as saving & loading anndata destroys the order
chr_pos_dict = dict(
Expand Down

0 comments on commit e8960f9

Please sign in to comment.