Wrapper function to assess a specific set of peaks for enrichment with respect to TF binding motifs using a Z test after adjusting for GC bias and Tn5 accessibility
Arguments
- peakSet
vector of peak indices you wish to test for motif enrichment
- bgPeaks
background peaks matrix returned by
getBackgroundPeaks
function in chromVAR- tfMat
binary match
sparseMatrix
object of (reference) peaks by TF motifs returned bymatchMotifs
function