Computational Biology
TorchGWAS brings GPU acceleration to large-scale genetic studies
A new Python framework harnesses graphics processors to speed up genome-wide association testing across thousands of traits simultaneously.
Researchers have introduced TorchGWAS, a GPU-accelerated software framework designed to tackle a growing computational challenge in modern genetics: testing the associations between genetic variants and thousands of traits at once in large populations.
The Problem#
Modern biomedical research increasingly generates massive quantities of phenotypic data—measurements from imaging, molecular assays, and machine-learning models—for single study cohorts. When researchers want to perform genome-wide association studies (GWAS) on these phenotypes, they face severe bottlenecks: processing thousands of traits individually against millions of genetic variants becomes prohibitively slow and produces enormous volumes of data.
How TorchGWAS Works#
TorchGWAS addresses this challenge by running association tests on graphics processing units (GPUs) using batched operations rather than sequential processing. The framework performs covariate-adjusted linear association testing—the statistical backbone of GWAS—but does so in parallel across many phenotypes at once.
The implementation uses Python and has been validated against PLINK 2.0, a widely-used genetics software, confirming that its statistical outputs match across over 500,000 tests.
Performance at Scale#
Testing on an NVIDIA H100 GPU with supporting infrastructure, researchers benchmarked TorchGWAS on a dataset encompassing approximately 4.57 billion genetic associations—spanning 8.9 million variants measured across 512 phenotypes in over 35,000 individuals. The framework completed this analysis in under one minute, with end-to-end times varying by data format:
- BED format: 28.46 seconds
- Hard-call PGEN: 29.13 seconds
- BGEN format: 51.48 seconds
- Dosage PGEN: 58.95 seconds
These times include writing 36.7 gigabytes of summary statistics to disk.
Availability#
TorchGWAS is distributed as open-source code via a documented repository, making it accessible to researchers conducting association studies on large biobanks and cohorts.

