$for(css)$ $endfor$

Generates random single cell data from a negative binomial distribution.

rscData(n = 800, p = 5000, celltypes = 15, samples = 4,
  dispersion = 0.1, .rng = NULL)

Arguments

n
number of features
p
number of cells
celltypes
number of cell types
samples
number of biological samples
dispersion
dispersion parameter passed to argument size of stats::rnbinom.
.rng
specification to set the random number with rngtools::setRNG. This enables to generate reproducible data.

Value

an ExpressionSet object

Examples

x <- rscData() x
#> ExpressionSet (storageMode: lockedEnvironment) #> assayData: 800 features, 5000 samples #> element names: exprs #> protocolData: none #> phenoData #> sampleNames: C1 C2 ... C5000 (5000 total) #> varLabels: cellType sampleID group #> varMetadata: labelDescription #> featureData: none #> experimentData: use 'experimentData(object)' #> Annotation:
varLabels(x)
#> [1] "cellType" "sampleID" "group"
summary(pData(x))
#> cellType sampleID group #> CT_1 : 338 1:1250 A:2500 #> CT_2 : 333 2:1250 B:2500 #> CT_3 : 333 3:1250 #> CT_4 : 333 4:1250 #> CT_5 : 333 #> CT_6 : 333 #> (Other):2997