Hypergeometric enrichment of marker peaks against a peak annotation
peak_annotation_enrichment.RdFor each group in marker_result, tests whether foreground peaks
(passing cutoff) are over-represented in each annotation column of the
peak x annotation match matrix.
Arguments
- proj
(MarchRProject)
- marker_result
(MarkerResult) Output of
add_marker_features().- peak_annotation
(character) Name of the stored annotation.
- matches
(Matrix or NULL) Optional pre-supplied match matrix. Default NULL = retrieve via
get_matches().- cutoff
(character) R expression evaluated against the marker tibble to filter foreground peaks per group. Default
"p_val_adj <= 0.1 & log2_fc >= 0.5"(ArchR-equivalent).- background
(character)
"all"(whole peak set) or"background_peaks"(GC/accessibility-matched peers viaadd_background_peaks()).- verbose
(logical) Print progress messages. Default
getOption("MarchR.verbose", FALSE).- ...
Unused.