View source: R/make_test_sce.R
make_test_sce | R Documentation |
The counts are simulated from a poisson distribution with stats::rpois()
.
Use set.seed()
if you want the results to be reproducible.
make_test_sce(n_cell = 100, n_gene = 100, n_cellType = 4, n_donor = 2)
n_cell |
An |
n_gene |
An |
n_cellType |
An |
n_donor |
An |
A
SingleCellExperiment
object with randomly generated counts and colData()
.
## Create an example sce using default values.
set.seed(20240823)
test <- make_test_sce()
## Let's check the number of cells per cell type from each donor
addmargins(table(test$cellType, test$donor))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.