| subset.Assay | R Documentation |
Subset an Assay
## S3 method for class 'Assay'
subset(x, cells = NULL, features = NULL, ...)
x |
An |
cells |
Cell names |
features |
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.