scvi.model.PEAKVI.get_library_size_factors

PEAKVI.get_library_size_factors(adata=None, indices=None, batch_size=128)[source]

Return library size factors.

Parameters
adata : AnnData | NoneOptional[AnnData] (default: None)

AnnData object with equivalent structure to initial AnnData. If None, defaults to the AnnData object used to initialize the model.

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

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

batch_size : intint (default: 128)

Minibatch size for data loading into model. Defaults to scvi.settings.batch_size.

Return type

{str: ndarray}Dict[str, ndarray]

Returns

Library size factor for expression and accessibility