Hyper-k-mers: efficient streaming k-mers representation
Igor MartayaniD, Lucas RobidouiD, Yoshihiro ShibuyaiD, Antoine LimassetiD
Abstract
K-mers have become ubiquitous in modern bioinformatics pipelines. A key factor in their success is the ability to filter out erroneous k-mers by removing those with low abundances. However, large numbers of distinct k-mers make counting a memory-intensive step. Early tools addressed this issue by storing k-mers on disk. More recent solutions mitigate the excessive redundancy of overlapping k-mers by partially reassembling them into super-k-mers. Nevertheless, consecutive super-k-mers still overlap by k - 1 bases, leading to some degree of inefficiency. Here we present hyper-k-mers as an alternative, less redundant, representation of super-k-mers. Our contributions are three-fold. First, we propose hyper-k-mers, a new k-mer representation that asymptotically decreases duplication compared to super-k-mers. Second, we present a theoretical analysis comparing the space efficiency of super-k-mers, syncmers, and hyper-k-mers. Our approach offers significant advantages compared to super-k-mers, by reducing the asymptotic lower bound from 6 to 4 bits per nucleotide. Third, we present KFC, a k-mer counting algorithm leveraging hyper-k-mers. KFC offers significant practical advantages, including an order of magnitude improvement in memory usage compared to state-of-the-art tools. Notably, our experiments show that KFC is the only tool whose memory usage scales sub-linearly with k-mer size k, and is the fastest option when k is large. AvailabilityKFC is available at https://github.com/lrobidou/KFC with tests available at https://github.com/imartayan/KFC_experiments.
02 /Specification & Classification
Click any tag to browse matching papers- Citations
- 3
- Research Focus
- Approach
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Binary search and set operations on compacted k-mer lists
Yoann Dufresne, Francesco Andreace·bioRxiv·Aug 21, 2026
- Masked superstrings as a unified framework for textual ????-mer set representations
Ondřej Sladký, Pavel Veselý, Karel Břinda·bioRxiv·Feb 1, 2023
- Towards Efficient k-Mer Set Operations via Function-Assigned Masked Superstrings
Ondřej Sladký, Pavel Veselý, Karel Břinda·bioRxiv·Mar 6, 2024
- CMash: fast, multi-resolution estimation of k-mer-based Jaccard and containment indices
Shaopeng Liu, David Koslicki·BioinformaticsPeer-reviewed·Apr 14, 2022
- Squeakr: An Exact and Approximate k-mer Counting System
Prashant Pandey, Michael A. Bender, … Rob Patro·BioinformaticsPeer-reviewed·Oct 6, 2017
- Sparse and Skew Hashing of K-Mers
Giulio Ermanno Pibiri·BioinformaticsPeer-reviewed·Apr 14, 2022