Description Usage Arguments Value See Also Examples
Returns a list of cells that match a particular set of criteria such as identity class, high/low values for particular PCs, ect..
1 2 3 4 5 6 7 8 9 | WhichCells(object, ...)
## S3 method for class 'Assay'
WhichCells(object, cells = NULL, expression,
invert = FALSE, ...)
## S3 method for class 'Seurat'
WhichCells(object, cells = NULL, idents = NULL,
expression, invert = FALSE, downsample = Inf, seed = 1, ...)
|
object |
An object |
... |
Arguments passed to other methods |
cells |
Subset of cell names |
expression |
A predicate expression for feature/variable expression, can
evalue anything that can be pulled by |
invert |
Invert the selection of cells |
idents |
A vector of identity classes to keep |
downsample |
Maximum number of cells per identity class, default is |
seed |
Random seed for downsampling |
A vector of cell names
1 2 3 4 | WhichCells(object = pbmc_small, idents = 2)
WhichCells(object = pbmc_small, expression = MS4A1 > 3)
levels(x = pbmc_small)
WhichCells(object = pbmc_small, idents = c(1, 2), invert = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.