View source: R/downsampleSCE.R
downsampleSCE | R Documentation |
downsampleSCE
down-samples an SCE object based on the grouping variables
provided. For example, when grouped by a batch variable, the function takes
maxN cells per batch. Additionally, when indiv_by
is provided (e.g.,
file_name), the function takes equal numbers of cells per individual, collecting
maxN cells in total per batch.
downsampleSCE( sce, maxN = 10000, group_by = c("batch", "group"), indiv_by = NULL, seed = 12345 )
sce |
A |
maxN |
Numeric. Specifies the maximum number of unique cells per group. |
group_by |
A character vector. Specifies the colData columns for grouping. |
indiv_by |
A character string. Specifies the colData column for individual sample identifiers. |
seed |
Numeric. Sets a random seed. |
A SingleCellExperiment-class
object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.