Exact global alignment using A* with chaining seed heuristic and match pruning
Abstract
MotivationSequence alignment has been at the core of computational biology for half a century. Still, it is an open problem to design a practical algorithm for exact alignment of a pair of related sequences in linear-like time (Medvedev, 2022b). MethodsWe solve exact global pairwise alignment with respect to edit distance by using the A* shortest path algorithm. In order to efficiently align long sequences with high divergence, we extend the recently proposed seed heuristic (Ivanov et al., 2022) with match chaining, gap costs, and inexact matches. We additionally integrate the novel match pruning technique and diagonal transition (Ukkonen, 1985) to improve the A* search. We prove the correctness of our algorithm, implement it in the A*PA aligner, and justify our extensions intuitively and empirically. ResultsOn random sequences of divergence d=4% and length n, the empirical runtime of A*PA scales near-linearly with length (best fit n1.06, n[≤]107 bp). A similar scaling remains up to d=12% (best fit n1.24, n[≤]107 bp). For n=107 bp and d=4%, A*PA reaches >500x speedup compared to the leading exact aligners EDLIB and BIWFA. The performance of A*PA is highly influenced by long gaps. On long (n>500 kbp) ONT reads of a human sample it efficiently aligns sequences with d<10%, leading to 3x median speedup compared to EDLIB and BIWFA. When the sequences come from different human samples, A*PA performs 1.7x faster than EDLIB and BIWFA. Availabilitygithub.com/RagnarGrootKoerkamp/astar-pairwise-aligner Contactragnar.grootkoerkamp@inf.ethz.ch, pesho@inf.ethz.ch
02 /Specification & Classification
Click any tag to browse matching papers- Citations
- 17
- FWCI
- 2.06
- Field percentile
- top 12%
- 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
- A*PA2: up to 20 times faster exact global alignment
Ragnar Groot Koerkamp·bioRxiv·Mar 24, 2024
- QuickEd: High-performance exact sequence alignment based on bound-and-align
Max Doblas, Oscar Lostes-Cazorla, … Santiago Marco‐Sola·BioinformaticsPeer-reviewed·Mar 1, 2025
- 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
- Faster sequence alignment through GPU-accelerated restriction of the seed-and-extend search space
Richard Wilton, Tamas Budavari, … Alex Szalay·bioRxiv·Aug 1, 2014
- AStarix: Fast and Optimal Sequence-to-Graph Alignment
Pesho Ivanov, Benjamin Bichsel, … Martin Vechev·bioRxiv·Jan 22, 2020
- Block aligner: fast and flexible pairwise sequence alignment with SIMD-accelerated adaptive blocks
Daniel Liu, Martin Steinegger·bioRxiv·Nov 8, 2021