stlearn.add.add_deconvolution

stlearn.add.add_deconvolution(adata: anndata._core.anndata.AnnData, annotation_path: Union[pathlib.Path, str], use_label: str = 'louvain', threshold: float = 0.9, copy: bool = False) → Optional[anndata._core.anndata.AnnData][source]

Adding label transfered from Seurat

Parameters
  • adata – Annotated data matrix.

  • annotation_path – Path of the output of label transfer result by Seurat

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