scvi.model.DestVI.get_gamma

DestVI.get_gamma(indices=None, batch_size=None, return_numpy=False)[source]

Returns the estimated cell-type specific latent space for the spatial data.

Parameters
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_numpy : boolbool (default: False)

if activated, will return a numpy array of shape is n_spots x n_latent x n_labels.

Return type

ndarray | {str: DataFrame}Union[ndarray, Dict[str, DataFrame]]