English

Practical colinear chaining on sequences revisited

Data Structures and Algorithms 2025-07-03 v3

Abstract

Colinear chaining is a classical heuristic for sequence alignment and is widely used in modern practical aligners. Jain et al. (J. Comput. Biol. 2022) proposed an O(nlog3n)O(n \log^3 n) time algorithm to chain a set of nn anchors so that the chaining cost matches the edit distance of the input sequences, when anchors are all the maximal exact matches. Moreover, assuming a uniform and sparse distribution of anchors, they provided a practical solution (ChainX\mathtt{ChainX}) working in O(nSOL+nlogn)O(n \cdot \mathrm{SOL} + n \log n) average-case time, where SOL\mathrm{SOL} is the cost of the output chain. This practical solution is not guaranteed to be optimal: we study the failing cases, introduce the anchor diagonal distance, and find and implement an optimal algorithm working in O(nOPT+nlogn)O(n \cdot \mathrm{OPT} + n \log n) average-case time, where OPT\mathrm{OPT} SOL\le \mathrm{SOL} is the optimal chaining cost. We validate the results by Jain et al., show that ChainX\mathtt{ChainX} can be suboptimal with a realistic long read dataset, and show minimal computational slowdown for our solution.

Keywords

Cite

@article{arxiv.2506.11750,
  title  = {Practical colinear chaining on sequences revisited},
  author = {Nicola Rizzo and Manuel Cáceres and Veli Mäkinen},
  journal= {arXiv preprint arXiv:2506.11750},
  year   = {2025}
}

Comments

16 pages, 4 figures, 2 tables, 1 algorithm. To appear in ISBRA2025 (minus the appendix and Table 2)

R2 v1 2026-07-01T03:15:46.081Z