• HOME
  • NEWS
  • EXPLORE
    • CAREER
      • Companies
      • Jobs
    • EVENTS
    • iGEM
      • News
      • Team
    • PHOTOS
    • VIDEO
    • WIKI
  • BLOG
  • COMMUNITY
    • FACEBOOK
    • INSTAGRAM
    • TWITTER
Thursday, December 3, 2026
BIOENGINEER.ORG
No Result
View All Result
  • Login
  • HOME
  • NEWS
  • EXPLORE
    • CAREER
      • Companies
      • Jobs
        • Lecturer
        • PhD Studentship
        • Postdoc
        • Research Assistant
    • EVENTS
    • iGEM
      • News
      • Team
    • PHOTOS
    • VIDEO
    • WIKI
  • BLOG
  • COMMUNITY
    • FACEBOOK
    • INSTAGRAM
    • TWITTER
  • HOME
  • NEWS
  • EXPLORE
    • CAREER
      • Companies
      • Jobs
        • Lecturer
        • PhD Studentship
        • Postdoc
        • Research Assistant
    • EVENTS
    • iGEM
      • News
      • Team
    • PHOTOS
    • VIDEO
    • WIKI
  • BLOG
  • COMMUNITY
    • FACEBOOK
    • INSTAGRAM
    • TWITTER
No Result
View All Result
Bioengineer.org
No Result
View All Result
Home NEWS Science News Health

Flexible-block sequence alignment avoids reference bias at short tandem repeats

by
December 3, 2026
in Health
Reading Time: 6 mins read
0
Flexible-block sequence alignment avoids reference bias at short tandem repeats

Flexible-block sequence alignment avoids reference bias at short tandem repeats

Share on FacebookShare on TwitterShare on LinkedinShare on RedditShare on Telegram

Researchers have developed and benchmarked a sequence-alignment algorithm called NW-flex that avoids reference-length bias when mapping sequencing reads to short tandem repeats (STRs), according to a computational methods and validation study published in NAR Genomics and Bioinformatics. By extending classical dynamic-programming alignment so that a designated internal block of a reference sequence can contract to any shorter contiguous substring, NW-flex evaluates all plausible repeat lengths in a single pass while preserving standard substitution and gap scoring. Across simulated human-genome benchmarks, the algorithm achieved a 100 percent correct-alignment rate on both single-repeat and compound-repeat loci, whereas the conventional aligner BWA-MEM at default settings fell to 69 percent on five-copy single-repeat expansions and 21 percent on closely spaced compound repeats. In real Illumina sequencing reads from the Genome in a Bottle sample HG002 spanning 4,520 heterozygous STR loci, NW-flex showed no preference for the reference allele, while the conventional aligner Novoalign favored the reference allele by an average of 8.8 percentage points.

Short tandem repeats, also called microsatellites, are genomic tracts made of 1 to 6 base-pair motifs repeated in tandem that collectively account for 3 percent of the human genome. Because these loci act as mutation hotspots with frequent repeat copy-number changes and common internal substitutions, they occur as pure tracts containing only motif bases, interrupted tracts carrying single-nucleotide variants (SNVs), or compound tracts composed of adjacent motifs. Although that sequence variability makes STRs valuable in forensics, population genetics, and disease studies, it creates competing alignment possibilities whenever a read differs from the reference sequence. Classical dynamic-programming methods, from Needleman-Wunsch to affine-gap Gotoh along with their local and semi-global variants, treat every sequence position equivalently, blurring the boundary between fixed flanking sequences and variable repeat tracts. Existing specialized tools address this challenge with different trade-offs. Flank-signature callers such as lobSTR and GangSTR locate short unique signatures on both sides of a locus and augment distance-based length inference with motif-aware scoring and locus-specific allele-length priors, yet polymorphisms, sequencing errors, and adjacent repeats can weaken or obscure those matches. Graph-based mappers encode repeat variation in a variation graph and align reads through path search, handling length changes naturally but requiring predefined graphs and more infrastructure than a single pass over a linear reference.

NW-flex takes a linear reference structured as fixed flanking sequences A and B surrounding an internal flexible block Z. Although real STRs both expand and contract relative to a standard reference, the authors observe that an aligner only needs contraction if Z is designed to be longer than any expected repeat allele, ensuring that every plausible allele appears as a contiguous substring of Z. A naive solution would enumerate every substring of Z, run a separate alignment for each, and pick the highest score. NW-flex achieves the exact same optimal Needleman-Wunsch/Gotoh score in one pass by extending semi-global prefix and suffix skipping to internal blocks. In a standard dynamic-programming grid, each row depends only on the row immediately above it. NW-flex designates the last row of flank A as the leader row and the first row of flank B as the closer row, then adds extra predecessor connections: every row inside Z gains the leader row as an extra predecessor, and the closer row gains both the leader row and every row inside Z. These shortcut edges let an alignment skip any prefix or suffix of Z simultaneously, and standard traceback across those jumps recovers the exact contracted substring that forms the optimal effective reference.

Checking these extra predecessors adds only a small constant-factor overhead and preserves the O(|X||Y|) time complexity of standard dynamic programming, because the additional work for a flexible block scales as O(|Z||Y|) and the block length never exceeds the reference length. While memory could in principle be reduced to O(|Y|) by keeping only the previous row, current row, leader row, and closer row, the authors’ current implementations store the full matrix to simplify traceback. For STR loci, the flexible block is built from N copies of the repeat motif, set in practice to three times the reference repeat length, while flanks A and B anchor the locus. Because identical repeat copies allow equivalent alignments at shifted positions within Z, NW-flex prevents redundant solutions by restricting exits to the closer row to the final motif-length segment of Z without sacrificing optimality. As N increases, the best alignment score is non-decreasing and eventually plateaus; within the scoring matrices, motif-length row bands stabilize across all columns once N is large enough, enabling score monitoring for early termination.

The authors released NW-flex as an open-source package on GitHub featuring two backends with a shared interface: a pure Python version written for readability and experimentation, and a compiled Cython and NumPy backend intended for performance-sensitive workloads. High-level functions expose standard Needleman-Wunsch/Gotoh alignment, single-block alignment, and STR alignment with the closer-row restriction, which can be composed into multi-block references for compound or interrupted repeats under global or semi-global boundary conditions, with local alignment left for a possible future release. Before running sequencing benchmarks, the team validated NW-flex across hand-constructed edge cases, thousands of randomized sequences, multiple scoring schemes, and STR configurations. Without a flexible block, it matched an independent Needleman-Wunsch/Gotoh baseline exactly; with a flexible block, it matched the exhaustive naive optimum in every case, with identical outputs from both backends.

To test how aligners handle haplotypes that differ from the reference, the researchers built simulated benchmarks from a clean-locus panel of the human reference genome (hg38) identified by Tandem Repeats Finder. They paired panel-derived flanks with synthetic repeat tracts across 5,420 trinucleotide loci at a reference count of 10 copies for single-repeat and flank-variant tests, and across 100 dinucleotide-trinucleotide locus pairs for compound-repeat tests, simulating 150 base-pair reads under a shared scoring scheme. Comparing default BWA-MEM, BWA-MEM with soft-clipping suppressed (-L 500), and STR-aware NW-flex on the single-repeat test, default BWA-MEM recovered the correct repeat length for 69 percent of reads at a five-copy expansion and 75 percent at a five-copy contraction, while NW-flex stayed at 100 percent across every copy-number shift. Suppressing soft-clipping raised BWA-MEM to 99 percent on five-copy expansions, but contractions remained at 88 percent because BWA-MEM’s local seed extension still chose alternative alignments that failed to recover the shortened tract.

Performance diverged even more sharply in the flank-variant and compound-repeat simulations. Adding a single-nucleotide variant at position 1 of the left flank, adjacent to the repeat boundary, dropped default BWA-MEM to 32 percent accuracy at a five-copy expansion and 24 percent at a five-copy contraction, with clipping suppression raising those rates to only 48 percent and 29 percent, though the penalty weakened when the variant lay farther from the repeat. NW-flex remained at 98 percent across all repeat differences, including reference-length haplotypes, with its 2 percent error reflecting local boundary ambiguity when a mutated flank base is absorbed into a partial repeat copy. On compound repeats separated by a 1 to 5 base-pair bridge, default BWA-MEM recovered both repeat lengths for 21 percent of reads at a 1 base-pair bridge (23 percent without clipping) and 80 percent at 5 base pairs (92 percent without clipping), whereas NW-flex reached 100 percent across every bridge length by giving each motif its own flexible block.

Empirical testing on real Illumina reads from the Genome in a Bottle sample HG002 corroborated these simulation results. Across 4,520 heterozygous STR loci from the tandem-repeat catalog of English et al., where both alleles should draw equal read support, Novoalign favored whichever allele the reference carried at every locus by an average of 8.8 percentage points, most strongly among reads with short flanking sequences. NW-flex displayed no reference preference, and rewriting the reference around those real reads reproduced both the single-repeat asymmetry and the local cost of a nearby flank variant. While the STR genotypers ExpansionHunter, HipSTR, and GangSTR were also nearly balanced on admitted reads, NW-flex accepted reads with shorter flanks than HipSTR or GangSTR and agreed with ExpansionHunter on 99 percent of mutually spanned reads at single-block disease-associated loci, while modeling compound loci such as HTT with two flexible blocks.

The authors note that NW-flex originally grew out of aligning partially bisulfite-converted reads at cytosine-rich STR loci, an assay in which half of the cytosines are randomly converted to uracil before amplification and read as thymine. Although interrupting perfect repeats preserves copy number during amplification, conversion lowers sequence complexity and introduces dense mismatches across repeats and flanks. Early flank-signature matching broke down on population data as polymorphisms erased candidate signatures. NW-flex resolved that brittle thresholding by permitting cytosine-to-thymine matches while still anchoring reads to locus flanks, degrading smoothly as signal weakens.

The study also outlines three limitations of NW-flex. First, it requires a predefined locus model identifying repeat boundaries and an idealized motif reference, which the authors build using Tandem Repeats Finder. Second, overlong flexible blocks increase compute linearly with repeat length, though the monotone score plateau suggests early termination could reduce that cost. Third, the method does not yet encode repeat-length priors or penalties, which could be added as costs on extra predecessor links. Beyond STRs, the authors suggest the extra-predecessor design could represent bounded internal variation such as optional exons in isoform-aware transcript alignment or mutually exclusive sequence alternatives.

Subject of Research: Dynamic-programming sequence alignment algorithm for short tandem repeats

Article Title: Flexible-block sequence alignment for short tandem repeats

Article References: Yu, Z., & Levy, D. (2026). Flexible-block sequence alignment for short tandem repeats. NAR Genomics and Bioinformatics, 8(4), Article lqag141. https://doi.org/10.1093/nargab/lqag141

Image Credits: AI Generated

DOI: 10.1093/nargab/lqag141

Keywords: NW-flex, short tandem repeats, microsatellites, sequence alignment, Needleman-Wunsch, Gotoh algorithm, dynamic programming, reference bias, BWA-MEM, Novoalign, HG002, compound repeats, flank variants, ExpansionHunter, Cython, bisulfite sequencing, Tandem Repeats Finder, bioinformatics

News Source: Ophelia Keating. (December 3, 2026). Flexible-block sequence alignment avoids reference bias at short tandem repeats. Scienmag.

Tags: Bioinformaticsbisulfite sequencingBWA-MEMcompound repeatsCythondynamic programmingExpansionHunterflank variantsGotoh algorithmHG002microsatellitesNeedleman-WunschNovoalignNW-flexreference biassequence alignmentshort tandem repeatsTandem Repeats Finder
Share12Tweet7Share2ShareShareShare1

Related Posts

Delayed Contrast MRI Reveals Elevated Ocular and Periocular Enhancement in Glaucoma

Delayed Contrast MRI Reveals Elevated Ocular and Periocular Enhancement in Glaucoma

December 3, 2026
Bedside lung ultrasound and MELD-Na predict ICU liver disease mortality

Bedside lung ultrasound and MELD-Na predict ICU liver disease mortality

December 3, 2026

Two Blood Indices Tied to 24-Hour Stroke Thrombolysis Response, Not Prediction

December 3, 2026

Wearable Scoliosis Traction Prototype Lengthens Spine Phantom While Tracking Force

December 3, 2026

POPULAR NEWS

  • Review Details How Timed Immune Signals Support Optic Nerve Regeneration

    Review Details How Timed Immune Signals Support Optic Nerve Regeneration

    29 shares
    Share 12 Tweet 7
  • Tunable Picosecond Ultraviolet Laser Reaches 5.3 Watts for Relativistic Ion Cooling

    29 shares
    Share 12 Tweet 7
  • Blood Protein ASC Linked to Delayed Ischemia After Brain Aneurysm Rupture

    29 shares
    Share 12 Tweet 7
  • Oveporexton Misses Primary Wakefulness Endpoint in Phase 2 Narcolepsy Type 2 Trial

    29 shares
    Share 12 Tweet 7

About

We bring you the latest biotechnology news from best research centers and universities around the world. Check our website.

Follow us

Recent News

Delayed Contrast MRI Reveals Elevated Ocular and Periocular Enhancement in Glaucoma

Review finds advanced semiconductor heterojunctions improve pharmaceutical wastewater mineralisation and detoxification

Bedside lung ultrasound and MELD-Na predict ICU liver disease mortality

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 91 other subscribers
  • Contact Us

Bioengineer.org © Copyright 2023 All Rights Reserved.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
No Result
View All Result
  • Homepages
    • Home Page 1
    • Home Page 2
  • News
  • National
  • Business
  • Health
  • Lifestyle
  • Science

Bioengineer.org © Copyright 2023 All Rights Reserved.