sample_cells | R Documentation |
Downsample cells from each cluster
sample_cells(cl, sample.size, weights = NULL, seed = NULL)
cl |
A cluster factor object |
sample.size |
A maximum number of cells to take from each cluster, or a named numeric object with the number of cells to be sampled and names matching cluster levels |
weights |
A named numeric vector with weights for each cell, passed to the prob parameter of the sample() function. Default is NULL. |
seed |
A seed value for random sampling. If NULL (default), will be randomized. |
A cluster factor object containing sampled cells
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.