Skip to contents

Like 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"),
  ...
)

Arguments

proj

(MarchRProject)

ranges

(GRanges) Foreground regions.

peak_annotation

(character) Name of the stored annotation.

background

(character) "all" or "background_peaks".

...

Unused.

Value

Long tibble with one row per annotation (single "group").

Details

Equivalent to ArchR's customEnrichment() (AnnotationPeaks.R:1114).