No retraction, correction or concern found when last checked on Oct 16, 2026.
regioneR: an R/Bioconductor package for the association analysis of genomic regions based on permutation tests
Bernat Gel, Anna Díez-Villanueva, Eduard Serra and 3 more
Bioinformatics · 2015 · CC BY
doi:10.1093/bioinformatics/btv562
Abstract
Motivation: Statistically assessing the relation between a set of genomic regions and other genomic features is a common challenging task in genomic and epigenomic analyses. Randomization based approaches implicitly take into account the complexity of the genome without the need of assuming an underlying statistical model. Summary: regioneR is an R package that implements a permutation test framework specifically designed to work with genomic regions. In addition to the predefined randomization and evaluation strategies, regioneR is fully customizable allowing the use of custom strategies to adapt it to specific questions. Finally, it also implements a novel function to evaluate the local specificity of the detected association. Availability and implementation: regioneR is an R package released under Artistic-2.0 License. The source code and documents are freely available through Bioconductor (http://www.bioconductor.org/packages/regioneR). Contact: rmalinverni@carrerasresearch.org
Full text
From PubMed Central, U.S. National Library of Medicine, as current on Oct 16, 2026. Paragraph numbers are ours, so an answer can point at one.
1 Introduction
Sets of genomic regions are the output of many different genomic and epigenomic analyses like ChIP-seq peaks, regions with copy number alterations or differentially methylated regions. The identification of meaningful associations between a set of genomic regions and other genomic features is an important part of downstream analysis. The genomic features can be of different types: other region sets, intrinsic properties of the genome—e.g. GC content—or functions defined over the genome—e.g. DNA methylation levels, phylogenetic conservation. In addition, different metrics can be used to evaluate the associations. Thus, while counting the number of overlaps between two region sets is a widely used evaluation strategy, with regioneR it is possible to answer a wider range of biological questions beyond region overlapping with the use of other combinations of metrics and genomic features.
Computing any of these evaluations can be straightforward but assigning a statistical significance to the association levels is far from trivial. Due to the complexity of the genome, statistical models relying on strict assumptions can only be used in certain circumstances. Empirical approaches such as permutation tests might overcome these limitations but they require the use of the appropriate strategies to generate meaningful results and usually have higher computational costs.
Existing software tools to evaluate the association of region sets and other genomic features such as Geometricorr or GAT are either based on statistical modelling or only applicable to a limited number of situations.
regioneR has been created to address this problem providing a fully customizable permutation test framework specifically designed to work with genomic regions. It includes a number of predefined randomization and evaluation functions covering the most frequent use cases, but the user can also provide custom functions to extend its functionality.
2 Features
The core functionality of regioneR is a permutation test framework specifically designed to work in a genomic environment. It includes multiple randomization and evaluation strategies and the possibility to use custom functions. It can take into account the underlying structure of the genome using a genome definition and a mask. The result of performing a permutation test with regioneR is an object with the random distribution of the evaluation function, the P value and the z-score of the test (Fig. 1A).
In addition, regionerR includes a set of helper functions based on Bioconductor’s GenomicRanges infrastructure to manage and manipulate region sets with a simple and consistent interface.
2.1 Randomization
Choosing a good randomization strategy is crucial when performing a permutation test. The ideal strategy randomizes the regions with respect to the association being evaluated while maintaining their intrinsic structure. regioneR implements different randomization strategies: one that randomly places all regions independently along the genome with or without overlaps, one randomizing them in a per chromosome basis, a circular randomization that maintains the relative distances between the regions and a resampling strategy useful when a finite universe of possible regions is available. It is also possible to provide new randomization strategies adapted to specific problems. An expanded discussion about the built-in randomization strategies and how to create custom ones is available in the ‘Randomization Functions’ section of the package vignette.
2.2 Evaluation
The evaluation functions, those quantifying the association under study, are even more problem specific. A set of evaluation functions for the most common use cases has been included in the package. With them it is possible to determine either the number of overlaps or the distance between two regions sets, or to evaluate a function over the regions: methylation levels, GC content, etc. Again, it is possible to implement a custom evaluation function when needed. The ‘Evaluation Functions’ section of the package vignette includes more information about the available functions an how to create new ones.
2.3 Input formats
Different BED-like R objects and file formats can be used as input to any function in regioneR. The package implements a function to create a region set from different data sources: data.frame or GRanges R objects, BED or GFF files, either local or remote, and in general, any source accepted by the rtracklayer package.
2.4 Genome and mask
Most functions in regioneR are prepared to work with genomes and masks, respectively, the complete set of chromosomes and the set of genomic regions ‘not available’ to work with e.g. centromeres, repetitive regions. The most suitable mask is case specific and might have an important impact on the final results. All genomes and masks provided by BSGenome can be used and custom genomes and masks can also be easily defined.
2.5 Local z-score
When performing an association analysis it is possible to detect associations that, while statistically significant, are not specific or even not biologically relevant. For example, with ChIP-seq data, it is common to detect a significant overlap between transcription factors and chromatin marks broadly distributed over gene-rich regions. This association can be true, however, it might be indirect and based on the fact that both regions tend to cluster around genes. Although we cannot decide whether an association is biologically relevant or not, with the local z-score we can at least check if the association is specifically linked to the exact position of the regions. By shifting the regions around their original position and plotting their evaluations when shifted, we can study how the value of the z-score varies. While a flat profile suggests a regional association, a sharp peak, as the one shown in Figure 1B, indicates that the association is highly dependent on the exact position of the regions. The package vignette includes a number of complete biological examples, some of which make use of the local z-score computation to further characterize the relation between two region sets.
3 Conclusion
regioneR provides a permutation test based framework to statistically assess the association between a set of regions and any other genomic features or annotations. It implements a number of randomization and evaluation strategies addressing the most common use cases. In addition it can also be easily adapted to specific questions by using custom functions. The package also contains a set of helper functions to simplify the management of sets of genomic regions. regioneR is a new and customizable tool to manage and analyze sets of regions, and a useful addition to the NGS and genome wide analysis toolbox.
References 8
- 1.
De S. (2013 ) The dilemma of choosing the ideal permutation strategy while estimating statistical significance of genome-wide enrichment. Brief. Bioinform.
Not in our library10.1093/bib/bbt053
- 2.
- 3.
- 4.
Lawrence M. (2009 ) rtracklayer: An R package for interfacing with genome browsers. Bioinformatics, 25, 1841–1842.
Not in our library10.1093/bioinformatics/btp328
- 5.
- 6.
Pagès H. (2012 ) BSgenome: infrastructure for Biostrings-based genome data packages. R package version 1.30.0.
Not in our library
- 7.
Phipson B. Smyth G.K. (2010 ) Permutation P-values should never be zero: calculating exact p-values when permutations are randomly drawn. Stat. Appl. Genet. Mol. Biol., 9, 39.
Not in our library10.2202/1544-6115.1585
- 8.
Wu H. (2010 ) Redefining CpG islands using hidden Markov models. Biostatistics, 11, 499–514.
Not in our library10.1093/biostatistics/kxq005
Cited by papers we hold 16
- Cell cycle-dependent TICRR/TRESLIN and MTBP chromatin binding mechanisms and patterns · 2025Not checked
- Chromatin compartmentalization regulates the response to DNA damage · 2023Corrected
- The giant diploid faba genome unlocks variation in a global protein crop · 2023No notice
- ADAR1 averts fatal type I interferon induction by ZBP1 · 2022No notice
- Analysis of recent shared ancestry in a familial cohort identifies coding and noncoding autism spectrum disorder variants · 2022Not checked
- Aberrant integration of Hepatitis B virus DNA promotes major restructuring of human hepatocellular carcinoma genome architecture · 2021Not checked
- Adenosine-to-inosine editing of endogenous Z-form RNA by the deaminase ADAR1 prevents spontaneous MAVS-dependent type I interferon responses · 2021No notice
- DNA methylation‐based biomarkers of aging were slowed down in a two‐year diet and physical activity intervention trial: the DAMA study · 2021No notice
- An integrated multi-omics approach identifies the landscape of interferon-α-mediated responses of human pancreatic beta cells · 2020No notice
- Socioeconomic position, lifestyle habits and biomarkers of epigenetic aging: a multi-cohort analysis · 2019No notice
- Three-Dimensional Genomic Structure and Cohesin Occupancy Correlate with Transcriptional Activity during Spermatogenesis · 2019No notice
- A reference map of murine cardiac transcription factor chromatin occupancy identifies dynamic and conserved enhancers · 2019No notice
- karyoploteR: an R/Bioconductor package to plot customizable genomes displaying arbitrary data · 2017No notice
- Transcriptional signatures of schizophrenia in hiPSC-derived NPCs and neurons are concordant with post-mortem adult brains · 2017No notice
- Genome-Wide Detection of CNVs and Their Association with Meat Tenderness in Nelore Cattle. · 2016Not checked
- Chromatin topology is coupled to Polycomb group protein subnuclear organization · 2016No notice
Reads
Read by people on this page
None yet.
Checked or read by AI through naulon
None yet.
A person counts once a day per paper. We keep no cookie and no address: a reader is a hash that changes every day. Any month under five reads shows no number.
Are you an author?
Is this your paper?
Claim it to add your note and be paid when agents cite it. Free.