Sign in
BioinformaticsbioRxiv
Preprint

NW-flex: flexible-block sequence alignment for short tandem repeats

Zhezhen YuiD, Dan LevyiD

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.

PDFDOI

02 /Specification & Classification

Click any tag to browse matching papers

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.

Similarity Map
SelectedSame fieldCross-field
THISYahi '18Shao '24Suzuki '17Zong '24Liu '21Al‐Ghalith '20
66% semantic matchBioinformatics
Alexandre Yahi, Tuuli Lappalainen, Pejman Mohammadi+1 more·bioRxiv·Jul 19, 2018· 3 citations