cellflow.data.DataManager.get_prediction_data¶
- DataManager.get_prediction_data(adata, sample_rep, covariate_data, rep_dict=None, condition_id_key=None)[source]¶
Get predictions for control cells.
Extracts source distributions from
'adata'and simulates cells perturbed with covariates defined in'covariate_data'.- Parameters:
adata (
AnnData) – AnAnnDataobject to extract control cells from.sample_rep (
str) – Key inobsmwhere the sample representation of the control is stored or'X'to useX.covariate_data (
DataFrame) – ADataFramewith columns defining the covariates as incellflow.model.CellFlow.prepare_data()and stored incellflow.model.CellFlow.data_manager.rep_dict (
dict[str,Any] |None) – Dictionary with representations of the covariates. If not provided,unsis used.condition_id_key (
str|None) – Key inDataFramethat defines the condition names.
- Return type:
- Returns:
: Training data for the model.