Signac (version 0.2.4)

SetMotifData: Set motif data

Description

Set motif matrix for given assay

Usage

SetMotifData(object, ...)

# S3 method for Motif SetMotifData(object, slot, new.data, ...)

# S3 method for Assay SetMotifData(object, slot, new.data, ...)

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

Arguments

object

A Seurat object

...

Arguments passed to other methods

slot

Name of slot to use

new.data

motif matrix to add. Should be matrix or sparse matrix class

assay

Name of assay whose data should be set

Value

Returns a Seurat object

Examples

Run this code
# NOT RUN {
motif.obj <- GetMotifObject(object = atac_small)
SetMotifData(object = motif.obj, slot = 'data', new.data = matrix())
SetMotifData(object = atac_small[['peaks']], slot = 'data', new.data = matrix())
motif.matrix <- GetMotifData(object = atac_small)
SetMotifData(object = atac_small, assay = 'peaks', slot = 'data', new.data = motif.matrix)
# }

Run the code above in your browser using DataCamp Workspace