Skip to content

Commit 05efcaa

Browse files
mmfalcogrst
andauthored
allow heatmap to use user's dendrogram (#72)
Co-authored-by: Gregor Sturm <[email protected]>
1 parent c020593 commit 05efcaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/infercnvpy/pl/_chromosome_heatmap.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def chromosome_heatmap(
5555
"""
5656
if groupby == "cnv_leiden" and "cnv_leiden" not in adata.obs.columns:
5757
raise ValueError("'cnv_leiden' is not in `adata.obs`. Did you run `tl.leiden()`?")
58-
tmp_adata = AnnData(X=adata.obsm[f"X_{use_rep}"], obs=adata.obs)
58+
tmp_adata = AnnData(X=adata.obsm[f"X_{use_rep}"], obs=adata.obs, uns=adata.uns)
5959

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

0 commit comments

Comments
 (0)