View source: R/utils_sampling.R
sample_cells | R Documentation |
Sample n cells from a SingleCellExperiment object with no replacement.
sample_cells(x, n)
x |
the SingleCellExperiment object |
n |
the number of cells to sample |
SingleCellExperiment object
sample_sce_data <- readRDS(cellbench_file("celseq_sce_sample.rds"))
dim(sample_sce_data)
x <- sample_cells(sample_sce_data, 10)
dim(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.