Skip to main content
QUICK REVIEW

[Paper Review] Suffix Sorting via Matching Statistics

Zsuzsanna Lipták, Francesco Masillo|arXiv (Cornell University)|Jan 1, 2022
Algorithms and Data CompressionComputer Science1 citations
TL;DR

This paper presents a novel suffix sorting algorithm for highly similar string collections, such as pangenomes, using a compressed representation of matching statistics to accelerate suffix array construction. By leveraging matching statistics to efficiently compare and order suffixes, the method achieves competitive or superior performance compared to state-of-the-art tools, especially on repetitive biological data like SARS-CoV-2 and human chromosome 19 sequences.

ABSTRACT

We introduce a new algorithm for constructing the generalized suffix array of a collection of highly similar strings. As a first step, we construct a compressed representation of the matching statistics of the collection with respect to a reference string. We then use this data structure to distribute suffixes into a partial order, and subsequently to speed up suffix comparisons to complete the generalized suffix array. Our experimental evidence with a prototype implementation (a tool we call sacamats) shows that on string collections with highly similar strings we can construct the suffix array in time competitive with or faster than the fastest available methods. Along the way, we describe a heuristic for fast computation of the matching statistics of two strings, which may be of independent interest.

Motivation & Objective

  • Address the computational bottleneck of suffix array construction in pangenomic and repetitive string collections.
  • Develop an efficient algorithm tailored for collections of highly similar genomes, where traditional methods are slow.
  • Introduce a compressed representation of matching statistics to reduce memory access and speed up suffix comparisons.
  • Enable fast, practical construction of generalized suffix arrays (GSA) with minimal working set size.
  • Provide a heuristic for fast matching statistics computation that is independently useful for bioinformatics applications.

Proposed method

  • Construct a compressed matching statistics (CMS) data structure that captures the longest common prefix between each suffix in the collection and a reference genome.
  • Use the CMS to determine the lexicographic order of any two suffixes without full string comparison, by comparing their matching factors and mismatch characters.
  • Apply a partial order based on the CMS to guide a suffix sorting algorithm that minimizes expensive string comparisons.
  • Implement a two-phase approach: first, build the CMS and augmented reference structure; second, use the CMS to drive the suffix sorting process via induced sorting and bucketing.
  • Optimize memory access by focusing on the working set of active data, particularly the i-heads and matching factor information.
  • Integrate a heuristic for fast matching statistics computation, which is reused in the CMS construction and improves overall performance.

Experimental results

Research questions

  • RQ1Can a compressed representation of matching statistics be used to efficiently compare and order suffixes in highly repetitive string collections?
  • RQ2How does the performance of the proposed suffix sorting algorithm compare to state-of-the-art tools like bigBWT, divsufsort, and sais on repetitive biological data?
  • RQ3To what extent does the CMS data structure reduce the working set and improve memory locality during suffix sorting?
  • RQ4Can the matching statistics computation heuristic be made practical and efficient enough to serve as a standalone tool in bioinformatics?
  • RQ5What is the impact of the CMS size and structure on the scalability and competitiveness of the algorithm in large-scale genomic workloads?

Key findings

  • The proposed tool, sacamats, is faster than gsufsort by a factor of more than three on 1GB of human chromosome 19 data and 37% faster than divsufsort on SARS-CoV-2 data.
  • On the same 1GB human chromosome 19 dataset, sacamats is 20% faster than sais and 12% faster than bigBWT, and only 5% slower than the fastest tool.
  • For SARS-CoV-2 data, sacamats is 30% slower than bigBWT but still outperforms all other tools except bigBWT in terms of speed.
  • The first phase of the algorithm—augmenting the reference and building data structures—accounts for a significant portion of the runtime, suggesting potential for precomputation to reduce latency.
  • Memory usage is highest for sacamats (8 bytes per input symbol), but the actual working set is small and proportional to the number of i-heads, indicating potential for semi-external memory optimization.
  • Parallelization via thread assignment to S*-suffix buckets reduces runtime from 122 to 89 seconds on the 1GB SARS-CoV-2 dataset, demonstrating strong potential for further speedups through parallelism.

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.