getMotifEnrichment-DsATAC-method.Rd
Perform enrichment analysis for (TF) motifs of a query set of regions. Fisher's Exact Test is employed to test the association of motif present in the query set against the background of all regions of that type covered in the object
# S4 method for DsATAC
getMotifEnrichment(.object, type, idx, motifs = "jaspar")
DsATAC
object
character string specifying the region type
logical vector or indices of the same length as length(getCoord(.object))
specifies the query set
either a character string (currently only "jaspar" and sets contained in chromVARmotifs
("homer", "encode", "cisbp") are supported) or an object containing PWMs
that can be used by motifmatchr::matchMotifs
(such as an PFMatrixList
or PWMatrixList
object)
a data.frame
summarizing Fisher's Exact Test enrichment statistics for each motif