Skip to main content
QUICK REVIEW

[Paper Review] Optimum Search Schemes for Approximate String Matching Using Bidirectional FM-Index

Kiavash Kianfar, Christopher Pockrandt|arXiv (Cornell University)|Nov 6, 2017
Algorithms and Data CompressionComputer Science5 citations
TL;DR

This paper introduces a mixed integer programming (MIP) framework to compute optimal search schemes for approximate string matching in bidirectional FM-indexes, significantly accelerating Hamming-distance-based read mapping. The method reduces search time by up to 35× compared to standard backtracking and achieves performance comparable to top aligners by combining index-based search with dynamic programming verification.

ABSTRACT

Finding approximate occurrences of a pattern in a text using a full-text index is a central problem in bioinformatics and has been extensively researched. Bidirectional indices have opened new possibilities in this regard allowing the search to start from anywhere within the pattern and extend in both directions. In particular, use of search schemes (partitioning the pattern and searching the pieces in certain orders with given bounds on errors) can yield significant speed-ups. However, finding optimal search schemes is a difficult combinatorial optimization problem. Here for the first time, we propose a mixed integer program (MIP) capable to solve this optimization problem for Hamming distance with given number of pieces. Our experiments show that the optimal search schemes found by our MIP significantly improve the performance of search in bidirectional FM-index upon previous ad-hoc solutions. For example, approximate matching of 101-bp Illumina reads (with two errors) becomes 35 times faster than standard backtracking. Moreover, despite being performed purely in the index, the running time of search using our optimal schemes (for up to two errors) is comparable to the best state-of-the-art aligners, which benefit from combining search in index with in-text verification using dynamic programming. As a result, we anticipate a full-fledged aligner that employs an intelligent combination of search in the bidirectional FM-index using our optimal search schemes and in-text verification using dynamic programming outperforms today's best aligners. The development of such an aligner, called FAMOUS (Fast Approximate string Matching using OptimUm search Schemes), is ongoing as our future work.

Motivation & Objective

  • Address the lack of systematic optimization in search schemes for bidirectional FM-indexes used in approximate string matching.
  • Formulate the optimal search scheme problem for Hamming distance as a mixed integer program (MIP) to achieve provably optimal or near-optimal solutions.
  • Enable faster approximate string matching in bioinformatics by minimizing backtracking through intelligent partitioning and ordering of read segments.
  • Demonstrate that optimal schemes from MIP outperform ad-hoc or heuristic approaches in both theoretical complexity and practical running time.
  • Lay the foundation for a next-generation aligner, FAMOUS, that combines optimal index search with in-text dynamic programming verification.

Proposed method

  • Formulate the search scheme optimization problem as a mixed integer program (MIP), where variables encode piece permutations, search orders, and error distributions.
  • Enforce the connectivity condition in bidirectional FM-indexes by constraining permutations to allow contiguous expansion from any starting piece.
  • Use a MIP solver to find optimal or near-optimal search schemes that cover all possible mismatch patterns exactly once, minimizing redundant computation.
  • Optimize for equal-sized partitions of the read into P pieces, with S searches per scheme, and K total allowed mismatches.
  • Leverage the MIP’s early convergence to obtain high-quality solutions quickly, even for large input sizes, by solving on smaller R values as proxies.
  • Validate the MIP’s effectiveness by comparing search performance (in terms of trie edges and runtime) on real Illumina reads against standard backtracking and state-of-the-art aligners.

Experimental results

Research questions

  • RQ1Can a mixed integer program be formulated to solve the optimal search scheme problem for approximate string matching under Hamming distance with provable optimality?
  • RQ2How does the solution quality and convergence speed of the MIP scale with increasing values of K, R, P, and S, especially for large biological reads?
  • RQ3To what extent is the optimal search scheme insensitive to the read length R, and can this property be theoretically justified?
  • RQ4Can the MIP formulation be extended to optimize over variable numbers of pieces, unequal piece lengths, or unbounded search counts?
  • RQ5How effective are MIP-derived search schemes for edit distance, given they were designed for Hamming distance?

Key findings

  • The proposed MIP formulation successfully computes optimal or near-optimal search schemes for Hamming distance in a reasonable time, even for large input parameters.
  • Approximate string matching using the optimal schemes is up to 35× faster than standard backtracking for 101-bp Illumina reads with two errors.
  • For K=1 and K=2, search performance in the bidirectional FM-index using optimal schemes matches the running time of top-tier aligners that combine index search with in-text dynamic programming verification.
  • The MIP-generated schemes perform well not only for Hamming distance but also show strong performance for edit distance, suggesting transferability across error models.
  • The MIP exhibits strong early convergence, with high-quality solutions found quickly, enabling practical use even for large-scale problems by solving on smaller R values as proxies.
  • The results suggest that a full-fledged aligner combining optimal index search (via MIP) with in-text verification (via dynamic programming) could outperform today’s best aligners, as envisioned in the ongoing FAMOUS project.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.