Hypergeometric enrichment of arbitrary foreground GRanges
custom_enrichment.RdLike peak_annotation_enrichment() but takes a single GRanges as the
foreground instead of a MarkerResult cutoff. Useful when the user has a
custom region set (e.g., differentially accessible peaks from an external
tool) and wants to know which TF motifs are over-represented.
Usage
# S3 method for class 'MarchRProject'
custom_enrichment(
proj,
ranges,
peak_annotation,
background = c("all", "background_peaks"),
...
)