Skip to main content
Bioinformatics logoLink to Bioinformatics
letter
. 2019 Jan 22;35(17):3211–3213. doi: 10.1093/bioinformatics/btz045

Functional data analysis for computational biology

Marzia A Cremona 1, Hongyan Xu 2, Kateryna D Makova 3,4, Matthew Reimherr 1, Francesca Chiaromonte 1,5, Pedro Madrigal 6,7,
Editor: Janet Kelso
PMCID: PMC6736445  PMID: 30668667

Abstract

Supplementary information: Supplementary data are available at Bioinformatics online.


To the Editor: How the many players of the genome and epigenome orchestrate transcriptional regulation, as well as other molecular mechanisms related to development or diseases, remains an unresolved question in biology. Most sequencing-based genomic or epigenomic assays generate high-resolution data suitable to be represented as 1D curves over the genome (e.g. ChIP-seq) or 2D heatmaps over 3D space (e.g. chromosome conformation capture techniques such as Hi-C). Functional data analysis (FDA), a repertoire of statistical methods that considers data as evaluations of curves (mathematical functions) over a discrete grid, plays a critical role in exploiting the output of Next generation sequencing (NGS) assays, and allows sophisticated biological interpretation of shape information. However, despite its potential, FDA has not received much attention compared to machine learning in general, or deep learning—which has become increasingly popular. Obstacles to the spread of FDA in computational biology include, but are not limited to, the paucity of user-friendly software specifically designed for omics applications, the absence of functional analogues to some of the classical multivariate techniques, and the complexities of interpreting curvature and derivatives which are keys in FDA but not even defined in multivariate analysis.

NGS data are subject to several problems such as missing values, correlations among neighbouring genomic positions, and non-trivial technology-specific noise sources. Many standard statistical methods, as well as some machine learning methods, rely on rather simplistic specifications of correlations and noise—and are not robust if these specifications are not accurate. FDA is an appealing option for overcoming these problems. Correlations among neighbouring measurements can in fact be advantageous in FDA—which smooths such measurements into curves, effectively reducing the dimension of the data. Importantly, the dimension of smooth data representations can be controlled selecting the type and number of basis functions employed, while roughness penalties (e.g. on the total curvature of a function) allow continuous control over smoothness. By representing the data as functions, FDA also alleviates the impact of non-trivial noise and ‘fills in’ missing values, improving statistical power. In addition to improving signal-to-noise ratios, and hence power, smoothing can unveil information and biological insights missed by multivariate techniques, as long as the assumption of smoothing is reasonable (Froslie et al., 2013).

FDA has begun to appear in the computational biology/bioinformatics and ‘omics’ literature during the last 5 years. We identified three main research directions in which leveraging shape information already proved to be effective. These directions could, and in our opinion should, be expanded to encompass a wider range of techniques and applications of interest to the research community.

  1. Shapes of the genomic landscape. Recent techniques profile a very large number of features at increasing levels of resolution, generating a multifaceted, fine-detail map of the genomic landscape which includes, e.g. interspersed repeat densities, replication timing, recombination rates, mutation rates, etc. Using the shapes of the genomic landscape increases power and accuracy in contrasting genomic regions and loci of interest (Cremona et al., 2018). For instance, the flanks of old and young endogenous retroviruses can be contrasted against background regions to investigate their integration and fixation preferences in mammalian genomes (Campos-Sanchez et al., 2016). Contrasting shapes is also useful in a variety of other applications, e.g. to study how polymerization speed and error rates are affected by non-B DNA (Guiblet et al., 2018) (Fig. 1A).

  2. Shapes of the epigenome. NGS techniques produce nucleotide or quasi-nucleotide resolution signals for the epigenome. Shape information is useful at every step of epigenomic data analysis, from the pre-processing of sequenced reads to the study of cellular processes and functions. It has been used to improve binding site detection (Mendoza-Parra et al., 2013; Wu and Ji, 2014), as well as to compare ChIP-seq profiles between different replicates, conditions and/or times (Madrigal, 2017; Schweikert et al., 2013). Techniques have been developed for clustering ChIP-seq peaks characterized by different shapes (Cremona et al., 2015; Parodi et al., 2017), and for exploiting shape variation and co-variation in the identification of histone mark effects in gene regulation, and between histone modifications and DNA binding proteins (Madrigal, 2017; Madrigal and Krajewski, 2015). Additional work is needed to analyze sparse data in single-cell epigenomics (Kelsey et al., 2017) (Fig. 1B), incorporate shape in the analysis of chromatin spatial organization, and integrate 1D epigenomic profiles with 3D information.

  3. Shapes of phenotypes. Information in shapes can be leveraged in traditional longitudinal and biometric studies, such as growth curves and gene expression trajectories. Complex phenotypes represented as functional outcomes, in combination with DNA sequencing data, can dramatically increase power and accuracy for detecting relevant variants in genome-wide association studies (Reimherr and Nicolae, 2014) and for associating microbiota composition to child weight gain (Craig et al., 2018). Among the most recent developments in this field are techniques for feature selection in models where a functional outcome is regressed against a very large number of potential predictors (e.g. single nucleotide polymorphisms) (Foygel-Barber et al., 2017). These techniques can be generalized for contemporary biomedical imaging, representing quantitative complex phenotypes as functions; Examples include 2D or 3D imaging of tissues, organs or body parts (Huang et al., 2017; Kang et al., 2017) (Fig. 1C).

Fig. 1.

Fig. 1.

Examples of FDA in computational biology. (A) Comparison of polymerase speed data (inter-pulse duration) between non-B DNA and control regions, using a functional hypothesis test (Guiblet et al., 2018). (B) Estimated coverage profile of scNMT-seq single-cell chromatin accessibility data for four mouse embryonic stem cells facilitated by sparse functional principal component analysis on a population of 69 cells (Madrigal et al., 2018). (C) Integration of genetic data and neuroimaging using a functional genome-wide association analysis framework (SNP rs3108514 for right hippocampus surface) (Huang et al., 2017)

We also believe that the scope of FDA could be broadened to other areas of computational biology, with methods that target specifically data generated by novel assay techniques. The Human Cell Atlas will soon release millions (perhaps a billion) of single-cell datasets (Rozenblatt-Rosen et al., 2017). Based on recent contributions (Clark et al., 2018) (Fig. 1B) we anticipate that, because of severe sparsity, FDA will be even more useful in single-cell epitranscriptomics or epigenomics than it has been to date.

FDA models could also be used to study dynamics in time series for NGS data, including transcriptomic measures such as RNA velocity—the time derivative of RNA abundance (La Manno et al., 2018). With the popularization of chromatin conformation capture and data becoming more spatio-temporal in nature, investigating variation in the shape of DNA, spatial smoothing, building predictive models and integrating derivative information into these models are challenges that could be addressed using FDA. Development of informative summary statistics, exploratory techniques and rigorous inferential methods will all be necessary.

Finally, representing the evolution of shapes over time can be critically important also for phenotypes and genomic landscape (e.g. temporal change in the 3D shape of an imaged tumour mass; temporal change in the landscape of mutations, transcription factor binding, methylation and gene expression, of a cancer genome). FDA methods able to include temporal evolution in the analysis will be extremely useful in this context.

For all these reasons, we believe there is ample room for FDA in computational biology. We hope that an increasing number of researchers in the community will start using and developing FDA methods in many different settings, generating novel biological insights. In the Supplementary Material, we provide a list of online resources, books and software as a starting point for those interested in FDA.

Funding

This work was supported by the Eberly College of Science and the Institute of CyberScience. The Pennsylvania State University; the National Center for Research Resources and the 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); and the 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.

Supplementary Material

btz045_Supplementary_Material

Acknowledgements

We thank Naomi Altman for helpful discussions, and Chao Huang and Hongtu Zhu for providing Figure 1C.

References

  1. Campos-Sanchez R. et al. (2016) Integration and fixation preferences of human and mouse endogenous retroviruses uncovered with functional data analysis. PLoS Comput. Biol., 12, e1004956.. [DOI] [PMC free article] [PubMed] [Google Scholar]
  2. Clark S.J. et al. (2018) scNMT-seq enables joint profiling of chromatin accessibility DNA methylation and transcription in single cells. Nat. Commun., 9, 781.. [DOI] [PMC free article] [PubMed] [Google Scholar]
  3. Craig S.J. et al. (2018) Child weight gain trajectories linked to oral microbiota composition. Sci. Rep., 8, 14030.. [DOI] [PMC free article] [PubMed] [Google Scholar]
  4. Cremona M.A. et al. (2015) Peak shape clustering reveals biological insights. BMC Bioinformatics, 16, 349.. [DOI] [PMC free article] [PubMed] [Google Scholar]
  5. Cremona M.A. et al. (2018) IWTomics: testing high-resolution sequence-based ‘Omics' data at multiple locations and scales. Bioinformatics, 34, 2289–2291. [DOI] [PMC free article] [PubMed] [Google Scholar]
  6. Foygel-Barber R. et al. (2017) The function-on-scalar LASSO with applications to longitudinal GWAS. Electron. J. Statist., 11, 1351–1389. [Google Scholar]
  7. Froslie K.F. et al. (2013) Shape information from glucose curves: functional data analysis compared with traditional summary measures. BMC Med. Res. Methodol., 13, 6.. [DOI] [PMC free article] [PubMed] [Google Scholar]
  8. Guiblet W.M. et al. (2018) Non-B DNA affects speed and error rate in sequencers and living cells. Genome Res., 28, 1767–1778. [DOI] [PMC free article] [PubMed] [Google Scholar]
  9. Huang C. et al. (2017) FGWAS: functional genome wide association analysis. Neuroimage, 159, 107–121. [DOI] [PMC free article] [PubMed] [Google Scholar]
  10. Kang H.B. et al. (2017) Manifold data analysis with applications to high-frequency 3D imaging. arXiv, 1710, 01619. [Google Scholar]
  11. Kelsey G. et al. (2017) Single-cell epigenomics: recording the past and predicting the future. Science, 358, 69–75. [DOI] [PubMed] [Google Scholar]
  12. La Manno G. et al. (2018) RNA velocity of single cells. Nature, 560, 494–498. [DOI] [PMC free article] [PubMed] [Google Scholar]
  13. Madrigal P. (2017) fCCAC: functional canonical correlation analysis to evaluate covariance between nucleic acid sequencing datasets. Bioinformatics, 33, 746–748. [DOI] [PMC free article] [PubMed] [Google Scholar]
  14. Madrigal P., Krajewski P. (2015) Uncovering correlated variability in epigenomic datasets using the Karhunen-Loeve transform. BioData Min., 8, 20. [DOI] [PMC free article] [PubMed] [Google Scholar]
  15. Madrigal P. et al. (2018) Sparse functional data analysis accounts for missing information in single-cell epigenomics. 10.1101/504365. [DOI] [Google Scholar]
  16. Mendoza-Parra M.A. et al. (2013) Characterising ChIP-seq binding patterns by model-based peak shape deconvolution. BMC Genomics, 14, 834. [DOI] [PMC free article] [PubMed] [Google Scholar]
  17. Parodi A.C.L. et al. (2017) FunChIP: an R/Bioconductor package for functional classification of ChIP-seq shapes. Bioinformatics, 33, 2570–2572. [DOI] [PubMed] [Google Scholar]
  18. Reimherr M., Nicolae D. (2014) A functional data analysis approach for genetic association studies. Ann. Appl. Stat., 8, 406–429. [Google Scholar]
  19. Rozenblatt-Rosen O. et al. (2017) The Human Cell Atlas: from vision to reality. Nature, 550, 451–453. [DOI] [PubMed] [Google Scholar]
  20. Schweikert G. et al. (2013) MMDiff: quantitative testing for shape changes in ChIP-Seq data sets. BMC Genomics, 14, 826.. [DOI] [PMC free article] [PubMed] [Google Scholar]
  21. Wu H., Ji H. (2014) PolyaPeak: detecting transcription factor binding sites from ChIP-seq using peak shape information. PLoS One, 9, e89694. [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

btz045_Supplementary_Material

Articles from Bioinformatics are provided here courtesy of Oxford University Press

RESOURCES