Singletrack: An Algorithm for Improving Memory Consumption and Performance of Gap-Affine Sequence Alignment
Lorién López‐VillellasiD, Cristian IñigueziD, Albert Jiménez-BlancoiD, Quim Aguado-PuigiD, Miquel MoretóiD, Jesús Alastruey-BenedéiD, Pablo IbáñeziD, Santiago Marco‐SolaiD
Abstract
MotivationAdvances in DNA sequencing have outpaced advances in computation, making sequence alignment a major bottleneck in genome data analyses. Classical dynamic programming (DP) algorithms are particularly memory-intensive, especially when computing gap-affine and dual gap-affine alignments. Existing strategies to reduce memory consumption often sacrifice either speed or alignment accuracy. ResultsWe present Singletrack, an efficient algorithm for backtrace gap-affine and dual gap-affine alignments that requires only storing a single DP matrix. Compared to classical DP algorithms, Singletrack removes the need to store additional matrices (i.e., 2 for gap-affine and 4 for dual gap-affine), significantly reducing memory consumption and, in turn, reducing pressure on the memory hierarchy and improving overall performance. Most importantly, Singletrack is a general backtrace method compatible with state-of-the-art DP-based algorithms and heuristics, such as the Suzuki-Kasahara (SK) and the Wavefront Alignment (WFA) algorithms. Our results demonstrate that Singletrack accelerates the SK implementation of KSW2, used within Minimap2, by up to 1.4x. Similarly, Singletrack enhances the performance of the WFA implementation in WFA2-lib by 1.2-2.1x while reducing memory usage by 3x for gap-affine and 5x for dual gap-affine. Compared to the efficient linear-memory BiWFA algorithm, the Singletrack-accelerated version of WFA trades a practical increase in memory usage for up to 5.2x higher performance. AvailabilityAll the implementations of the Singletrack algorithm presented in this work are available at https://github.com/LorienLV/singletrack.
02 /Specification & Classification
Click any tag to browse matching papers- Citations
- 2
- FWCI
- 6.79
- Field percentile
- top 5%
- 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
- Optimal gap-affine alignment in O(s) space
Santiago Marco‐Sola, Jordan M. Eizenga, … Miquel Moretó·BioinformaticsPeer-reviewed·Feb 1, 2023
- Improving the time and space complexity of the WFA algorithm and generalizing its scoring
Jordan M. Eizenga, Benedict Paten·bioRxiv·Jan 12, 2022
- WFA-GPU: Gap-affine pairwise alignment using GPUs
Quim Aguado-Puig, Max Doblas, … Miquel Moretó·bioRxiv·Apr 18, 2022
- BIMSA: Accelerating Long Sequence Alignment Using Processing-In-Memory
Alejandro Alonso-Marín, Ivan Fernandez, … Miquel Moretó·BioinformaticsPeer-reviewed·Oct 17, 2024
- Accelign: a GPU-based Library for Accelerating Pairwise Sequence Alignment
Felix Kallenborn, Fawaz Dabbaghie, … Bertil Schmidt·BMC BioinformaticsPeer-reviewed·Jun 21, 2026
- Theseus: Fast and Optimal Affine-Gap Sequence-to-Graph Alignment
Albert Jiménez-Blanco, Lorién López‐Villellas, … Santiago Marco‐Sola·BioinformaticsPeer-reviewed·Jul 25, 2026