API¶
You can import perturbseq as:
import perturbseq as perturb
Note
Testnote
Preprocessing: pp¶
Perturbation assignments and queries
|
Compute transcript per transcript |
|
Get a list of perturbations in the dataset |
|
Get perturbations present as obs |
|
Make obs with control guides |
|
Keep only cells with one perturbation |
|
Number of perturbations per cell |
|
Counts the number of cells for each perturbation. |
|
Delete perturbations from adata.var_names |
Sub/down-sampling
|
Subsample cells/perturbation |
|
Downsample counts per cell to a fraction |
Summarization across perturbations
|
Get the mean of an obs across pre-defined groups. |
|
Get program score for each cell, by averaging program genes |
Preparing for modeling
|
Design matrix for linear model from obs |
|
Split cells into training, validation and test |