Learn R Programming

Signac (version 1.14.0)

subset.Motif: Subset a Motif object

Description

Returns a subset of a Motif-class object.

Usage

# S3 method for Motif
subset(x, features = NULL, motifs = NULL, ...)

# S3 method for Motif [(x, i, j, ...)

Value

Returns a subsetted Motif object

Arguments

x

A Motif object

features

Which features to retain

motifs

Which motifs to retain

...

Arguments passed to other methods

i

Which columns to retain

j

Which rows to retain

See Also

Examples

Run this code
motif.obj <- SeuratObject::GetAssayData(
  object = atac_small[['peaks']], layer = "motifs"
)
subset(x = motif.obj, features = head(rownames(motif.obj), 10))
motif.obj <- SeuratObject::GetAssayData(
  object = atac_small, assay = 'peaks', layer = 'motifs'
)
motif.obj[1:10,1:10]

Run the code above in your browser using DataLab