Description Usage Arguments Value Examples
View source: R/utils_sampling.R
Sample n genes from a SingleCellExperiment object with no replacement
1 | sample_genes(x, n)
|
x |
the SingleCellExperiment object |
n |
the number of genes to sample |
SingleCellExperiment object
1 2 3 4 | sample_sce_data <- readRDS(cellbench_file("10x_sce_sample.rds"))
dim(sample_sce_data)
x <- sample_genes(sample_sce_data, 50)
dim(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.