Test for enrichment of motifs within Group1 against a background Group2 using a hypergeometric t-test.
Arguments
- Group1
A GRanges object, such as a set of significant differential tiles.
- Group2
A GRanges object containing background regions, non-overlapping with Group1
- motifPosList
A GRangesList of motifs and positions for each motif. Must be named for each motif.
- type
Optional, name of a metadata column in Group1 and Group2 to test for enrichment the number of unique entries in column given by 'type'. Default is NULL, which tests the number of Ranges.