Get or set the Motif object for a Seurat object or ChromatinAssay5.
Usage
Motifs(object, ...)
Motifs(object, ...) <- value
# S3 method for class 'ChromatinAssay5'
Motifs(object, ...)
# S3 method for class 'Seurat'
Motifs(object, assay = NULL, ...)
# S3 method for class 'ChromatinAssay5'
Motifs(object, ...) <- value
# S3 method for class 'Seurat'
Motifs(object, assay = NULL, ...) <- valueArguments
- object
A Seurat or ChromatinAssay5 object
- ...
Arguments passed to other methods
- value
A Motif object
- assay
Name of assay to use
Examples
Motifs(atac_small[["peaks"]])
#> A Motif object containing 10 motifs in 100 regions
Motifs(atac_small)
#> A Motif object containing 10 motifs in 100 regions
motifs <- Motifs(atac_small)
Motifs(atac_small[["peaks"]]) <- motifs
#> Warning: Overwriting motif information
motifs <- Motifs(atac_small)
Motifs(atac_small) <- motifs
#> Warning: Overwriting motif information