Skip to main content
QUICK REVIEW

[Paper Review] Computing MEMs on Repetitive Text Collections

Tatarnikov, Igor, Farahani, Ardavan Shahrabi|arXiv (Cornell University)|Feb 10, 2022
Algorithms and Data CompressionComputer Science1 citations
TL;DR

This paper extends the MONI index for highly repetitive text collections to efficiently compute k-Maximal Exact Matches (k-MEMs) — maximal substrings of a pattern P that occur at least k times in text T. By adding O(r log n) bits to MONI, the method supports k-MEM queries in O(km log n) time; if k is known at construction, this improves to O(m log n) per query, enabling fast, online detection of biologically significant substrings in genomic data.

ABSTRACT

Suppose we are asked to index a text $T [0..n - 1]$ such that, given a pattern $P [0..m - 1]$, we can quickly report the maximal substrings of $P$ that each occur in $T$ at least $k$ times. We first show how we can add $O (r \log n)$ bits to Rossi et al.'s recent MONI index, where $r$ is the number of runs in the Burrows-Wheeler Transform of $T$, such that it supports such queries in $O (k m \log n)$ time. We then show how, if we are given $k$ at construction time, we can reduce the query time to $O (m \log n)$.

Motivation & Objective

  • To enable efficient computation of k-MEMs — maximal substrings of a pattern P that occur at least k times in a repetitive text T — for applications in genomics.
  • To extend the MONI index, which is optimized for repetitive collections, with minimal space overhead to support k-MEM queries.
  • To reduce query time from O(km log n) to O(m log n) when k is known in advance, improving efficiency for repeated queries.
  • To support online querying using LCE or random access, making the method practical for large-scale genomic pipelines.

Proposed method

  • Augment the MONI index with O(r log n) bits to support k-MEM queries, leveraging φ and φ⁻¹ queries and LCP array access.
  • Extend φ queries to enable sequential access to the LCP array, enabling efficient detection of maximal matches.
  • Use LCP array values and LF/FL mappings to identify and validate k-MEMs during pattern traversal.
  • Precompute values during construction when k is known in advance, reducing query time to O(m log n) per character.
  • Leverage prefix-free parsing and balanced straight-line programs to support O(log n) time LCE queries, enabling online processing.
  • Store precomputed tables for k-MEM detection in external memory, allowing reuse across different k values without rebuilding core structures.

Experimental results

Research questions

  • RQ1Can the MONI index be extended to support k-MEM queries in repetitive text collections with low space overhead?
  • RQ2What is the query time complexity of k-MEM computation using the extended MONI index?
  • RQ3Can the query time be reduced to O(m log n) when k is known at construction time?
  • RQ4How can LCP array access be efficiently integrated into the φ query framework for k-MEM detection?
  • RQ5Can the method support online pattern processing using LCE queries with O(log n) time per query?

Key findings

  • The method adds O(r log n) bits to the MONI index to support k-MEM queries in O(km log n) time, where r is the number of BWT runs and m is the pattern length.
  • When k is known at construction time, the query time is reduced to O(m log n), achieving a significant improvement for repeated queries.
  • The approach supports online pattern processing using LCE queries, which can be answered in O(log n) time with a balanced straight-line program.
  • The method enables efficient detection of substrings common in one genomic database but rare in another, useful for identifying disease-associated variants.
  • Precomputed tables for different k values can be stored externally and reused, allowing flexible and efficient reindexing for multiple k values.
  • The extension of φ queries to support sequential LCP access is a novel component that may be useful beyond k-MEM computation.

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.