Local wavefront alignment with corrected free-end penalty

Background: Pairwise alignment of nucleotide and protein sequences is a fundamental problem in bioinformatics. Wavefront alignment (WFA) is a groundbreaking algorithmic advance that reduces the time complexity of exact (semi-)global pairwise alignment with affine gap penalties from O (N 2) to O (sN). Despite its success, WFA has yet to be extended to the local sequence alignment scope. Results: In this work, we propose a local wavefront alignment (lWFA) which generalizes WFA to the local alignment scope and preserves both the O (sN) time and the O (sN) to O (s 2) space complexity. We also propose the bidirectional lWFA (lBiWFA), which reduces the space complexity of lWFA from O (s 2) to O (s) while maintaining the time complexity as O (sN). Benchmarks show that lWFA and lBiWFA outperform current exact local alignment libraries like SeqAn and Parasail in aligning long sequences with error rate less than 5%. Conclusions: We suggest to use lBiWFA over lWFA because it has negligible memory footprint for aligning reads up to 20kbp, and is faster than lWFA except for short reads with very low error rates. According to the real-data benchmarks, lBiWFA are faster than SeqAn and Parasail for aligning NGS short reads with 0.1%∼1% error rate and ONT long reads with 3%∼5% error rate. However, for reads sequenced by legacy long-read platforms with 10%∼15% error rate, SeqAn and Parasail are faster. Nevertheless, lBiWFA has a competitive speed for reads with error rate up to 10%. One may choose lBiWFA over SeqAn and Parasail if the memory usage is the major concern.

Authors

Institutions

Publication Details

Journal
bioRxiv (Cold Spring Harbor Laboratory)
Published
2026-11-24
DOI
https://doi.org/10.64898/2026.11.23.768503
Primary Topic
Genomics and Phylogenetic Studies
Type
preprint

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Local wavefront alignment with corrected free-end penalty

Qiang Wu, Jingwei Li, Haitao Zhu, Liling Jia
1 links
bioRxiv (Cold Spring Harbor Laboratory)
Genomics and Phylogenetic Studies
preprint

Local wavefront alignment with corrected free-end penalty

Qiang Wu, Jingwei Li, Haitao Zhu, Liling Jia
preprint en

Abstract

Background: Pairwise alignment of nucleotide and protein sequences is a fundamental problem in bioinformatics. Wavefront alignment (WFA) is a groundbreaking algorithmic advance that reduces the time complexity of exact (semi-)global pairwise alignment with affine gap penalties from O (N 2) to O (sN). Despite its success, WFA has yet to be extended to the local sequence alignment scope. Results: In this work, we propose a local wavefront alignment (lWFA) which generalizes WFA to the local alignment scope and preserves both the O (sN) time and the O (sN) to O (s 2) space complexity. We also propose the bidirectional lWFA (lBiWFA), which reduces the space complexity of lWFA from O (s 2) to O (s) while maintaining the time complexity as O (sN). Benchmarks show that lWFA and lBiWFA outperform current exact local alignment libraries like SeqAn and Parasail in aligning long sequences with error rate less than 5%. Conclusions: We suggest to use lBiWFA over lWFA because it has negligible memory footprint for aligning reads up to 20kbp, and is faster than lWFA except for short reads with very low error rates. According to the real-data benchmarks, lBiWFA are faster than SeqAn and Parasail for aligning NGS short reads with 0.1%∼1% error rate and ONT long reads with 3%∼5% error rate. However, for reads sequenced by legacy long-read platforms with 10%∼15% error rate, SeqAn and Parasail are faster. Nevertheless, lBiWFA has a competitive speed for reads with error rate up to 10%. One may choose lBiWFA over SeqAn and Parasail if the memory usage is the major concern.

bioRxiv (Cold Spring Harbor Laboratory)
Shanghai Jiao Tong University (CN)
National Natural Science Foundation of China
Genomics and Phylogenetic Studies
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon
Local wavefront alignment with corrected free-end penalty — Qiang Wu, Jingwei Li, et al. · bioRxiv (Cold Spring Harbor Laboratory) (2026) | TGRS Research Map | TGRS