Papers
Topics
Authors
Recent
Search
2000 character limit reached

Colinear Chaining in Sequence Alignment

Updated 6 July 2026
  • Colinear chaining is an optimization framework that selects order-consistent fragments or anchors to serve as a one-dimensional backbone in sequence alignment.
  • It employs both dynamic programming and line-sweep algorithms, with hybrid methods offering efficient runtime and space trade-offs critical for genomic applications.
  • Modern formulations integrate gap and overlap costs, establishing a tight connection with anchored edit distance and markedly improving mapping sensitivity.

Colinear chaining is a classical optimization problem in sequence comparison and sequence alignment in which one selects an ordered subset of fragments or anchors between two sequences so that their order is consistent in both sequences and an objective is optimized. In the classical fragment-chaining formulation, compatibility requires non-overlap in both sequences; in modern overlap-aware formulations, anchors may overlap provided they satisfy a precedence relation that does not move backward in the edit graph. The problem is a standard backbone step in whole-genome comparison, cDNA/EST mapping, conserved synteny detection, alignment of genomic regions, and a main component of many state-of-the-art read mappers based on seed-chain-extend (Allali et al., 2015, Rizzo et al., 2 Jun 2026).

1. Formal problem setting

A classical formulation uses two sequences tt and uu of lengths nn and mm, together with a set S\mathcal{S} of kk fragments. A fragment is represented by five fields,

s=(s.,s.r,s.t,s.b,s.s),s = (s.\ell, s.r, s.t, s.b, s.s),

where t[s.,s.r]t[s.\ell, s.r] and u[s.b,s.t]u[s.b, s.t] are the corresponding substrings and s.ss.s is the fragment score. Geometrically, each fragment is viewed as a rectangle in the quarter plane, with uu0-coordinates in uu1, uu2-coordinates in uu3, and borders uu4 and uu5. A chain is a set of fragments uu6 such that

uu7

so fragments are ordered and non-overlapping in both sequences. The score of the chain is uu8, and the computational objective is the maximum chain score (Allali et al., 2015).

Modern formulations usually replace fragments by anchors, that is, exact matches between a query uu9 and a target nn0. One presentation uses

nn1

with

nn2

and studies chains under strict precedence, weak precedence, or a stricter “ChainX precedence” in which all start and end coordinates are strictly increasing (Rizzo et al., 13 Jun 2025). Another presentation uses 0-indexed, right-open intervals,

nn3

with startpoint nn4, endpoint nn5, and diagonal

nn6

equivalently nn7 because the anchor is an exact match (Rizzo et al., 2 Jun 2026).

These formalisms encode the same central idea: a chain is an increasing sequence of local exact correspondences that serves as a one-dimensional backbone for a global comparison. This suggests that “colinear” refers not to Euclidean colinearity, but to compatibility with a common left-to-right order in both sequences.

2. Objective functions and the anchored edit-distance connection

In the classical fragment model, the optimization target is additive reward: one maximizes the sum of fragment scores subject to compatibility. This is the formulation treated by the dynamic programming and line-sweep algorithms in the fragment-chaining literature (Allali et al., 2015).

In overlap-aware chaining for alignment, the objective is instead a minimum total connection cost. For a chain nn8, one presentation introduces sentinels

nn9

and defines

mm0

where

mm1

Here

mm2

measures the insertion/deletion-like gap between consecutive anchors, while

mm3

penalizes inconsistent overlaps (Rizzo et al., 13 Jun 2025).

A second presentation, tailored to anchored edit distance, decomposes the same phenomenon into gap and diagonal terms. For anchors mm4,

mm5

mm6

and

mm7

The connection cost is then

mm8

equivalently

mm9

This formulation distinguishes true inter-anchor gaps from overlap configurations, in which cost is driven by diagonal mismatch rather than by a simple spatial separation (Rizzo et al., 2 Jun 2026).

The key theoretical link is that optimal overlap-aware colinear chaining is not merely heuristic. The 2025 paper restates the result of Jain et al. that

S\mathcal{S}0

and adds that if the anchors are all maximal exact matches, then the optimal chaining cost is exactly the ordinary unit-cost edit distance between the two strings (Rizzo et al., 13 Jun 2025). The 2026 paper formulates the same point for global and semi-global variants: the minimum-cost chain under the S\mathcal{S}1/S\mathcal{S}2 model equals anchored edit distance, and the semi-global analogue equals semi-global anchored edit distance (Rizzo et al., 2 Jun 2026).

A frequent misconception is that colinear chaining is intrinsically a non-overlap problem. The overlap-aware literature shows otherwise: allowing overlaps is essential in current chaining formulations, and in long-read mapping overlaps improve sensitivity and avoid restrictions on the fragment class considered (Rizzo et al., 2 Jun 2026).

3. Classical algorithmic foundations

The standard dynamic programming formulation for fragment chaining defines

S\mathcal{S}3

together with a fragment-local state

S\mathcal{S}4

When the begin border S\mathcal{S}5 of a fragment is reached,

S\mathcal{S}6

where S\mathcal{S}7 is the best score strictly before the fragment in both dimensions. When the end border S\mathcal{S}8 is reached, the algorithm updates

S\mathcal{S}9

and the current column by

kk0

The worst-case running time is kk1 (Allali et al., 2015).

The line-sweep alternative is asymptotically better on sparse instances. It processes fragment borders in increasing order along sequence kk2 and maintains a data structure kk3 storing pairs kk4, where kk5 is the best chaining score among partial chains in the rectangle from kk6 to kk7, and the chain ends at a fragment whose top border is exactly kk8. At a begin event for fragment kk9,

s=(s.,s.r,s.t,s.b,s.s),s = (s.\ell, s.r, s.t, s.b, s.s),0

where s=(s.,s.r,s.t,s.b,s.s),s = (s.\ell, s.r, s.t, s.b, s.s),1 is the best score in s=(s.,s.r,s.t,s.b,s.s),s = (s.\ell, s.r, s.t, s.b, s.s),2 with s=(s.,s.r,s.t,s.b,s.s),s = (s.\ell, s.r, s.t, s.b, s.s),3. At the end event, if s=(s.,s.r,s.t,s.b,s.s),s = (s.\ell, s.r, s.t, s.b, s.s),4 improves the frontier, one inserts s=(s.,s.r,s.t,s.b,s.s),s = (s.\ell, s.r, s.t, s.b, s.s),5 and deletes dominated entries. With a balanced-tree-like structure supporting search, insertion, and deletions in logarithmic time, this yields s=(s.,s.r,s.t,s.b,s.s),s = (s.\ell, s.r, s.t, s.b, s.s),6 time (Allali et al., 2015).

The hybrid dynamic programming/line-sweep algorithm combines both principles. It first reduces the input to a compact instance s=(s.,s.r,s.t,s.b,s.s),s = (s.\ell, s.r, s.t, s.b, s.s),7, in which every position of s=(s.,s.r,s.t,s.b,s.s),s = (s.\ell, s.r, s.t, s.b, s.s),8 and every position of s=(s.,s.r,s.t,s.b,s.s),s = (s.\ell, s.r, s.t, s.b, s.s),9 contains at least one fragment border. This reduction preserves the chaining problem and can be computed in

t[s.,s.r]t[s.\ell, s.r]0

time and

t[s.,s.r]t[s.\ell, s.r]1

space. The decision to use dynamic programming or line sweep is then made per column using the border density

t[s.,s.r]t[s.\ell, s.r]2

Positions with

t[s.,s.r]t[s.\ell, s.r]3

belong to a dense set t[s.,s.r]t[s.\ell, s.r]4, and the remainder to a sparse set t[s.,s.r]t[s.\ell, s.r]5. The data structure t[s.,s.r]t[s.\ell, s.r]6 consists of an array t[s.,s.r]t[s.\ell, s.r]7 of size t[s.,s.r]t[s.\ell, s.r]8, augmented with a balanced binary tree t[s.,s.r]t[s.\ell, s.r]9, and supports u[s.b,s.t]u[s.b, s.t]0 and u[s.b,s.t]u[s.b, s.t]1 in u[s.b,s.t]u[s.b, s.t]2 time. The resulting running time is

u[s.b,s.t]u[s.b, s.t]3

with space u[s.b,s.t]u[s.b, s.t]4. The paper argues that this hybrid is asymptotically never worse than either pure dynamic programming or pure line sweep (Allali et al., 2015).

4. Practical optimal chaining in modern aligners

Jain et al. gave an exact overlap-aware algorithm running in

u[s.b,s.t]u[s.b, s.t]5

time for colinear chaining with overlap and gap costs, and proposed a practical implementation, u[s.b,s.t]u[s.b, s.t]6, intended to run in

u[s.b,s.t]u[s.b, s.t]7

average-case time, where u[s.b,s.t]u[s.b, s.t]8 is the cost of the output chain. The practical idea is to guess an upper bound u[s.b,s.t]u[s.b, s.t]9 on the optimal cost and only consider predecessor anchors that are close enough to the current anchor under a sparse and uniform anchor model (Rizzo et al., 13 Jun 2025).

The 2025 revisit shows that s.ss.s0 is not guaranteed to be optimal. Its pruning rule requires only

s.ss.s1

and this does not ensure that every pair with s.ss.s2 is considered. The paper exhibits a counterexample with anchors s.ss.s3, where the optimal chain is s.ss.s4 with cost s.ss.s5, but s.ss.s6 with s.ss.s7 skips that transition and instead considers suboptimal chains of cost s.ss.s8. A modified condition such as

s.ss.s9

still fails because it misses overlapping-anchor cases (Rizzo et al., 13 Jun 2025).

The proposed correction introduces the anchor diagonal

uu00

Its central lemma states that if two anchors are in a gap-gap configuration, then

uu01

whereas in all other overlap cases,

uu02

This yields a revised recurrence

uu03

where uu04 handles non-overlapping predecessors in uu05 and uu06 scans only diagonals within distance uu07 of uu08. The implementation uses sorting by positions in uu09, bucketing by diagonal, and an active-anchor array uu10. It assumes, after preprocessing by merging perfect chains, that if two anchors have the same diagonal, then they do not overlap in uu11 or in uu12; this preprocessing can be done in

uu13

time (Rizzo et al., 13 Jun 2025).

The resulting algorithm is optimal and runs in

uu14

average-case time, where uu15 is the optimal chaining cost. Empirically, the paper reports minimal computational slowdown relative to uu16. On a real long-read dataset consisting of the T2T-CHM13 reference and 100k PacBio HiFi reads, uu17 took about uu18 seconds, uu19-optuu20 took about uu21 seconds, memory usage was about uu22 GB for both, the average number of iterations was reduced from uu23 to uu24, and uu25-optuu26 improved the chaining cost for

uu27

of the reads, with an average improvement ratio of uu28 on those improved cases (Rizzo et al., 13 Jun 2025). This directly refutes the assumption that practical pruning is automatically harmless on realistic data.

5. Near-linear and sublogarithmic-time developments

The 2026 work revisits a different algorithmic lineage, beginning with the uu29 algorithms of Eppstein et al. for fragment chaining without overlaps. Those classical methods minimized a gap cost based on diagonal distance between consecutive fragments, but they forbade fragment overlaps. The paper argues that overlaps are essential in current chaining formulations because, in long-read mapping, overlaps improve sensitivity and avoid restrictions on the fragment class considered (Rizzo et al., 2 Jun 2026).

Its main result is an asymptotic improvement for the overlap-aware anchored edit-distance model: the earlier

uu30

exact algorithm is reduced to

uu31

time in

uu32

space. The method combines the gap-cost computation of Chao and Miller with the overlap-cost computation of Baker and Giancarlo. The dynamic program is

uu33

and the recurrence is partitioned into four mutually exclusive cases:

  1. overlap, bigger uu34-overlap;
  2. overlap, bigger uu35-overlap;
  3. gap-gap, bigger uu36-gap;
  4. gap-gap, bigger uu37-gap (Rizzo et al., 2 Jun 2026).

The difficult case is the fourth, handled by adapting the Eppstein et al. space-partitioning idea. Each anchor defines a triangular region of influence, and the best predecessor for a point on the sweep line is stored in an owner array uu38. The owner array is compressed as a doubly linked list of dividing lines, consisting of horizontal lines and diagonal lines; changes in ownership occur only at those lines, the total number of lines is uu39, and delayed intersection updates preserve uu40 space and uu41 time (Rizzo et al., 2 Jun 2026).

The same paper also presents a simpler uu42-time implementation, llchain, which replaces specialized uu43-time predecessor structures with a standard ordered map. Despite the weaker asymptotic bound, llchain is reported to scale competitively to millions of fragments and large genomes: on average it is uu44 faster than other methods on instances with uu45 anchors, over uu46 faster on MEMs between HiFi reads and a reference human genome, and about uu47 faster overall on the tested dataset. Reported average timings are seeding uu48s, ChainX uu49s, ChainX-opt uu50s, and llchain uu51s (Rizzo et al., 2 Jun 2026). A plausible implication is that older chaining machinery, once adapted to overlap-aware cost models, remains highly competitive for modern genomics workloads.

Outside sequence alignment, the word “chaining” denotes distinct technical constructions. In high-dimensional probability and Banach-space geometry, "Chaining, Interpolation, and Convexity" develops an interpolation-based chaining principle in which multiscale approximation is generated by Peetre’s uu52-functional rather than by Talagrand’s adaptive net construction. For a penalty uu53 and metric uu54,

uu55

with minimizer uu56, and uu57. Proposition 2.3 states that for every uu58,

uu59

For symmetric compact convex uu60, the thin subsets

uu61

replace entropy numbers of the whole set by entropy numbers of smaller subsets. The paper does not use the term “colinear chaining,” but it explicitly describes the mechanism as chaining along a structured one-parameter family uu62 produced by interpolation (Handel, 2015).

In discrete geometry, "Chains, Koch Chains, and Point Sets with many Triangulations" defines a chain as an uu63-ordered sequence of points

uu64

such that every consecutive segment uu65 is unavoidable in every triangulation. The visibility triangle

uu66

fully determines the order type of the chain. The paper proves a unique algebra of convex sums, concave sums, and flips; derives a quadratic-time dynamic program for the number of triangulations; and uses recursively defined Koch chains to obtain

uu67

triangulations, improving the previous lower bound uu68 (Rutschmann et al., 2022). The authors explicitly note that this notion of chain is analogous to ordering constraints in colinear chaining problems, but it is a different subject.

Taken together, these works delimit the technical scope of colinear chaining. In sequence algorithms, it is the optimization of an order-consistent backbone of fragments or anchors, with modern formulations tightly linked to anchored edit distance. In other areas, “chaining” refers either to multiscale approximation generated by interpolation or to combinatorial structures defined by unavoidable edges. The shared theme is a constrained, scale- or order-respecting decomposition, but the objects, objectives, and algorithms are domain-specific.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Colinear Chaining.