NW-flex: flexible-block sequence alignment for short tandem repeats
Abstract
Aligning sequencing reads to short tandem repeats (STRs) is challenging: the number of repeat copies in a read often differs from the reference, and small changes inside and around the repeat can lead to many competing alignments. We introduce NW-flex, a simple extension of classical sequence alignment that addresses this problem. NW-flex takes a reference with a designated internal block and, while allowing that block to contract to any shorter substring, identifies the best-scoring alignment. Apart from this substring choice, the alignment obeys the usual substitution scoring and gap constraints. For STRs, we design the flexible block with enough repeat copies to accommodate any expected repeat count. The alignment then contracts the reference to match the read while the unique flanks remain fully constrained. NW-flex requires a small modification to the Needleman-Wunsch/Gotoh algorithm, adds minimal computational overhead, and preserves optimality with respect to classical scoring. We provide open-source Python and Cython implementations, a set of worked examples, and notebooks that reproduce the figures and validate correctness against baseline alignments.
02 /Specification & Classification
Click any tag to browse matching papersReproducibility 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
- RecNW: A fast pairwise aligner for targeted sequencing
Alexandre Yahi, Tuuli Lappalainen, … Nicholas P. Tatonetti·bioRxiv·Jul 19, 2018
- BSAlign: a library for nucleotide sequence alignment
Haojing Shao, Jue Ruan·Genomics Proteomics & BioinformaticsPeer-reviewed·Mar 14, 2024
- Acceleration Of Nucleotide Semi-Global Alignment With Adaptive Banded Dynamic Programming
Hajime Suzuki, Masahiro Kasahara·bioRxiv·Sep 7, 2017
- TSTA: Thread and SIMD-Based Trapezoidal Pairwise/Multiple Sequence Alignment Method
Peiyu Zong, Wenpeng Deng, … Jue Ruan·GigabytePeer-reviewed·Nov 5, 2024
- Block aligner: fast and flexible pairwise sequence alignment with SIMD-accelerated adaptive blocks
Daniel Liu, Martin Steinegger·bioRxiv·Nov 8, 2021
- BURST enables mathematically optimal short-read alignment for big data
Gabriel A. Al‐Ghalith, Dan Knights·bioRxiv·Sep 8, 2020