mockSCE | R Documentation |
Mock up a SingleCellExperiment containing simulated data, for use in documentation examples.
mockSCE(ncells = 200, ngenes = 2000, nspikes = 100)
ncells |
Integer scalar, number of cells to simulate. |
ngenes |
Integer scalar, number of genes to simulate. |
nspikes |
Integer scalar, number of spike-in transcripts to simulate. |
Users should set a seed to obtain reproducible results from this function.
A SingleCellExperiment object containing a count matrix in the "counts"
assay,
a set of simulated colData
fields,
and spike-in data in the "Spikes"
field of altExps
.
Aaron Lun
SingleCellExperiment
, for the constructor.
set.seed(1000)
sce <- mockSCE()
sce
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.