Description Usage Arguments Details Value Examples
View source: R/simple-simulate.R
Simulate counts from a simple negative binomial distribution without simulated library sizes, differential expression etc.
1 2 3 4 5 6 | simpleSimulate(
params = newSimpleParams(),
sparsify = TRUE,
verbose = TRUE,
...
)
|
params |
SimpleParams object containing simulation parameters. |
sparsify |
logical. Whether to automatically convert assays to sparse matrices if there will be a size reduction. |
verbose |
logical. Whether to print progress messages |
... |
any additional parameter settings to override what is provided in
|
Gene means are simulated from a gamma distribution with
shape = mean.shape
and rate = mean.rate
. Counts are then
simulated from a negative binomial distribution with mu = means
and
size = 1 / counts.disp
. See SimpleParams
for more
details of the parameters.
SingleCellExperiment containing simulated counts
1 2 3 | sim <- simpleSimulate()
# Override default parameters
sim <- simpleSimulate(nGenes = 1000, nCells = 50)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.