Genome ResearchBioinformaticsPeer-reviewed journal article
Memory-bound k-mer selection for large evolutionary diverse reference libraries
Abstract
Using k-mers to find sequence matches is increasingly used in many bioinformatic applications, including metagenomic sequence classification. The accuracy of these down-stream applications relies on the density of the reference databases, which, luckily, are rapidly growing. While the increased density provides hope for dramatic improvements in accuracy, scalability is a concern. Reference k-mers are kept in the memory during the query time, and saving all k-mers of these ever-expanding databases is fast becoming impractical. Several strategies for subsampling have been proposed, including minimizers and finding taxon-specific k-mers. However, we contend that these strategies are inadequate, especially when reference sets are taxonomically imbalanced, as are most microbial libraries. In this paper, we explore approaches for selecting a fixed-size subset of k-mers present in an ultra-large dataset to include in a library such that the classification of reads suffers the least. Our experiments demonstrate the limitations of existing approaches, especially for novel and poorly sampled groups. We propose a library construction algorithm called KRANK (K-mer RANKer) that combines several components, including a hierarchical selection strategy with adaptive size restrictions and an equitable coverage strategy. We implement KRANK in highly optimized code and combine it with the locality-sensitive-hashing classifier CONSULT-II to build a taxonomic classification and profiling method. On several benchmarks, KRANK k-mer selection dramatically reduces memory consumption with minimal loss in classification accuracy. We show in extensive analyses based on CAMI benchmarks that KRANK outperforms k-mer-based alternatives in terms of taxonomic profiling and comes close to the best marker-based methods in terms of accuracy.
- assay: metagenomics
- research focus: benchmarking
- research focus: database / resource
- research focus: sequence-to-function modeling
- approach: statistical model
- Citations
- 3
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
- Improving Metagenomic Classification using Discriminative k-mers from Sequencing Data
Davide Storato, Matteo Comin·Lecture notes in computer sciencePeer-reviewed·Jan 1, 2020
- Constrained enumeration of k-mers from a collection of references with metadata
Florian Ingels, Igor Martayan, … Camille Marchet·bioRxiv·May 26, 2024
- Metagenomic classification with KrakenUniq on low-memory computers
Christopher Pockrandt, Aleksey V. Zimin, Steven L. Salzberg·The Journal of Open Source SoftwarePeer-reviewed·Dec 28, 2022
- raxtax: A k-mer-based non-Bayesian Taxonomic Classifier
Noah A Wahl, Georgios Koutsovoulos, … Alexandros Stamatakis·BioinformaticsPeer-reviewed·Nov 17, 2025
- RefSeq database growth influences the accuracy of k-mer-based species identification
Daniel J. Nasko, Sergey Koren, … Todd J. Treangen·Genome biologyPeer-reviewed·Oct 17, 2018
- Precise and scalable metagenomic profiling with sample-tailored minimizer libraries
Johan Nyström-Persson, Nishad Bapatdhar, Samik Ghosh·NAR Genomics and BioinformaticsPeer-reviewed·Mar 29, 2025