Signac (version 0.2.4)

AddMotifObject: Add a Motif object to a Seurat object

Description

Add a Motif object to a Seurat object

Usage

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

Run this code
# NOT RUN {
obj <- GetMotifObject(atac_small[['peaks']])
atac_small[['peaks']] <- AddMotifObject(object = atac_small[['peaks']], motif.object = obj)
obj <- GetMotifObject(object = atac_small)
atac_small[['peaks']] <- AddMotifObject(object = atac_small, motif.object = obj)
# }

Run the code above in your browser using DataLab