Add a Motif object to a Seurat object

AddMotifObject(object, ...)

# S3 method for Assay
AddMotifObject(object, motif.object, verbose = TRUE, ...)

# S3 method for Seurat
AddMotifObject(object, motif.object, assay = NULL, ...)

Arguments

object

A Seurat object

...

Additional arguments

motif.object

An object of class Motif

verbose

Display messages

assay

Name of assay to store motif object in

Value

Returns a Seurat object

Examples

obj <- GetMotifObject(atac_small[['peaks']]) atac_small[['peaks']] <- AddMotifObject( object = atac_small[['peaks']], motif.object = obj )
#> Warning: Overwriting existing motif object in assay
obj <- GetMotifObject(object = atac_small) atac_small[['peaks']] <- AddMotifObject( object = atac_small, motif.object = obj )
#> Warning: Overwriting existing motif object in assay