BioinformaticsBioinformaticsPeer-reviewed journal article
Optimizing sparse and skew hashing: faster k-mer dictionaries
- Citations
- 1
- FWCI
- 3.42
- Field percentile
- top 6%
Abstract
MotivationRepresenting a set of k-mers -- strings of length k -- in small space under fast lookup queries is a fundamental requirement for several applications in Bioinformatics. A data structure based on sparse and skew hashing (SSHash) was recently proposed for this purpose [Pibiri, 2022]: it combines good space effectiveness with fast lookup and streaming queries. It is also order-preserving, i.e., consecutive k-mers (sharing a prefix-suffix overlap of length k-1) are assigned consecutive hash codes which helps compressing satellite data typically associated with k-mers, like abundances and color sets in colored De Bruijn graphs. ResultsWe study the problem of accelerating queries under the sparse and skew hashing indexing paradigm, without compromising its space effectiveness. We propose a refined data structure with less complex lookups and fewer cache misses. We give a simpler and faster algorithm for streaming lookup queries. Compared to indexes with similar capabilities and based on the Burrows-Wheeler transform, like SBWT and FMSI, SSHash is significantly faster to build and query. SSHash is competitive in space with the fast (and default) modality of SBWT when both k-mer strands are indexed. While larger than FMSI, it is also more than one order of magnitude faster to query. Availability and ImplementationThe SSHash software is available at https://github.com/jermp/sshash, and also distributed via Bioconda. A benchmark of data structures for k-mer sets is available at https://github.com/jermp/kmer_sets_benchmark. The datasets used in this article are described and available at https://zenodo.org/records/17582116. Contactgiulioermanno.pibiri@unive.it, rob@cs.umd.edu.
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
- Sparse and Skew Hashing of K-Mers
Giulio Ermanno Pibiri·BioinformaticsPeer-reviewed·Apr 14, 2022
- On Weighted K-Mer Dictionaries
Giulio Ermanno Pibiri·bioRxiv·May 23, 2022
- FroM Superstring to Indexing: a space-efficient index for unconstrained k-mer sets using the Masked Burrows-Wheeler Transform (MBWT)
Ondřej Sladký, Pavel Veselý, Karel Břinda·Bioinformatics AdvancesPeer-reviewed·Nov 11, 2025
- kache-hash: A dynamic, concurrent, and cache-efficient hash table for streaming k-mer operations
Jamshed Khan, Rob Patro, Prashant Pandey·bioRxiv·Feb 16, 2026
- Towards Efficient k-Mer Set Operations via Function-Assigned Masked Superstrings
Ondřej Sladký, Pavel Veselý, Karel Břinda·bioRxiv·Mar 6, 2024
- Representation of k-mer sets using spectrum-preserving string sets
Amatur Rahman, Paul Medevedev·Journal of Computational BiologyPeer-reviewed·Dec 8, 2020