NW-flex:允许参考片段收缩的短串联重复序列比对方法
Flexible-block sequence alignment for short tandem repeats
研究提出 NW-flex,一种针对短串联重复(STR)区读段比对的序列比对扩展方法。它允许参考序列中指定的内部片段收缩为任意更短的子串,同时保持常规的替换打分与空位约束,从而让比对结果贴合读段实际的重复拷贝数,而不被参考的重复长度带偏。作者为 STR 设计的可收缩片段包含足够多的重复拷贝,以覆盖预期重复数,两侧唯一序列仍受完全约束。在真实与模拟读段中,常规比对器倾向参考的重复长度,NW-flex 则不会。该方法只需对 Needleman–Wunsch/Gotoh 算法做小幅修改,计算开销增加很小,并保持经典打分下的最优性。
来源:NAR Genomics and Bioinformatics · doi.org
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. In real and simulated reads, a conventional aligner favors the repeat length of the reference, and NW-flex does not. 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.