stlearn.add.annotation(adata: AnnData, label_list: list, use_label: str = 'louvain', copy: bool = False) Optional[AnnData][source]

Adding annotation for cluster

  • 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.


  • Depending on copy, returns or updates adata with the following fields.

  • **[cluster method name]_anno** (adata.obs field) – The annotation of cluster results.