View source: R/create_testset_multibatch.R
create_testset_multibatch | R Documentation |
create_testset_multibatch
simulates single-cell RNA-seq data
as zero-inflated negative binomial counts.
The observe several batches that differ from each other - the difference is
randomly chosen from the Beta distribution with a = 1, b = 9,
i.e. the expected fraction of varied genes is 1/10.
create_testset_multibatch(n.genes = 1000, n.batch = 3,
plattform = c("C1", "dropseq", "any"))
n.genes |
nummber of sampled genes |
n.batch |
number of batches in the data set |
plattform |
maximum number of cells (samples) per batch. There are three modes:
The number of cell per batch is varied by a Beta distributed random variable to simulate a quality control, where 80% of the samples pass. |
list object
data
- simulated data set with #rows: cells, columns: 'genes'
batch
- vector with batch identity for each cell
comment
- 'testSet_multibatch_<n.genes>genes_<n.batch>batches_<plattform>'
testdata <- create_testset_multibatch(n.genes=1000, n.batch=3, plattform='any')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.