Simulate perturb-seq-like data for the perturbation heritability model
Source:R/simulate.R
simulate_pert.RdCells carry one of `n_perturb` perturbations (in three groups) or a non-targeting control (`"NT"`), have a continuous cell `state` and one of three cell types. Gene expression has perturbation (`p`), perturbation x state (`pxs`) and perturbation x cell-type (`pxc`) variance, scaled per perturbation group by `group_scale`.
Usage
simulate_pert(
genes = list(GENE_A = list(p = 0.1, pxs = 0.1, pxc = 0, cov = 0.05), GENE_B = list(p =
0.1, pxs = 0, pxc = 0.1, cov = 0.05), GENE_C = list(p = 0.15, pxs = 0, pxc = 0, cov =
0.05), GENE_D = list(p = 0, pxs = 0, pxc = 0, cov = 0.05)),
n_perturb = 60,
cells = c(30, 80),
n_control = 600,
group_scale = c(1, 0.5, 0),
seed = 1
)