Aligning Distant Sequences to Graphs using Long Seed Sketches
Amir JoudakiiD, Alexandru MetereziD, Harun MustafaiD, Ragnar Groot KoerkampiD, André KahlesiD, Gunnar RätschiD
Abstract
Sequence-to-graph alignment is an important step in applications such as variant genotyping, read error correction and genome assembly. When a query sequence requires a substantial number of edits to align, approximate alignment tools that follow the seed-and-extend approach require shorter seeds to get any matches. However, in large graphs with high variation, relying on a shorter seed length leads to an exponential increase in spurious matches. We propose a novel seeding approach relying on long inexact matches instead of short exact matches. We demonstrate experimentally that our approach achieves a better time-accuracy trade-off in settings with up to a 25% mutation rate. We achieve this by sketching a subset of graph nodes and storing them in a K-nearest neighbor index. While sketches are more robust to indels, finding the nearest neighbor of a sketch in a high-dimensional space is more computationally challenging than finding exact seeds. We demonstrate that if we store sketch vectors in a K-nearest neighbor index, we can circumvent the curse of dimensionality. Our long sketch-based seed scheme contrasts existing approaches and highlights the important role that tensor sketching can play in bioinformatics applications. Our proposed seeding method and implementation have several advantages: i) We empirically show that our method is efficient and scales to graphs with 1 billion nodes, with time and memory requirements for preprocessing growing linearly with graph size and query time growing quasi-logarithmically with query length. ii) For queries with an edit distance of 25% relative to their length, on the 1 billion node graph, longer sketch-based seeds yield a 4x increase in recall compared to exact seeds. iii) Conceptually, our seeder can be incorporated into other aligners, proposing a novel direction for sequence-to-graph alignment. The implementation is available at: https://github.com/ratschlab/tensor-sketch-alignment.
02 /Specification & Classification
Click any tag to browse matching papers- Citations
- 10
- Assay
- Research Focus
- Approach
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
- GraphAligner: Rapid and Versatile Sequence-to-Graph Alignment
Mikko Rautiainen, Tobias Marschall·Genome biologyPeer-reviewed·Sep 24, 2020
- Fast and Optimal Sequence-to-Graph Alignment Guided by Seeds
Pesho Ivanov, Benjamin Bichsel, Martin Vechev·Lecture notes in computer sciencePeer-reviewed·Jan 1, 2022
- Bit-parallel sequence-to-graph alignment
Mikko Rautiainen, Veli Mäkinen, Tobias Marschall·BioinformaticsPeer-reviewed·Mar 7, 2019
- Fast Alignment-Free Similarity Estimation By Tensor Sketching
Amir Joudaki, Gunnar Rätsch, André Kahles·bioRxiv·Nov 13, 2020
- Distance Indexing and Seed Clustering in Sequence Graphs
Xian H. Chang, Jordan M. Eizenga, … Benedict Paten·BioinformaticsPeer-reviewed·Jun 4, 2020
- On the Complexity of Sequence to Graph Alignment
Chirag Jain, Haowen Zhang, … Srinivas Aluru·Journal of Computational BiologyPeer-reviewed·Jan 6, 2020