Return a subset of a Motif object
# S3 method for Motif subset(x, features = NULL, motifs = NULL, ...) # S3 method for Motif [(x, i, j, ...)
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 |
Returns a subsetted Motif
object
motif.obj <- GetMotifObject(object = atac_small) subset(x = motif.obj, features = head(rownames(motif.obj), 10))#> A Motif object containing 5 motifs in 10 regions#> A Motif object containing 5 motifs in 10 regions