powered by
Subset an Assay
# S3 method for Assay subset(x, cells = NULL, features = NULL, ...)
x with just the cells and features specified by cells and features
x
cells
features
An Assay object
Assay
Cell names
Feature names
Ignored
v3 Assay object, validity, and interaction methods: $.Assay(), Assay-class, Assay-validity, CreateAssayObject(), [.Assay(), [[.Assay(), dim.Assay(), dimnames.Assay(), merge.Assay(), split.Assay()
$.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
Run the code above in your browser using DataLab