Set motif matrix for given assay

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

motif.obj <- GetMotifObject(object = atac_small) SetMotifData(object = motif.obj, slot = 'data', new.data = matrix())
#> A Motif object containing 1 motifs in 1 regions
SetMotifData( object = atac_small[['peaks']], slot = 'data', new.data = matrix() )
#> Assay data with 100 features for 100 cells #> Top 10 variable features: #> chr1:1549446-1552535, chr1:1051006-1053102, chr1:1240091-1245762, #> chr1:1333514-1336003, chr1:1309645-1311492, chr1:928630-937949, #> chr1:1166366-1168282, chr1:1446312-1448163, chr1:1562519-1567986, #> chr1:1259506-1261414
motif.matrix <- GetMotifData(object = atac_small) SetMotifData( object = atac_small, assay = 'peaks', slot = 'data', new.data = motif.matrix )
#> An object of class Seurat #> 300 features across 100 samples within 3 assays #> Active assay: peaks (100 features, 90 variable features) #> 2 other assays present: bins, RNA #> 2 dimensional reductions calculated: lsi, umap