cpa.CPA.get_pert_embeddings#

CPA.get_pert_embeddings(dosage=1.0, pert=None)[source]#

Computes all/specific perturbation (e.g. drug) embeddings

Parameters:
dosage float

Dosage of interest, by default 1.0

pert str, optional

Perturbation name if single perturbation embedding is desired

Returns:

: AnnData with perturbation embeddings in .X and perturbation names saved in .obs[‘pert_name’].