Fast sequence to graph alignment using the graph wavefront algorithm

Haowen Zhang, Shiqi Wu, Srinivas Aluru, Heng Li
6/27/2022
q-bio.GNq-bio.QM

Official code: lh3/gwfa (57 stars, C, MIT, last commit 2024-05-29).

Abstract

Motivation: A pan-genome graph represents a collection of genomes and encodes sequence variations between them. It is a powerful data structure for studying multiple similar genomes.

Show full abstract

Sequence-to-graph alignment is an essential step for the construction and the analysis of pan-genome graphs. However, existing algorithms incur runtime proportional to the product of sequence length and graph size, making them inefficient for aligning long sequences against large graphs. Results: We propose the graph wavefront alignment algorithm (Gwfa), a new method for aligning a sequence to a sequence graph. Although the worst-case time complexity of Gwfa is the same as the existing algorithms, it is designed to run faster for closely matching sequences, and its runtime in practice often increases only moderately with the edit distance of the optimal alignment. On four real datasets, Gwfa is up to four orders of magnitude faster than other exact sequence-to-graph alignment algorithms. We also propose a graph pruning heuristic on top of Gwfa, which can achieve an additional $\sim$10-fold speedup on large graphs. Availability: Gwfa code is accessible at https://github.com/lh3/gwfa.

View on arXivView PDF

Code Implementations(1)

lh3/gwfaOfficial100%
MIT

Proof-of-concept implementation of GWFA for sequence-to-graph alignment

573C, TeXDec 5, 20212 years agoMIT

Similar Papers

Cite this paper

@article{zhang2022fast,
  title  = {Fast sequence to graph alignment using the graph wavefront algorithm},
  author = {Haowen Zhang and Shiqi Wu and Srinivas Aluru and Heng Li},
  year   = {2022},
  eprint = {2206.13574},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2206.13574}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2206.13574.svg)](https://codeofpaper.com/paper/2206.13574)

Discussion