bioRxivBioinformaticsPreprint
Fast computation of principal components of genomic similarity matrices
Georg HahniD, Sharon Marie LutziD, Julian HeckeriD, Dmitry ProkopenkoiD, Michael H. ChoiD, Edwin K. SilvermaniD, Scott T. WeissiD, Christoph LangeiD
Abstract
The computation of a similarity measure for genomic data, for instance using the (genomic) covariance matrix, the Jaccard matrix, or the genomic relationship matrix (GRM), is a standard tool in computational genetics. The principal components of such matrices are routinely used to correct for biases in, for instance, linear regressions. However, the calculation of both a similarity matrix and its singular value decomposition (SVD) are computationally intensive. The contribution of this article is threefold. First, we demonstrate that the calculation of three matrices (the genomic covariance matrix, the weighted Jaccard matrix, and the genomic relationship matrix) can be reformulated in a unified way which allows for an exact, faster SVD computation. An exception is the Jaccard matrix, which does not have a structure applicable for the fast SVD computation. An exact algorithm is proposed to compute the principal components of the genomic covariance, weighted Jaccard, and genomic relationship matrices. The algorithm is adapted from an existing randomized SVD algorithm and ensures that all computations are carried out in sparse matrix algebra. Second, an approximate Jaccard matrix is introduced to which the fast SVD computation is applicable. Third, we establish guaranteed theoretical bounds on the distance (in L2 norm and angle) between the principal components of the Jaccard matrix and the ones of our proposed approximation, thus putting the proposed Jaccard approximation on a solid mathematical foundation. We illustrate all computations on both simulated data and data of the 1000 Genome Project, showing that the approximation error is very low in practice.
- Citations
- 0
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Efficient Calculation of the Genomic Relationship Matrix
Martin Schlather·bioRxiv·Jan 12, 2020
- Exploiting Low-Rank Structure in Genomic Relationship Matrices for Computationally Efficient Optimum Contribution Selection
Jon Ahlinder, Patrik Waldmann·bioRxiv·Oct 11, 2026
- A Fast, Provably Accurate Approximation Algorithm for Sparse Principal Component Analysis Reveals Human Genetic Variation Across the World
Agniva Chowdhury, Aritra Bose, … Petros Drineas B·Lecture notes in computer sciencePeer-reviewed·Jan 1, 2022
- Properties Of Genomic Relationships For Estimating Current Genetic Variances Within And Genetic Correlations Between Populations
Yvonne C. J. Wientjes, Piter Bijma, … M.P.L. Calus·GeneticsPeer-reviewed·Aug 16, 2017
- The algorithm for proven and young (APY) from a different perspective
Mohammad Ali Nilforooshan·bioRxiv·Nov 23, 2022
- Spectral Jaccard Similarity: A new approach to estimating pairwise sequence alignments
Tavor Z. Baharav, Govinda M. Kamath, … Ilan Shomorony·PatternsPeer-reviewed·Jul 31, 2020