Downsample cells from each cluster
sample_cells(cl, sample.size, weights = NULL, seed = NULL)A cluster factor object
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
A named numeric vector with weights for each cell, passed to the prob parameter of the sample() function. Default is NULL.
A seed value for random sampling. If NULL (default), will be randomized.
A cluster factor object containing sampled cells