sccross.models.sccross.SCCROSSModel.perturbation_difGenes¶
-
SCCROSSModel.perturbation_difGenes(key, adata, obs_key, perturb_key, reference_key, genes, use_rep='X_pca', rep_dim=100)[source]¶ Obtain differential genes generated by perturbation
- Parameters
key (
str) – Domain keyadata (
AnnData) – Input datasetobs_key (
str) – Obs name we use to identify cellsperturb_key (
str) – Name of cells we would like to perturbreference_key (
str) – Name of cells we regard as referencegenes ([]) – Genes we would like to perturb
use_rep (
str) – Name of representation used by this datarep_dim (
int) – Dimension of representation used by this databatch_size – Size of minibatches
- Return type
- Returns
pd.DataFrame – Genes with their bias with shape \(n_{gene} \times n_{3}\)