BIKE: A Binary $K$-mer Exact Counter with Alphabet-Independent Memory and Deterministic Parallelism.
Fabio F de Oliveira, Marcelo A C Fernandes
Key points
From the paper's conclusion- We propose BIKE (Binary K-mer Exact Counter), a novel exact k-mer counting algorithm whose memory footprint depends exclusively on the input sequence length $n$, independently of the alphabet size m or the $k$-mer length $k$.
Abstract
K-mer counting is a fundamental computational task in bioinformatics, underpinning genome assembly, metagenomic classification, error correction, and similarity analysis. Existing exact-counting methods rely on hash tables or static allocation strategies whose memory requirements grow exponentially with the alphabet size and substring length, rendering them impractical for amino acid sequences at moderate-to-large values of $k$. We propose BIKE (Binary K-mer Exact Counter), a novel exact k-mer counting algorithm whose memory footprint depends exclusively on the input sequence length $n$, independently of the alphabet size m or the $k$-mer length $k$. BIKE decomposes the counting problem into $n-1$ mutually independent pivot-based comparison blocks operating entirely on binary matrices, requiring only one bit per entry, and employs a union-find aggregation mechanism that guarantees exact counts for $k$-mers of arbitrary multiplicity. This structural regularity yields a fully deterministic degree of parallelism, enabling closed-form analytical models that provide accurate execution-time predictions under ideal parallel execution assumptions. Experimental results on real biological sequences confirm functional correctness and demonstrate memory reductions of up to three orders of magnitude over classical exact methods for amino acid alphabets. Analytical performance projections, derived from the closed-form parallel model, indicate that an FPGA realisation of BIKE would be expected to outperform CPU-based dynamic allocation at moderate sequence lengths; however, these remain theoretical estimates pending hardware implementation. BIKE is therefore presented as a theoretical and data-structural contribution, establishing a new algorithmic foundation for alphabet-independent, exactly-counted, and deterministically parallel $k$-mer analysis.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- To sort or to hash? Revisiting k-mer countingbioRxiv · 2026
- Binary search and set operations on compacted k-mer listsbioRxiv · 2026
- kache-hash: A dynamic, concurrent, and cache-efficient hash table for streaming k-mer operationsbioRxiv · 2026
- Batch, Prefetch, Skip, Orient, Squeeze: Faster, Smaller k-mer dictionaries via the Spectral Burrows-Wheeler transformbioRxiv · 2026
- Breaking the Binary-Lifting Barrier for DNA Minimizer Density: Exact Optimization of a Native 4-ary Order at (w, k) = (12, 5)arXiv · 2026
- Super Bloom: Fast and Precise Filter for Streaming k-Mer Queries.Journal of computational biology : a journal of computational molecular cell biology · 2026