Abstract: The single-thread version of TahcoRoll is as efficient as the eight-thread version of the state-of-the-art, JellyFish, while the eight-thread TahcoRoll outperforms the eight-thread JellyFish by at least four times.
Introduction
Genomic signature profiling—specifically counting occurrences of short DNA sequences ($k$-mers)—is fundamental to tasks like genome assembly and RNA-Seq quantification. However, as sequencing technology shifts toward longer reads and more complex biological signals, traditional fixed-length $k$-mer counters face significant scalability issues. Searching for millions of variable-length patterns in massive datasets is computationally expensive, primarily due to the enormous memory requirements of standard multi-pattern matching algorithms like Aho-Corasick (AC). For instance, a standard implementation might require over 240 GB of RAM for 24 million signatures, exceeding the capacity of most standard desktop computers.
Methodology
TahcoRoll introduces a "thinned automaton" combined with rolling hash verification to profile millions of variable-length genomic signatures simultaneously. It optimizes the Aho-Corasick algorithm through two key engineering innovations:
- Thinned Automaton (Binarization): Standard DNA encoding uses 2 bits per nucleotide (A, C, G, T). TahcoRoll "thins" the trie by grouping nucleotides into two clusters (A/G and C/T) and representing them with just 1 bit. This significantly reduces the memory footprint of the trie structure.
- Rolling Hash Verification: Because binarization is lossy, different $k$-mers may collide in their 1-bit representation. TahcoRoll resolves these collisions using the Rabin-Karp rolling hash technique. As the algorithm traverses the thinned trie, it maintains a hash of the current read segment, allowing for constant-time verification of potential matches without slow string comparisons.
Results and Performance
TahcoRoll was evaluated against established tools like JellyFish, KMC3, and MSBWT using both synthetic and real-world sequencing data from Illumina, PacBio, and Oxford Nanopore platforms.
Key findings include:
- Speed: In 8-thread configurations, TahcoRoll was at least 4x faster than JellyFish.
- Efficiency: The single-threaded version matched the performance of the 8-threaded JellyFish implementation.
- Memory Usage: The thinned automaton reduced memory requirements to nearly half of standard AC implementations.
- Robustness: Unlike some disk-based counters that failed on long-read data due to buffer limitations, TahcoRoll successfully processed PacBio and Nanopore reads.
Conclusion
TahcoRoll demonstrates that lossy compression, when paired with efficient verification, can dramatically improve the accessibility of complex genomic profiling. By decoupling memory usage from read length, it is uniquely suited for the modern era of long-read sequencing. Future developments may include storing explicit signature positions and extending the binarization strategy to protein sequences.
Summary updated