arg <- list(nG = 10000, ## total number of genes
pi0 = 0.8, ## proportion of non-differentially expressed genes
group = rep(c(1, 2), each = 3)) ## treatment groups
mu <- 10 ## mean counts in control group for all genes
disp <- 0.1 ## dispersion for all genes
logfc <- log(2) ## log fold change for up-regulated genes
RNA_simu <- sim.counts(arg, mu, disp, logfc, up = 0.5, replace = TRUE)
RNA_simu$counts ## count data matrixRun the code above in your browser using DataLab