stlearn.add.annotation¶
-
stlearn.add.annotation(adata: anndata._core.anndata.AnnData, label_list: list, use_label: str = 'louvain', copy: bool = False) → Optional[anndata._core.anndata.AnnData][source]¶ Adding annotation for cluster
- Parameters
adata – Annotated data matrix.
label_list – List of the labels which assigned to current clustering result.
use_label – Choosing clustering type.
copy – Return a copy instead of writing to adata.
- Returns
Depending on copy, returns or updates adata with the following fields.
**[clustering method name]_anno** (adata.obs field) – The annotation of cluster results.