In chromosome_heatmap, remove unnecessary existence test and copying of adata.uns[f"{groupby}_colors"] to tmp_adata.uns (which was already defined to be equal to adata.uns in PR #72).
In chromosome_heatmap_summary, set tmp_adata.uns equal to adata.uns at definition, just as in chromosome_heatmap, and remove unnecessary test, as above. This prevents scanpy.pl.heatmap from issuing a dendrogram data not found warning and recomputing dendrogram when tmp_adata is passed with dendrogram=True.
I've also explicitly set tmp_obs index type to str. This avoids AnnData issuing ImplicitModificationWarning: Transforming to str index when tmp_adata is created.
In
chromosome_heatmap
, remove unnecessary existence test and copying ofadata.uns[f"{groupby}_colors"]
totmp_adata.uns
(which was already defined to be equal toadata.uns
in PR #72).In
chromosome_heatmap_summary
, settmp_adata.uns
equal toadata.uns
at definition, just as inchromosome_heatmap
, and remove unnecessary test, as above. This preventsscanpy.pl.heatmap
from issuing adendrogram data not found
warning and recomputing dendrogram whentmp_adata
is passed withdendrogram=True
.