Description Usage Arguments Details Value Author(s) Examples
Make up some test and reference data for the various examples in the SingleR package.
1 2 3 | .mockRefData(ngroups = 5, nreps = 4, ngenes = 1000, prop = 0.5)
.mockTestData(mock.ref, ncells = 100)
|
ngroups |
Integer scalar specifying the number of groups. |
nreps |
Integer scalar specifying the number of replicates per group. |
ngenes |
Integer scalar specifying the number of genes in the dataset. |
prop |
Numeric scalar specifying the proportion of genes that are DE between groups. |
mock.ref |
A SummarizedExperiment object produced by |
ncells |
Integer scalar specifying the number of cells to simulate. |
This functions are simply provided to simulate some data in the Examples of the documentation. The simulations are very simple and should not be used for performance comparisons.
Both functions return a SummarizedExperiment object containing simulated counts in the counts
assay,
with the group assignment of each sample in the "label"
field of the colData
.
Aaron Lun
1 2 | ref <- .mockRefData()
test <- .mockTestData(ref)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.