Returns a subset of a Motif-class() object.
Usage
# S3 method for class 'Motif'
subset(x, features = NULL, motifs = NULL, ...)
# S3 method for class 'Motif'
x[i, j, ...]Value
Returns a subsetted Motif object
Examples
motif.obj <- SeuratObject::GetAssayData(
object = atac_small[["peaks"]], layer = "motifs"
)
subset(x = motif.obj, features = head(rownames(motif.obj), 10))
#> A Motif object containing 10 motifs in 10 regions
motif.obj <- SeuratObject::GetAssayData(
object = atac_small, assay = "peaks", layer = "motifs"
)
motif.obj[1:10, 1:10]
#> A Motif object containing 10 motifs in 10 regions