bioRxivBioinformaticsPreprint
Agent-optimized GPU polygenic scoring at cohort scale
Abstract
A polygenic score (PGS) is a unitless weighted sum of allele dosages, interpretable only as a percentile within a reference distribution. Evaluating risk across models requires scoring each individual against a whole reference panel, but current CPU pipelines process targets or models sequentially, making full cross-product calculations prohibitively expensive. We reformulated PGS calculation as a cohort-wide sparse matrix product on a GPU and optimized it via an autonomous coding agent under read-only inputs, cold starts, and strict numerical validation against pgsc_calc. The scorer was "trained" by the agent accessing synthetic data and real 1000 Genomes data. On a synthetic benchmark, the scorer achieved a 10.6-fold speedup during the training course (184.9 s to 17.4 s) and ran 71-fold faster than pgsc_calc. However, on held-out real genomes, the synthetic-trained scorer was 15.3-fold slower than the real-data-trained version and diverged significantly from pgsc_calc (maximum absolute difference of 3.7x10-1 vs. 3.1x10-4). Three replications of the synthetic loop from an identical prompt showed that agent optimization trajectory variance explains 91 to 96% of total wall-clock variance, against 0 to 2.6% for the data sampled and 0.2 to 3.3% for repeated execution. A memory-bounded rebuild then scored all the 3,202 1000 Genome genotypes against all 5,385 models in 6.5 h within a 72 GB memory cap, released here as a frozen scoring manifest with ancestry-stratified reference distributions for the whole PGS Catalog
- organism: human
- assay: whole-genome sequencing
- research focus: variant effect prediction
- research focus: benchmarking
- research focus: database / resource
- approach: statistical model
- approach: machine learning (classical)
- Citations
- 0
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
- RapidoPGS: A rapid polygenic score calculator for summary GWAS data without a test dataset
Guillermo Reales, Elena Vigorito, … Chris Wallace·BioinformaticsPeer-reviewed·Jun 17, 2021
- Improving the computation efficiency of polygenic risk score modeling: Faster in Julia
Annika B. Faucon, Julian Samaroo, … Megan M. Shuey·Life Science AlliancePeer-reviewed·Jul 18, 2022
- PGS Browser: a public platform for personalized polygenic score interpretation
Nikita Kolosov, Mary Pat Reeve, … Mykyta Artomov·medRxiv·Jul 3, 2025
- The Polygenic Score Catalog: new functionality and tools to enable FAIR research
Samuel A. Lambert, Benjamin Wingfield, … Michael Inouye·medRxiv·May 29, 2024
- Optimal strategies for learning multi-ancestry polygenic scores vary across traits
Brieuc Lehmann, Maxine E. Mackintosh, … Chris C. Holmes·Nature CommunicationsPeer-reviewed·Jul 7, 2023
- GPU accelerated population genetics statistics using pg_gpu
Nathaniel S. Pope, Angel G. Rivera‐Colón, … Andrew D. Kern·bioRxiv·May 31, 2026