View source: R/utility_functions.R
balanceSamples | R Documentation |
Subsample cells in seurat object to be balanced (sample-size-wise) across conditions.
balanceSamples(object, group, balance.size = NA)
object |
Seurat Object |
group |
Character specifying group (i.e., metadata field) to sub-sample within. |
balance.size |
Numeric. Target sub sample size for each condition. If target exceeds number of available cells, only available cells are included. If unspecified, smallest-sized group is set as target (Default). |
Seurat object
Nicholas Mikolajewicz
so.query <- balanceSamples(object = so.query, group = "Barcode")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.