sub-sub-.Assay: Feature-Level Meta Data

[[.AssayR Documentation

Feature-Level Meta Data

Description

Get and set feature-level meta data

Usage

## S3 method for class 'Assay'
x[[i, ..., drop = FALSE]]

## S4 replacement method for signature 'Assay,ANY,ANY,ANY'
x[[i, j, ...]] <- value

## S3 method for class 'Assay'
head(x, n = 10L, ...)

## S3 method for class 'Assay'
tail(x, n = 10L, ...)

## S4 replacement method for signature 'Assay,missing,missing,data.frame'
x[[i, j, ...]] <- value

Arguments

x

An Assay object

i

Name of feature-level meta data to fetch or add

...

Ignored

drop

See drop

j

Ignored

value

Feature-level meta data to add

n

Number of meta data rows to show

Value

[[: The feature-level meta data for i

[[<-: x with value added as i in feature-level meta data

head: The first n rows of feature-level meta data

tail: the last n rows of feature-level meta data

See Also

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

Examples

rna <- pbmc_small[["RNA"]]

# Pull the entire feature-level meta data data frame
head(rna[[]])

# Pull a specific column of feature-level meta data
head(rna[["vst.mean"]])
head(rna[["vst.mean", drop = TRUE]])

# `head` and `tail` can be used to quickly view feature-level meta data
head(rna)

tail(rna)


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