RegRegSEA: a web server for regulatory region set enrichment analysis of epigenomic data.
The 2 matches
- [1] § Results › Case study 1: re-analysis of down syndrome brain methylome ↔ R/plotting.R, lines 134–236 · score 0.69 · absolute NES, positive NES, Top enriched, enrichment scores, Bars, enhancers
- [2] § Results › The RegRegSEA web server › Output and visualizations ↔ R/plotting.R, lines 134–236 · score 0.69 · positive NES, top enriched, enrichment score, bars, cutoff, FDR
Paper
Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC
The paper is loaded when this pane is shown.
The authors' code
R · 236 lines · 7.9 KB · MIT · 2 matches
- #' Plot Running Enrichment Score
- #'
- #' Creates a two-panel plot showing the running enrichment score and
- #' ranked statistic for a specific region set.
- #'
- #' @param ranking Named and sorted vector of genomic regions and their ranking score
- #' @param region_sets List of region sets (from mapGRangesToRegionSets)
- #' @param region_set_name Name of the region set to plot
- #' @param title Plot title (optional, defaults to region set name)
- #' @param color Color for enrichment score curve (default: "grey40")
- #' @return ggplot object with running enrichment score plot
- #' @export
- #' @importFrom fgsea plotEnrichmentData
- #' @importFrom ggplot2 ggplot aes geom_line geom_segment geom_hline geom_tile
- #' @importFrom ggplot2 labs theme_classic theme element_blank element_text
- #' @importFrom ggplot2 coord_cartesian scale_y_continuous scale_fill_gradient2
- #' @importFrom ggplot2 scale_x_continuous guides guide_colorbar margin unit
- #' @importFrom patchwork plot_layout
- #' @importFrom scales pretty_breaks
- #' @examples
- #' \dontrun{
- #' # Plot running enrichment score for specific region set
- #' p <- plotRunningES(ranking, region_sets, "encode_tfbs_CTCF_hg19.bed")
- #' print(p)
- #' }
- plotRunningES <- function(ranking, region_sets, region_set_name,
- title = NULL, color = "grey40") {
- # Input validation
- if (!region_set_name %in% names(region_sets)) {
- stop(sprintf("Region set '%s' not found in region_sets", region_set_name))
- }
- # Get the specific region set
- pathway <- region_sets[[region_set_name]]
- # Generate plot data using fgsea's function
- plot_data <- plotEnrichmentData(
- pathway = pathway,
- stats = ranking,
- gseaParam = 1
- )
- # Set title
- if (is.null(title)) {
- title <- region_set_name
- }
- # Calculate plot limits
- y_min <- min(plot_data$curve$ES) - abs(min(plot_data$curve$ES)) * 0.1 - 0.07
- y_max <- max(plot_data$curve$ES) + abs(max(plot_data$curve$ES)) * 0.1
- # Calculate statistic limits for consistent color scaling
- stat_limits <- c(min(ranking), max(ranking))
- # Main enrichment score plot
- main_plot <- ggplot() +
- # Enrichment score curve
- geom_line(data = plot_data$curve,
- aes(x = rank, y = ES),
- color = color, size = 1.4) +
- # Gene hit ticks at bottom
- geom_segment(data = plot_data$ticks,
- aes(x = rank,
- y = y_min - (y_max - y_min) * 0.04,
- xend = rank,
- yend = y_min + (y_max - y_min) * 0.05),
- color = "black", size = 0.3) +
- # Reference line at zero
- geom_hline(yintercept = 0, color = "black",
- size = 0.5, linetype = "dashed", alpha = 0.7) +
- # Styling
- labs(y = "Enrichment Score", x = NULL, title = title) +
- theme_classic() +
- theme(
- axis.text.x = element_blank(),
- axis.ticks.x = element_blank(),
- plot.margin = margin(5, 5, 0, 5),
- panel.grid = element_blank(),
- plot.title = element_text(size = 16, hjust = 0.5),
- axis.title.y = element_text(size = 14),
- axis.text.y = element_text(size = 12)
- ) +
- coord_cartesian(ylim = c(y_min, y_max)) +
- scale_y_continuous(breaks = pretty_breaks(n = 5))
- # Bottom panel - ranked statistics heatmap
- # Create bins for smoother visualization
- n_bins <- min(100, length(ranking))
- bin_indices <- round(seq(1, length(ranking), length.out = n_bins))
- stats_binned <- data.frame(
- rank = bin_indices,
- stat = ranking[bin_indices]
- )
- stats_heatmap <- ggplot(stats_binned, aes(x = rank, y = 1)) +
- geom_tile(aes(fill = stat), height = 1) +
- scale_fill_gradient2(
- low = "blue",
- mid = "white",
- high = "red",
- midpoint = 0,
- limits = stat_limits,
- name = "Ranked\nStatistic"
- ) +
- theme_classic() +
- theme(
- axis.title.y = element_blank(),
- axis.text.y = element_blank(),
- axis.ticks.y = element_blank(),
- axis.line.y = element_blank(),
- plot.margin = margin(0, 5, 5, 5),
- legend.position = "right",
- legend.key.size = unit(0.4, "cm"),
- axis.title.x = element_text(size = 14),
- axis.text.x = element_text(size = 12)
- ) +
- labs(x = "Rank in Ordered Regions") +
- scale_x_continuous(breaks = pretty_breaks(n = 6)) +
- guides(fill = guide_colorbar(barwidth = 0.8, barheight = 3))
- # Combine panels with appropriate height ratio
- final_plot <- main_plot / stats_heatmap +
- plot_layout(heights = c(7, 1))
- return(final_plot)
- }
- #' Plot Top Enriched Region Sets
- #'
- #' Filters and plots the top significantly enriched region sets from enrichment results.
- #'
- #' @param results A data frame containing enrichment results (analysis$results). Must contain columns:
- #' \code{padj}, \code{antibody}, \code{NES}, and \code{description}.
- #' @param n Integer. The number of top region sets to display. Default is 20.
- #' @param filter_by_TF Logical. If \code{TRUE}, selects only the single top region set
- #' (by absolute NES) for each unique TF/antibody and plots TF/antibody names instead of region set names.
- #' Default is \code{FALSE}.
- #' @param FDR_cutoff Numeric. The adjusted p-value cutoff for significance.
- #' Default is 0.05.
- #' @param only_pos Logical. If \code{TRUE}, filters for only positive Normalized
- #' Enrichment Scores (NES > 0). Default is \code{FALSE}.
- #' @return A \code{ggplot} object representing the bar plot of normalized enrichment scores.
- #' @export
- #' @importFrom dplyr %>% filter group_by slice_max ungroup arrange desc slice_head mutate
- #' @importFrom ggplot2 ggplot aes geom_bar coord_flip scale_fill_manual labs theme_minimal theme element_text
- #' @importFrom stringr str_wrap
- #' @importFrom rlang .data
- #' @examples
- #' # Mock data
- #' df <- data.frame(
- #' regionSet = c("Region_Set_1", "Region_Set_2", "Region_Set_3"),
- #' antibody = c("TF_A", "TF_B", "TF_A"),
- #' NES = c(2.5, -1.8, 1.2),
- #' padj = c(0.001, 0.04, 0.001),
- #' description = c("Promoter Region A", "Enhancer Region B", "Promoter Region C")
- #' )
- #'
- #' # Plot top 10 sets
- #' plotTopRegionSets(df, n = 10)
- #'
- plotTopRegionSets <- function(results, n = 20, filter_by_TF = FALSE, FDR_cutoff = 0.05, only_pos = FALSE) {
- # Filter for significant region sets
- results <- results %>%
- filter(.data$padj < FDR_cutoff)
- if (dim(results)[1] == 0) {
- stop(sprintf("No significantly enriched region sets found at FDR_cutoff = '%s'", FDR_cutoff))
- }
- # Filter for the top set for each TF/antibody (Optional)
- if (filter_by_TF) {
- results <- results %>%
- group_by(.data$antibody) %>%
- slice_max(order_by = abs(.data$NES), n = 1, with_ties = FALSE) %>%
- ungroup()
- }
- # Filter for only positive NES values (Optional)
- if (only_pos) {
- results <- results %>%
- filter(.data$NES > 0)
- }
- # Filter top n region sets and arrange for plotting
- results <- results %>%
- arrange(desc(abs(.data$NES))) %>%
- slice_head(n = n) %>%
- arrange(.data$NES)
- # If filtering by TF, use TF names for plot labels
- if (filter_by_TF) {
- results <- results %>%
- mutate(plot_label = .data$antibody)
- } else {
- results <- results %>%
- mutate(plot_label = str_wrap(.data$regionSet, width = 40))
- }
- # Set factor levels to match the current order and add sign
- results <- results %>%
- mutate(
- plot_label = factor(plot_label, levels = unique(plot_label)),
- NES_sign = ifelse(.data$NES > 0, "pos. NES", "neg. NES")
- )
- # Plotting
- plot <- ggplot(results, aes(x = .data$plot_label, y = .data$NES, fill = .data$NES_sign)) +
- geom_bar(stat = "identity", width = 0.7) +
- coord_flip() +
- scale_fill_manual(
- values = c("pos. NES" = "#E57373", "neg. NES" = "#64B5F6"),
- drop = FALSE
- ) +
- labs(
- x = "",
- y = "Normalized Enrichment Score (NES)",
- fill = ""
- ) +
- theme_minimal() +
- theme(
- axis.text.y = element_text(size = 12, face = "bold"),
- axis.text.x = element_text(size = 11),
- axis.title = element_text(size = 12),
- legend.text = element_text(size = 11),
- legend.position = "top"
- )
- return(plot)
- }
plotting.R at commit a874a19, under MIT · at the source
Overview
- Chair for Clinical Bioinformatics, Center for Bioinformatics, Saarland University, 66123 Saarbrücken, Germany
- Helmholtz Institute for Pharmaceutical Research Saarland (HIPS), Saarland University Campus, 66123 Saarbrücken, Germany
- PharmaScienceHub (PSH), Saarland University Campus, 66123 Saarbrücken, Germany
Abstract
Interpreting genome-wide epigenomic experiments, such as DNA methylation profiling and chromatin accessibility assays, requires tools that can identify which regulatory programs underlie coordinated changes across genomic regions. Without this regulatory context, lists of differential regions remain largely descriptive and difficult to interpret mechanistically. Existing approaches either apply hard significance cutoffs that discard moderate but biologically meaningful signals, or rely on gene-centric annotations that neglect enhancers and intergenic space, introducing bias into the interpretation. RegRegSEA addresses both shortcomings by adapting the Gene Set Enrichment Analysis framework directly to genomic coordinates. The server accepts a standard differential analysis table, ranks all tested intervals by a signed statistic, and computes enrichment scores against curated regulatory databases including transcription factor binding site collections. Results are returned as an interactive, publication-ready report featuring dynamic visualizations of enrichment profiles and regulatory annotations, along with downloadable leading-edge regions for downstream analyses. We demonstrate the utility of this approach through re-analysis of Down syndrome brain methylation data and chromatin accessibility in ageing mouse liver. The server is freely available at https://
Reproduced under the paper's license (CC BY-NC), from the paper cited above.
Repositories
Its files are read in the Code ↔ Paper reader above, with 2 matches between paragraphs and lines of code.
CCB-SB/RegRegSEA
a874a198aaf5a75d6be6371b8bac03eeb4bee4d0, 20 April 2026Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
5 files
- R/
RegRegSEA.R , R, 561 lines - R/
plotting.R , R, 236 lines, 2 matches - vignettes/
RegRegSEA-introduction.R , R, 189 linesmd - LICENSE, License, 21 lines
- README.md, Text, 151 lines
Zenodo 19731482
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
- 27 September 2026: the link answers (HTTP 200)
5 files
- R/
RegRegSEA.R , R, 561 lines - R/
plotting.R , R, 236 lines - vignettes/
RegRegSEA-introduction.R , R, 189 linesmd - LICENSE, License, 21 lines
- README.md, Text, 151 lines
Code availability
The backend analysis code of the web server is written in R and available at https://
Reproduced under the paper's license (CC BY-NC), from the paper cited above.
Tracing map
Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.
What the map holds:
- 2 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 6 scripts, each with its path and the digest of its content;
- 2 matches between paragraphs of the paper and lines of the code (method lexical-v1);
- neither the text of the paper nor the code itself.
Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.
Data
Datasets cited
- geo:GSE198186, at NCBI GEO; found in the text, “Down syndrome brain and ageing liver case…”
Data availability
No new data were generated or analysed in this study. The RegRegSEA web server is freely available at https://
Reproduced under the paper's license (CC BY-NC), from the paper cited above.
Versions
The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.
Version 1, 27 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 6 authors, 11 MeSH terms, 3 funders, 34 references.
Cite
This paper
Wolff, T., Grandke, F., Sayeeda, M., Hirsch, P., Flotho, M., & Keller, A. (2026). RegRegSEA: a web server for regulatory region set enrichment analysis of epigenomic data. Nucleic acids research, 54(W1), W117-W124. https://
BibTeX
@article{wolff2026regreg
author = {Wolff, Tobias and Grandke, Friederike and Sayeeda, Misbah and Hirsch, Pascal and Flotho, Matthias and Keller, Andreas},
title = {{RegRegSEA: a web server for regulatory region set enrichment analysis of epigenomic data}},
journal = {Nucleic acids research},
year = {2026},
month = jul,
volume = {54},
number = {W1},
pages = {W117--W124},
publisher = {Oxford University Press},
issn = {0305-1048},
doi = {10.1093/
url = {https://
pmid = {42109173},
pmcid = {PMC13355058}
}
RIS
TY - JOUR
AU - Wolff, Tobias
AU - Grandke, Friederike
AU - Sayeeda, Misbah
AU - Hirsch, Pascal
AU - Flotho, Matthias
AU - Keller, Andreas
TI - RegRegSEA: a web server for regulatory region set enrichment analysis of epigenomic data
T2 - Nucleic acids research
J2 - Nucleic Acids Res
PY - 2026
DA - 2026/
VL - 54
IS - W1
SP - W117
EP - W124
SN - 0305-1048
PB - Oxford University Press
DO - 10.1093/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1093/
"type": "article-journal",
"title": "RegRegSEA: a web server for regulatory region set enrichment analysis of epigenomic data",
"container-title": "Nucleic acids research",
"author": [
{
"family": "Wolff",
"given": "Tobias"
},
{
"family": "Grandke",
"given": "Friederike"
},
{
"family": "Sayeeda",
"given": "Misbah"
},
{
"family": "Hirsch",
"given": "Pascal"
},
{
"family": "Flotho",
"given": "Matthias"
},
{
"family": "Keller",
"given": "Andreas"
}
],
"container-title-short":
"volume": "54",
"issue": "W1",
"page": "W117-W124",
"DOI": "10.1093/
"PMID": "42109173",
"PMCID": "PMC13355058",
"ISSN": "0305-1048",
"publisher": "Oxford University Press",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
7,
1
]
]
}
}
The tracing map gets a citation of its own once an author has validated it and it has a DOI.
Similar papers
The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.
- [1] doi:10.1093/brain/awaf440 [code]
- Cerebrospinal fluid-driven ependymal motile cilia defects are implicated in multiple sclerosis.Journal: Brain : a journal of neurologyIn common: data.table, patchwork, ggplot2, 1 other tool, genetics / omics, mouse, 2 references
- [2] doi:10.1172/jci.insight.207270 [code]
- Progressive hypothalamic neuroinflammation in ovariectomized mice parallels aging-related transcriptomic changes in the female human hypothalamus.Journal: JCI insightIn common: data.table, patchwork, ggplot2, 1 other tool, genetics / omics, mouse, 2 references
- [3] doi:10.1016/j.xcrm.2026.102766 [code]
- A longitudinal single-cell and spatial multiomic atlas of pediatric high-grade glioma.Journal: Cell reports. MedicineIn common: data.table, patchwork, ggplot2, 1 other tool, genetics / omics, 2 references
- [4] doi:10.1101/gr.281113.125 [code]
- Single-nucleus multiomic profiling of the aging mouse substantia nigra reveals conserved gene alterations linked to Parkinson's disease.Journal: Genome researchIn common: data.table, patchwork, ggplot2, 1 other tool, genetics / omics, mouse, 1 reference
- [5] doi:10.1038/s41586-026-10699-x [code]
- Competing programs shape cortical sensorimotor-association
axis development. Journal: NatureIn common: data.table, patchwork, ggplot2, 1 other tool, mouse, 2 references - [6] doi:10.1016/j.xgen.2026.101278 [code]
- Single-cell profiling of DNA methylation in autism spectrum disorder prefrontal cortex reveals distinct regulatory and aging signatures.Journal: Cell genomicsIn common: genetics / omics, 5 references
- [7] doi:10.1038/s41593-026-02367-0 [code]
- A reproducible three-dimensional model of human brain tissue to investigate physiological and disease-associated microglia phenotypes.Journal: Nature neuroscienceIn common: data.table, patchwork, ggplot2, 1 other tool, 2 references
- [8] doi:10.1038/s41386-026-02406-1 [code]
- Functional genomic profiling of schizophrenia-associated
genes reveals key microglial regulators. Journal: Neuropsychopharmacology : official publication of the American College of NeuropsychopharmacologyIn common: data.table, patchwork, ggplot2, 1 other tool, genetics / omics, 2 references - [9] doi:10.1016/j.isci.2026.116021 [code]
- Periostin drives psoriasis progression through the stimulation of cutaneous nerve fibers.Journal: iScienceIn common: data.table, patchwork, ggplot2, 1 other tool, mouse, 2 references
- [10] doi:10.1016/j.cell.2026.05.026 [code]
- The critical role of the endogenous immune compartment after CAR T cell therapy in recurrent GBM.Journal: CellIn common: data.table, patchwork, ggplot2, 1 other tool, genetics / omics, 1 reference
Contribute
The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.
Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 2 repositories of the authors' code, each at its verified commit and with its license, 6 scripts, and 2 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:624fb2b98ecc15ac…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[, paste the snippet at the top, then “Commit changes…” and, to review it first, “Create a new branch and start a pull request”. You open the pull request; OSCR asks for no permission.
Request its removal
To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).
Discussion, reproductions, activity
Discussion: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.
Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
