subset.Motif | R Documentation |
Returns a subset of a Motif-class
object.
## S3 method for class 'Motif'
subset(x, features = NULL, motifs = NULL, ...)
## S3 method for class '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
subset
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]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.