Skip to main content
Bioinformatics logoLink to Bioinformatics
. 2018 Feb 20;34(13):2289–2291. doi: 10.1093/bioinformatics/bty090

IWTomics: testing high-resolution sequence-based ‘Omics’ data at multiple locations and scales

Marzia A Cremona 1,, Alessia Pini 2,, Fabio Cumbo 3,4, Kateryna D Makova 5,6, Francesca Chiaromonte 1,5,7,, Simone Vantini 2,
Editor: Inanc Birol
PMCID: PMC6022652  PMID: 29474526

Abstract

Summary

With increased generation of high-resolution sequence-based ‘Omics’ data, detecting statistically significant effects at different genomic locations and scales has become key to addressing several scientific questions. IWTomics is an R/Bioconductor package (integrated in Galaxy) that, exploiting sophisticated Functional Data Analysis techniques (i.e. statistical techniques that deal with the analysis of curves), allows users to pre-process, visualize and test these data at multiple locations and scales. The package provides a friendly, flexible and complete workflow that can be employed in many genomic and epigenomic applications.

Availability and implementation

IWTomics is freely available at the Bioconductor website (http://bioconductor.org/packages/IWTomics) and on the main Galaxy instance (https://usegalaxy.org/).

Supplementary information

Supplementary data are available at Bioinformatics online.

1 Introduction

Detecting genomic features associated with the presence of particular DNA elements, or the occurrence of certain events, is a common task in sequence-based ‘Omics’ research—e.g. when studying integration preferences of transposable elements, the landscape of mutations, or epigenomic profiles around Transcription Start Sites (TSS). A possible approach is to measure features in windows of fixed size around the elements or events of interest (e.g. regions with high mutation rates, or surrounding the elements under study) and compare them with controls using univariate hypothesis tests and/or regressions (see Chiaromonte and Makova, 2015, and references therein). The size of the windows defines the scale of the analysis. Large sizes incorporate neighboring effects, but hinder the detection of localized differences since the signal is usually cumulated or averaged over the window. Small sizes map the signal at finer scales, but miss neighboring effects. Another approach is to consider high-resolution feature profiles in the vicinity of the elements or events (e.g. histone modification read coverages around TSSs) and plot average profiles across the whole genome (e.g. Young et al., 2011). Although this approach visualizes both local and neighboring effects of the features, it is specific to coverage data and lacks a rigorous assessment of observed differences.

Here, we present IWTomics, an R/Bioconductor package that implements Functional Data Analysis (FDA) and graphical tools to analyze and compare ‘Omics’ data measured at high resolution over groups of genomic regions. IWTomics provides a data structure to manage several groups of regions and several features, and includes functions for pre-processing, visualization and statistical testing. It implements an extended version of Interval-Wise Testing (IWT) (Pini and Vantini, 2017) designed for sequence-based ‘Omics’ applications, and does not require any pre-specified location or scale. Indeed, the procedure performs each test at multiple locations and scales, and provides in output those at which the considered feature shows significant effects. In doing so, it adjusts P-values taking into account the multiple contiguous locations, and the multiple scales tested. A simplified version of the package is available as a Galaxy tool (Afgan et al., 2016).

2 Statistical background and workflow

To perform hypothesis testing on a high-resolution feature, we treat measurements in small, contiguous windows within each genomic region as evaluations of curves on a discrete grid—embedding the problem in an FDA framework (Fig. 1a). IWT is an inferential procedure to test the null hypothesis that the distributions of two stochastic curves (e.g. the profiles of a feature along two groups of regions) are equal, versus the alternative that they differ. Testing is performed non-parametrically via permutations—making IWT suitable for data which often violate normality. The objects tested are the entire curves, and IWT performs a functional P-value adjustment that considers all locations and scales tested. This procedure differs from multiple testing corrections such as Bonferroni or Benjamini–Hochberg, because it exploits the ordered nature of the measurements along the genome, increasing statistical power (more details below and in Supplementary Section S1). Importantly, IWT has better power and accuracy when the test statistic employed (e.g. the mean difference curve) is smooth. However, while the package includes functions to smooth the data if desired, individual observed ‘Omics’ curves need not to be smooth. A detailed description of the types of ‘Omics’ data that can be analyzed with IWTomics, and of the resolution requirements for the features, is provided in the R/Bioconductor package vignette (Subsection 1.4).

Fig. 1.

Fig. 1.

(a) FDA framework for sequence-based ‘Omics’ data: each genomic region is associated to a curve made of measurements in small, contiguous windows (a curve for each feature considered). (b) Example of pointwise boxplots, for a simulated dataset comprising curves corresponding to one high-resolution feature (Feature 1) in four different groups of genomic regions (visualized with different colors). Regions comprise up to 50 windows (windows –25 to +25), and they are aligned at their center (x-axis). (c) Summary graphical representation of IWT results on the simulated dataset in panel (b). Each row shows the adjusted P-values related to one comparison, at the selected scale threshold. Locations with significant differences between the two groups of curves are shown in red (feature over-represented in the first group) and blue (feature under-represented in the first group). Detailed IWT results and an illustration of adjusted P-value curves can be found in Supplementary Figure S1. An example using real biological data is described in Supplementary Section S3

Let y1,i(x),i=1,,n1 and y2,j(x),j=1,,n2 be random samples from the two stochastic curves, defined on the interval I. IWT performs a functional permutation test on every subinterval S=(xa,xb)I and its complement S=I(xa,xb) obtaining a P-value pS. Then, an adjusted P-value curve p~(x) is computed controlling the interval-wise error rate, i.e. the probability of rejecting the null on every S where it is true (for details, see Pini and Vantini, 2017, and Supplementary Section S1). p~(x) allows the user to identify locations in I where the two curve distributions differ significantly. The extended version of IWT implemented in IWTomics computes an adjusted P-value curve p~s(x) for any given scale s, controlling the interval-wise error rate on every S of length |S|s and allowing the user to identify also scales at which significant differences unfold (Supplementary Section S1). For illustration purpose, consider the simulated data in Figure 1b, and in particular the comparison Element 1 versus Controls (red and cyan boxplots, respectively). IWT performs the test over all 50 possible locations and provides a P-value curve p~s(x) for each possible scale s=1,2,,50. The adjusted P-value curve p~8(x) at scale 8, shown in the first row of the summary plot in Figure 1c, controls the false positive rates among all intervals (made of contiguous windows) of length 1,2,,8.

IWTomics has an efficient, user-friendly implementation based on the R object oriented programming framework. It comprises the S4 data class IWTomicsData to collect information about several features (possibly corresponding to diverse types of sequence-based ‘Omics’ data) in several groups of genomic regions. Data can be supplied through BED or text files, and the import method allows the user to choose from multiple curve alignment options (center, right, left or scale), depending on nature of the data and analysis objectives. IWTomics also allows the user to pre-process data using FDA techniques (e.g. smoothing) and to visualize them with various types of plots (e.g. pointwise boxplots, Fig. 1b). The main function of the package, IWTomicsTest, is a versatile implementation of IWT which includes independent, paired-samples and one-sample tests (center of symmetry of one stochastic curve, e.g. the profile of a feature in a single group of regions). In addition, different test statistics are available (e.g. mean difference, quantile difference). A single run of IWTomicsTest can perform several tests at once (e.g. comparisons concerning different groups of regions and/or features). However, each test is performed independently; adjusted P-value curves in output account for multiple locations and scales in each test, but no correction is applied across tests. Test results can be inspected through adjusted P-value curves and a number of informative graphical representations (Supplementary Fig. S1). A function producing a graphical summary of test results is also provided (Fig. 1c). The workflow of the IWTomics Galaxy tool is shown in Supplementary Figure S2.

3 Application examples

Campos-Sánchez et al. (2016) employed a beta version of IWTomics to investigate how features of the genomic landscape affect integration and fixation of endogenous retroviruses (ERVs), based on their profiles around ERVs integration sites. Using the Interval Testing Procedure (ITP, Pini and Vantini, 2016), of which the IWT is an extension, they were able to disentangle integration versus fixation preferences and to gain important insights into the mechanisms underlying the uneven distribution of ERVs along the genome.

In another application, Guiblet et al. (2017) used IWTomics to analyze DNA polymerization kinetics and the effects of non-B DNA motifs and microsatellites (sequences where DNA may adopt a three-dimensional conformation different from the canonical double-stranded structure) on the time of incorporation of consecutive bases in PacBio sequencing. They found that DNA polymerization kinetics is affected not only by the particular nucleotide being incorporated, but also by the presence of non-B DNA structures.

In Supplementary Section S3, we demonstrate the performance of IWTomics comparing it to alternative methods, using both real biological data (a subset of the ERV dataset analyzed in Campos-Sánchez et al., 2016) and simulated data. Details about computation time are provided in Supplementary Section S4.

4 Conclusion

IWTomics is one of the first tools employing rigorous and sophisticated FDA techniques for the analysis of high-resolution sequence-based ‘Omics’ data. It is easy to use and broadly applicable, since it does not require assumptions on the curve distributions, nor pre-specification of effect locations or scales. We expect it to provide critical insights into many genomic and epigenomic analyses.

Supplementary Material

Supplementary Data

Acknowledgement

The authors thank Monika Cechova for useful comments on the package.

Funding

This work was supported by: Eberly College of Sciences and Institute of CyberScience, The Pennsylvania State University; National Center for Research Resources and National Center for Advancing Translational Sciences, NIH (Grant UL1TR000127; the content is solely the responsibility of the authors and does not necessarily represent the official views of the NIH); Tobacco Settlement and CURE funds, PA Department of Health (the Department specifically disclaims responsibility for any analyses, interpretations or conclusions).

Conflict of Interest: none declared.

References

  1. Afgan E. et al. (2016) The Galaxy platform for accessible, reproducible and collaborative biomedical analyses: 2016 update. Nucleic Acids Res., 44, W3.. [DOI] [PMC free article] [PubMed] [Google Scholar]
  2. Campos-Sánchez R. et al. (2016) Integration and fixation preferences of human and mouse endogenous retroviruses uncovered with functional data analysis. PLoS Comput. Biol., 12, e1004956–e1004941. [DOI] [PMC free article] [PubMed] [Google Scholar]
  3. Chiaromonte F., Makova K.D. (2015) Using statistics to shed light on the dynamics of the human genome: a review In: Advances in Complex Data Modeling and Computational Methods in Statistics. Springer, Cham: pp. 69–85. [Google Scholar]
  4. Guiblet W. et al. (2017) Non-B DNA affects speed and error rate in sequencers and living cells. bioRxiv, 237461. [Google Scholar]
  5. Pini A., Vantini S. (2016) The interval testing procedure: a general framework for inference in functional data analysis. Biometrics, 73, 835–884. [DOI] [PubMed] [Google Scholar]
  6. Pini A., Vantini S. (2017) Interval-wise testing for functional data. J. Nonparametr. Statist., 29, 407–424. [Google Scholar]
  7. Young M. et al. (2011) ChIP-seq analysis reveals distinct H3K27me3 profiles that correlate with transcriptional activity. Nucleic Acids Res., 39, 7415–7427. [DOI] [PMC free article] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Supplementary Data

Articles from Bioinformatics are provided here courtesy of Oxford University Press

RESOURCES