Abstract
As decreasing DNA sequencing costs leads to a steadily increasing rate of generated data, the development of efficient algorithms for processing sequence data is increasingly important to reduce costs and energy consumption. Recent work has shown that genotyping can be done efficiently and accurately using alignment-free methods based on analyzing k-mers from sequenced reads. We recently presented the KAGE genotyper, which uses an efficient pangenome representation of known individuals in a population to increase accuracy and efficiency. While existing genotypers like KAGE use the Central Processing Unit (CPU) to count and analyze k-mers, the Graphical Processing Unit (GPU) has shown promise for reducing runtime for similar problems. We here present GKAGE, a new and improved version of KAGE that utilizes the GPU to further increase computational efficiency. This is achieved by counting and analyzing large amounts of k-mers in the many parallel cores of a GPU. We show that GKAGE is, on hardware of comparable cost, able to genotype an individual up to an order of magnitude faster than KAGE while producing the same output, making it the fastest genotyper available today. GKAGE can run on consumer-grade GPUs, enabling genotyping of a human sample in minutes without the need for expensive high-performance computers.
Introduction
Traditional genomic variant calling typically relies on "alignment," a process where billions of short DNA reads are mapped back to a reference genome. This step is computationally intensive and often serves as a bottleneck in genomic pipelines. Alignment-free methods, such as the previously developed KAGE, bypass this by breaking reads into short strings of length k (k-mers) and matching them against known variants. While KAGE significantly improved speed over alignment-based tools, its CPU-based architecture limited its throughput. GKAGE addresses this by offloading the most parallelizable tasks—DNA encoding and k-mer counting—to the GPU.
Methods
GKAGE reimplements the core bottlenecks of the KAGE pipeline using the NVIDIA CUDA platform. The implementation strategy focuses on two primary technical areas:
- GPU-Accelerated Encoding: GKAGE utilizes CuPy, a library that provides a NumPy-compatible interface for GPU computing. This allows for the efficient conversion of DNA bases into a 2-bit representation directly on the GPU.
- Targeted K-mer Counting: Unlike general-purpose k-mer counters that attempt to index every unique sequence in a sample, GKAGE only counts a predefined set of k-mers associated with known variants. This targeted approach is implemented via a custom static hash table in C++/CUDA. As illustrated in Figure 1, the system uses a MurmurHash3 function and a linear probing scheme. CUDA atomic operations ensure that multiple threads can update k-mer counts simultaneously without data corruption.
Results and Performance
The researchers evaluated GKAGE using simulated human whole-genome reads at 15x coverage. Benchmarks were conducted on both a high-performance server (AMD EPYC with NVIDIA V100) and a consumer-grade desktop (Intel i5 with NVIDIA GTX 1660 Super).
GKAGE achieved significant speedups while maintaining identical output to the original KAGE. On a consumer desktop, GKAGE completed the genotyping process in 178 seconds, compared to 1,993 seconds for KAGE—a more than 10x improvement. On high-performance hardware, the runtime dropped to just 94 seconds.
As shown in Table 1, GKAGE also outperformed Gerbil, a specialized GPU k-mer counter, even though Gerbil only performs the counting step while GKAGE executes the entire genotyping pipeline.
Discussion and Limitations
GKAGE demonstrates that GPU acceleration can serve as a massive "equalizer" in genomics. By reducing memory requirements through targeted counting (requiring only ~2GB of VRAM for 28 million variants), the tool enables high-throughput genotyping on standard consumer hardware. This accessibility reduces the reliance on expensive high-performance computing clusters.
However, some limitations remain. GKAGE is currently optimized for NVIDIA GPUs and requires a predefined set of variants, making it less suitable for de novo mutation discovery. Future work may explore expanding hardware compatibility and scaling the hash table to accommodate even larger pangenome representations.
Summary updated