scgen.SCGEN.predict¶
- SCGEN.predict(ctrl_key=None, stim_key=None, adata_to_predict=None, celltype_to_predict=None, restrict_arithmetic_to='all')[source]¶
Predicts the cell type provided by the user in stimulated condition.
- Parameters
- ctrl_key : basestring
key for control part of the data found in condition_key.
- stim_key : basestring
key for stimulated part of the data found in condition_key.
- adata_to_predict : ~anndata.AnnData
Adata for unperturbed cells you want to be predicted.
- celltype_to_predict : basestring
The cell type you want to be predicted.
- restrict_arithmetic_to : basestring or dict
Dictionary of celltypes you want to be observed for prediction.
- Return type
- Returns
- predicted_cells: np nd-array
np nd-array of predicted cells in primary space.
- delta: float
Difference between stimulated and control cells in latent space