bioRxivBioinformaticsPreprint
Improving the time and space complexity of the WFA algorithm and generalizing its scoring
Abstract
MotivationModern genomic sequencing data is trending toward longer sequences with higher accuracy. Many analyses using these data will center on alignments, but classical exact alignment algorithms are infeasible for long sequences. The recently proposed WFA algorithm demonstrated how to perform exact alignment for long, similar sequences in O(sN) time and O(s2) memory, where s is a score that is low for similar sequences (Marco-Sola et al., 2021). However, this algorithm still has infeasible memory requirements for longer sequences. Also, it uses an alternate scoring system that is unfamiliar to many bioinformaticians. ResultsWe describe variants of WFA that improve its asymptotic memory use from O(s2) to O(s3/2) and its asymptotic run time from O(sN) to O(s2 + N). We expect the reduction in memory use to be particularly impactful, as it makes it practical to perform highly multithreaded megabase-scale exact alignments in common compute environments. In addition, we show how to fold WFAs alternate scoring into the broader literature on alignment scores. AvailabilityAll code is publicly available for use and modification at https://github.com/jeizenga/wfalm. Contactjeizenga@ucsc.edu Supplementary informationSupplementary data are available online.
- Citations
- 18
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
- Singletrack: An Algorithm for Improving Memory Consumption and Performance of Gap-Affine Sequence Alignment
Lorién López‐Villellas, Cristian Iñiguez, … Santiago Marco‐Sola·BioinformaticsPeer-reviewed·Apr 10, 2026
- WFA-GPU: Gap-affine pairwise alignment using GPUs
Quim Aguado-Puig, Max Doblas, … Miquel Moretó·bioRxiv·Apr 18, 2022
- QuickEd: High-performance exact sequence alignment based on bound-and-align
Max Doblas, Oscar Lostes-Cazorla, … Santiago Marco‐Sola·BioinformaticsPeer-reviewed·Mar 1, 2025
- BWA-MEME: BWA-MEM emulated with a machine learning approach
Youngmok Jung, Dongsu Han·BioinformaticsPeer-reviewed·Mar 3, 2022
- BIMSA: Accelerating Long Sequence Alignment Using Processing-In-Memory
Alejandro Alonso-Marín, Ivan Fernandez, … Miquel Moretó·BioinformaticsPeer-reviewed·Oct 17, 2024