cellflow.model.CellFlow.predict

CellFlow.predict(adata, covariate_data, sample_rep=None, condition_id_key=None, key_added_prefix=None, rng=None, **kwargs)[source]

Predict perturbation responses.

Parameters:
Return type:

dict[str, ndarray[tuple[Any, ...], dtype[float64]]] | None

Returns:

: If 'key_added_prefix' is None, a dict with the predicted sample representation for each perturbation, otherwise stores the predictions in obsm and returns None.