stlearn.add.add_deconvolution(adata: AnnData, annotation_path: Union[Path, str], copy: bool = False) Optional[AnnData][source]

Adding label transfered from Seurat

  • adata – Annotated data matrix.

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

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