sfaira.ui.UserInterface.load_data

UserInterface.load_data(data: anndata._core.anndata.AnnData, gene_symbol_col: Optional[str] = None, gene_ens_col: Optional[str] = None, obs_key_celltypes: Optional[str] = None)

Loads the provided AnnData object into sfaira.

If genes in the provided AnnData object are annotated as gene symbols,

please provide the name of the corresponding var column (or ‘index’) through the gene_symbol_col argument.

If genes in the provided AnnData object are annotated as ensembl ids,

please provide the name of the corresponding var column (or ‘index’) through the gene_ens_col argument.

You need to provide at least one of the two. :param data: AnnData object to load :param gene_symbol_col: Var column name (or ‘index’) which contains gene symbols :param gene_ens_col: ar column name (or ‘index’) which contains ensembl ids :param obs_key_celltypes: .obs column name which contains cell type labels.