episcanpy.api.pl.dendrogram¶
- episcanpy.api.pl.dendrogram(adata, groupby, dendrogram_key=None, orientation='top', remove_labels=False, show=None, save=None)¶
Plots a dendrogram of the categories defined in groupby.
See
dendrogram()
.- Parameters
- adata :
AnnData
AnnData
- groupby :
str
str
Categorical data column used to create the dendrogram
- dendrogram_key :
str
|None
Optional
[str
] (default:None
) Key under with the dendrogram information was stored. By default the dendrogram information is stored under .uns[‘dendrogram_’ + groupby].
- orientation :
str
str
(default:'top'
) Options are top (default), bottom, left, and right. Only when show_correlation is False.
- remove_labels :
bool
bool
(default:False
) - {show_save_ax}
- adata :
- Returns
Examples
>>> import scanpy as sc >>> adata = sc.datasets.pbmc68k_reduced() >>> sc.tl.dendrogram(adata, 'bulk_labels') >>> sc.pl.dendrogram(adata, 'bulk_labels')