bioRxivEvolutionary BiologyPreprint
GPU accelerated population genetics statistics using pg_gpu
Nathaniel S. PopeiD, Angel G. Rivera‐ColóniD, Ananya KapooriD, Kevin KorfmanniD, Murillo F. RodriguesiD, Scott T. SmalliD, Anastasia A. TeterinaiD, Andrew D. KerniD
Abstract
Population genetics summary statistics--diversity, divergence, linkage disequilibrium, selection scans, and dimensionality reduction--are fundamental across human, agricultural, and ecological genomics. As whole-genome sequencing datasets have grown to hundreds of thousands of individuals, the cost of computing these statistics on conventional CPU implementations has become a major bottleneck: windowed scans of a single chromosome arm can take hours to days, and computation of pairwise linkage-disequilibrium statistics useful for demographic inference scales as O(n2) in sample size, often exceeding wall-clock budgets entirely. We present pg_gpu, a Python library implementing a comprehensive catalog of population-genetics summary statistics as fused CUDA kernels on NVIDIA GPUs. pg_gpu covers eleven categories spanning diversity and neutrality tests, divergence, admixture, the site-frequency spectrum, linkage disequilibrium, haplotype-based selection scans, dimensionality reduction (PCA, randomized PCA, local PCA / lostruct), distance distributions, relatedness, resampling, and a generalized weighted-SFS framework for custom{omega} estimators. On the full Ag1000G Phase 3 chromosome 3R arm (2,940 haplotypes, 10.9 million variants) pg_gpu agrees with scikit-allel and PLINK2 to machine precision while delivering a median 139x and maximum 1,096x speedup. For the multi-population LD statistics used by moments for demographic inference, pg_gpu is a drop-in replacement that yields a ~1,750-fold speedup over the native implementation. Whole chromosome arm scans, lostruct screens, and calculation of LD statistics complete on a single NVIDIA A100 in seconds to a few minutes.
- Citations
- 1
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
- dadi.CUDA: Accelerating population genetic inference with Graphics Processing Units
R. N. Gutenkunst·bioRxiv·Jul 30, 2020
- Expanded unbiased population-genomic summary statistics in pixy
Kieran Samuk, Matt Stone, … Mikhail Plaza·bioRxiv·Jul 30, 2026
- Efficient Estimation of Nucleotide Diversity and Divergence using Depth Information
Cade Mirchandani, Erik D. Enbody, … Russell B Corbett-Detig·bioRxiv·May 15, 2025
- Accelerating Wright-Fisher Forward Simulations on the Graphics Processing Unit
D. S. Lawrie·bioRxiv·Mar 31, 2016
- GraphPop: graph-native computation decouples population genomics complexity from sample count
Ehsan Estaji, Shiwei Zhao, … Jian‐Feng Mao·bioRxiv·Apr 17, 2026
- ARCHER-LD: Rapid Long-Range Linkage Disequilibrium Calculations at Biobank Scale using GPU Acceleration
Rachit Kumar, Pankhuri Singhal, … Anurag Verma·bioRxiv·Sep 21, 2026