GaKCo: a Fast GApped k-mer string Kernel using COunting
Not on the map. Why?
Abstract (arXiv)
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(SigmaM). We propose a fast algorithm for calculating underlineGapped k-mer underlineKernel using underlineCounting (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 SigmaM 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), respectively. GaKCo is shared as an open source tool at urlhttps://github.com/QData/GaKCo-SVM
Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). First posted on arXiv 24 Apr 2017.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2022: 1; 2023: 6; 2024: 2; 2025: 2.
11 papers.
- 2022Reads2Vec: Efficient Embedding of Raw High-Throughput Sequencing Reads Datacited by 7
- 2023T Cell Receptor Protein Sequences and Sparse Coding: A Novel Approach to Cancer Classificationcited by 3
- 2023Anderson Acceleration For Bioinformatics-Based Machine Learningcited by 2
- 2023BioSequence2Vec: Efficient Embedding Generation For Biological Sequencescited by 1
- 2023PCD2Vec: A Poisson Correction Distance-Based Approach for Viral Host Classificationcited by 1
- 2023Virus2Vec: Viral Sequence Classification Using Machine Learningcited by 1
- 2024Position Specific Scoring Is All You Need? Revisiting Protein Sequence Classification Taskscited by 1
- 2024MIK: Modified Isolation Kernel for Biological Sequence Visualization, Classification, and Clusteringcited by 1
- 2023Beyond Accuracy: Measuring Representation Capacity of Embeddings to Preserve Structural and Contextual Informationcited by 0
- 2025Sequence-to-Image Transformation for Sequence Classification Using Rips Complex Construction and Chaos Game Representationcited by 0
- 2025When do cheap embeddings beat protein language models? A theoretically-grounded hashing sketch for biological sequence classificationcited by 0
- 2025When do cheap embeddings beat protein language models? A theoretically-grounded hashing sketch for biological sequence classification10 Dec 2025
- 2025Sequence-to-Image Transformation for Sequence Classification Using Rips Complex Construction and Chaos Game Representation10 Dec 2025
- 2024MIK: Modified Isolation Kernel for Biological Sequence Visualization, Classification, and Clustering21 Oct 2024
- 2024Position Specific Scoring Is All You Need? Revisiting Protein Sequence Classification Tasks16 Oct 2024
- 2023Beyond Accuracy: Measuring Representation Capacity of Embeddings to Preserve Structural and Contextual Information20 Sep 2023
- 2023T Cell Receptor Protein Sequences and Sparse Coding: A Novel Approach to Cancer Classification25 Apr 2023
- 2023Virus2Vec: Viral Sequence Classification Using Machine Learning24 Apr 2023
- 2023PCD2Vec: A Poisson Correction Distance-Based Approach for Viral Host Classification13 Apr 2023
- 2023BioSequence2Vec: Efficient Embedding Generation For Biological Sequences1 Apr 2023
- 2023Anderson Acceleration For Bioinformatics-Based Machine Learning1 Feb 2023
- 2022Reads2Vec: Efficient Embedding of Raw High-Throughput Sequencing Reads Data15 Nov 2022