Subset an Assay
# S3 method for Assay
subset(x, cells = NULL, features = NULL, ...)
An Assay
object
Cell names
Feature names
Ignored
x
with just the cells and features specified by
cells
and features
v3 Assay object, validity, and interaction methods:
$.Assay()
,
Assay-class
,
Assay-validity
,
CreateAssayObject()
,
[.Assay()
,
[[.Assay()
,
dim.Assay()
,
dimnames.Assay()
,
merge.Assay()
,
split.Assay()
rna <- pbmc_small[["RNA"]]
rna2 <- subset(rna, features = VariableFeatures(rna))
rna2
#> Assay data with 20 features for 80 cells
#> Top 10 variable features:
#> PPBP, IGLL5, VDAC3, CD1C, AKR1C3, PF4, MYL9, GNLY, TREML1, CA2