scvi.model.base.BaseModelClass.setup_anndata

abstract static BaseModelClass.setup_anndata(adata, *args, **kwargs)[source]

Sets up the AnnData object for this model. A mapping will be created between data fields used by this model to their respective locations in adata.

None of the data in adata are modified. Only adds fields to adata.

Each model class deriving from this class provides parameters to this method according to its needs.

Return type

AnnData | NoneOptional[AnnData]