bioRxivBioinformaticsPreprint
GaKCo: a Fast GApped k-mer string Kernel using COunting
Ritambhara SinghiD, Arshdeep SekhoniD, Jack LanchantiniD, Kamran KowsariiD, Beilun WangiD, Yanjun QiiD
Abstract
String Kernel (SK) techniques, especially those using gapped k-mers as features (gk), have obtained great success in classifying sequences like DNA, protein, and text. However, the state-of-the-art gk-SK runs extremely slow when we increase the dictionary size ({Sigma}) or allow more mismatches (M). This is because current gk-SK uses a trie-based algorithm to calculate co-occurrence of mismatched substrings resulting in a time cost proportional to O({Sigma}M). We propose a fast algorithm for calculating Gapped k-mer Kernel using Counting (GaKCo). GaKCo uses associative arrays to calculate the co-occurrence of substrings using cumulative counting. This algorithm is fast, scalable to larger{Sigma} and M, and naturally parallelizable. We provide a rigorous asymptotic analysis that compares GaKCo with the state-of-the-art gk-SK. Theoretically, the time cost of GaKCo is independent of the{Sigma} M term that slows down the trie-based approach. Experimentally, we observe that GaKCo achieves the same accuracy as the state-of-the-art and outperforms its speed by factors of 2, 100, and 4, on classifying sequences of DNA (5 datasets), protein (12 datasets), and character-based English text (2 datasets). 1
- assay: DNA methylation
- assay: proteomics
- research focus: benchmarking
- research focus: gene regulatory network inference
- research focus: differential expression
- research focus: variant effect prediction
- approach: statistical model
- Citations
- 4
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
- FastSK: Fast Sequence Analysis with Gapped String Kernels
Derrick Blakely, Eamon Collins, … Yanjun Qi·BioinformaticsPeer-reviewed·Sep 8, 2020
- Hyper-k-mers: efficient streaming k-mers representation
Igor Martayan, Lucas Robidou, … Antoine Limasset·bioRxiv·Nov 6, 2024
- Sparse and Skew Hashing of K-Mers
Giulio Ermanno Pibiri·BioinformaticsPeer-reviewed·Apr 14, 2022
- Optimizing sparse and skew hashing: faster k-mer dictionaries
Giulio Ermanno Pibiri, Rob Patro·BioinformaticsPeer-reviewed·Jul 1, 2026
- aaHash: recursive amino acid sequence hashing
Johnathan Wong, Parham Kazemi, … İnanç Birol·Bioinformatics AdvancesPeer-reviewed·Jan 1, 2023
- 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