subset.Assay: Subset an Assay

View source: R/assay.R

subset.AssayR Documentation

Subset an Assay

Description

Subset an Assay

Usage

## S3 method for class 'Assay'
subset(x, cells = NULL, features = NULL, ...)

Arguments

x

An Assay object

cells

Cell names

features

Feature names

...

Ignored

Value

x with just the cells and features specified by cells and features

See Also

v3 Assay object, validity, and interaction methods: $.Assay(), Assay-class, Assay-validity, CreateAssayObject(), [.Assay(), [[.Assay(), dim.Assay(), dimnames.Assay(), merge.Assay(), split.Assay()

Examples

rna <- pbmc_small[["RNA"]]
rna2 <- subset(rna, features = VariableFeatures(rna))
rna2


SeuratObject documentation built on May 29, 2024, 12:31 p.m.