cellflow.external.CFJaxSCVI.get_reconstructed_expression¶
- CFJaxSCVI.get_reconstructed_expression(data, use_rep='X_scVI', indices=None, give_mean=False, batch_size=1024)[source]¶
Return the reconstructed expression for each cell.
- Parameters:
data (
ndarray[tuple[Any,...],dtype[float64]] |AnnData) – AnnData or array-like with the data to reconstruct.use_rep (
str) – Key forobsmthat contains the latent representation to use.indices (
Sequence[int] |None) – Indices of cells in adata to use. IfNone, all cells are used.give_mean (
bool) – Whether to return the mean of the negative binomial distribution or the unscaled expression.batch_size (
int|None) – Minibatch size for data loading into model. Defaults toscvi.settings.batch_size.
- Return type:
- Returns:
: reconstructed_expression