Construction of distinct k-mer color sets via set fingerprinting
Abstract
The colored de Bruijn graph model is the currently dominant paradigm for indexing large microbial reference genome datasets. In this model, each reference genome is assigned a unique color, typically an integer id, and each k-mer is associated with a color set, which is the set of colors of the reference genomes that contain that k-mer. This data structure efficiently supports a variety of pseudoalignment algorithms, which aim to determine the set of genomes most compatible with a query sequence. In most applications, many distinct k-mers are associated with the same color set. In current indexing algorithms, color sets are typically deduplicated and compressed only at the end of index construction. As a result, the peak memory usage can greatly exceed the size of the final data structure, making index construction a bottleneck in analysis pipelines. In this work, we present a Monte Carlo algorithm that constructs the set of distinct color sets for the k-mers directly in any individually compressed form. The method performs on-the-fly deduplication via incremental fingerprinting. We provide a strong bound on the error probability of the algorithm, even if the input is chosen adversarially, assuming that a source of random bits is available at run time. We show that given an SBWT index of 65,536 S. enterica genomes, we can enumerate and compress the distinct color sets of the genomes to 40 GiB on disk in 7 hours and 17 minutes, using only 14 GiB of RAM and no temporary disk space, with an error probability of at most 2-82.
02 /Specification & Classification
Click any tag to browse matching papers- Citations
- 0
- Organism
- Assay
- 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
- Compression algorithm for colored de Bruijn graphs
Amatur Rahman, Yoann Dufresne, Paul Medvedev·bioRxiv·May 12, 2023
- Where the patterns are: repetition-aware compression for colored de Bruijn graphs
Alessio Campanelli, Giulio Ermanno Pibiri, … Rob Patro·Journal of Computational BiologyPeer-reviewed·Oct 1, 2024
- A space and time-efficient index for the compacted colored de Bruijn graph
Fatemeh Almodaresi, Hirak Sarkar, … Rob Patro·BioinformaticsPeer-reviewed·Apr 16, 2018
- Fulgor: A fast and compact k-mer index for large-scale matching and color queries
Jason Fan, Noor Singh, … Rob Patro·Algorithms for Molecular BiologyPeer-reviewed·Jan 22, 2024
- Extracting and Updating Compact Colored k-mer Indexes
Lore Depuydt, Jarno N. Alanko, … Simon J. Puglisi·bioRxiv·Nov 9, 2026
- Meta-colored compacted de Bruijn graphs
Giulio Ermanno Pibiri, Jason Fan, Rob Patro·Lecture notes in computer sciencePeer-reviewed·Jan 1, 2024