| subset.Seurat | R Documentation |
Seurat ObjectsSubset Seurat Objects
## S3 method for class 'Seurat'
subset(
x,
subset,
cells = NULL,
features = NULL,
idents = NULL,
return.null = FALSE,
...
)
## S3 method for class 'Seurat'
x[i, j, ...]
x |
A |
subset |
Logical expression indicating features/variables to keep |
cells, j |
A vector of cell names or indices to keep |
features, i |
A vector of feature names or indices to keep |
idents |
A vector of identity classes to keep |
return.null |
If no cells are requested, return a |
... |
Arguments passed to |
subset: A subsetted Seurat object
[: object x with features i and cells j
WhichCells
Seurat object, validity, and interaction methods
$.Seurat(),
Seurat-class,
Seurat-validity,
[[.Seurat(),
[[<-,Seurat,
[[<-,Seurat,NULL,
dim.Seurat(),
dimnames.Seurat(),
merge.Seurat(),
names.Seurat()
# `subset` examples
subset(pbmc_small, subset = MS4A1 > 4)
subset(pbmc_small, subset = `DLGAP1-AS1` > 2)
subset(pbmc_small, idents = '0', invert = TRUE)
subset(pbmc_small, subset = MS4A1 > 3, slot = 'counts')
subset(pbmc_small, features = VariableFeatures(object = pbmc_small))
# `[` examples
pbmc_small[VariableFeatures(object = pbmc_small), ]
pbmc_small[, 1:10]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.