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 10 11 12 13 14 15 16 17 | 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 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 |
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
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.