DestVI.get_proportions(keep_noise=False, indices=None, batch_size=None)[source]

Returns the estimated cell type proportion for the spatial data.

Shape is n_cells x n_labels OR n_cells x (n_labels + 1) if keep_noise.

keep_noise : boolbool (default: False)

whether to account for the noise term as a standalone cell type in the proportion estimate.

indices : Sequence[int] | NoneOptional[Sequence[int]] (default: None)

Indices of cells in adata to use. Only used if amortization. If None, all cells are used.

batch_size : int | NoneOptional[int] (default: None)

Minibatch size for data loading into model. Only used if amortization. Defaults to scvi.settings.batch_size.

Return type