biHash: bisulfite-aware recursive nucleotide hashing
j. wong, I. Birol
Key points
From the paper's conclusion- Here, we present biHash, a rolling hash algorithm tailored for bisulfite-sequenced data.
Abstract
Bisulfite sequencing (BS-seq) measures cytosine methylation on the DNA at single-base resolution, but converts unmethylated cytosines to thymines, disrupting conventional strand complementarity and reducing sequence complexity. These pose a fundamental challenge to efficient sequence comparison and indexing tasks. Although k-mer hashing is foundational to bioinformatics for enabling such high-throughput operations, generic algorithms for string hashing are poorly equipped to handle the reduced-complexity alphabet and sequence ambiguity created by this conversion. We therefore require fast k-mer hashing that directly recognizes bisulfite-compatible sequence states. Here, we present biHash, a rolling hash algorithm tailored for bisulfite-sequenced data. Using context-specific dinucleotide encodings, biHash maps designated bisulfite-compatible sequence variants to the same hash value while retaining context-specific specificity. When hashing adjacent k-mers, biHash performs ~13 times faster than generic string hashing algorithms.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- RSHash: a fast and space-efficient hash table for k-mers.Bioinformatics (Oxford, England) · 2026
- Batch, Prefetch, Skip, Orient, Squeeze: Faster, Smaller k-mer dictionaries via the Spectral Burrows-Wheeler transformbioRxiv · 2026
- To sort or to hash? Revisiting k-mer countingbioRxiv · 2026
- kache-hash: A dynamic, concurrent, and cache-efficient hash table for streaming k-mer operationsbioRxiv · 2026
- BIKE: A Binary $K$-mer Exact Counter with Alphabet-Independent Memory and Deterministic Parallelism.IEEE transactions on computational biology and bioinformatics · 2026
- Binary search and set operations on compacted k-mer listsbioRxiv · 2026