| Simulate2SCE {POWSC} | R Documentation |
Simulate the data for two-group comparison; e.g., treatment v.s. control It simulates the DE changes in two forms corresponding two types of DE genes
Simulate2SCE(n = 100, perDE = 0.05, estParas1, estParas2)
n |
the number of total cells for two groups |
perDE |
percentage of DE genes |
estParas1 |
the set of parameters corresponding to cell type I |
estParas2 |
the set of parameters corresponding to cell type II |
a list of metrics recording the changes in the generated data: such as the DE gene indices for Form I and II DE genes, and simulated expression data in singlecellexperiment format.
data("es_mef_sce")
sce = es_mef_sce[, colData(es_mef_sce)$cellTypes == "fibro"]
set.seed(123)
rix = sample(1:nrow(sce), 500)
sce = sce[rix, ]
estParas = Est2Phase(sce)
simData = Simulate2SCE(n=100, estParas1 = estParas, estParas2 = estParas)