Skip to content

Commit

Permalink
allow heatmap to use user's dendrogram (#72)
Browse files Browse the repository at this point in the history
Co-authored-by: Gregor Sturm <gregor.sturm@i-med.ac.at>
  • Loading branch information
mmfalco and grst committed Mar 20, 2023
1 parent c020593 commit 05efcaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/infercnvpy/pl/_chromosome_heatmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def chromosome_heatmap(
"""
if groupby == "cnv_leiden" and "cnv_leiden" not in adata.obs.columns:
raise ValueError("'cnv_leiden' is not in `adata.obs`. Did you run `tl.leiden()`?")
tmp_adata = AnnData(X=adata.obsm[f"X_{use_rep}"], obs=adata.obs)
tmp_adata = AnnData(X=adata.obsm[f"X_{use_rep}"], obs=adata.obs, uns=adata.uns)

# transfer colors from adata if present
if f"{groupby}_colors" in adata.uns:
Expand Down

0 comments on commit 05efcaa

Please sign in to comment.