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, ...)
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 |
Returns a Seurat
object
obj <- GetMotifObject(atac_small[['peaks']]) atac_small[['peaks']] <- AddMotifObject( object = atac_small[['peaks']], motif.object = obj )#> Warning: Overwriting existing motif object in assayobj <- GetMotifObject(object = atac_small) atac_small[['peaks']] <- AddMotifObject( object = atac_small, motif.object = obj )#> Warning: Overwriting existing motif object in assay