WhichCells | R Documentation |
Returns a list of cells that match a particular set of criteria such as identity class, high/low values for particular PCs, etc.
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,
slot = "data",
invert = FALSE,
downsample = Inf,
seed = 1,
...
)
object |
An object |
... |
Arguments passed on to
|
cells |
Subset of cell names |
expression |
A predicate expression for feature/variable expression,
can evaluate anything that can be pulled by |
invert |
Invert the selection of cells |
idents |
A vector of identity classes to keep |
slot |
Slot to pull feature data for |
downsample |
Maximum number of cells per identity class, default is
|
seed |
Random seed for downsampling. If NULL, does not set a seed |
A vector of cell names
FetchData
WhichCells(pbmc_small, idents = 2)
WhichCells(pbmc_small, expression = MS4A1 > 3)
levels(pbmc_small)
WhichCells(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.