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