Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2021 May 4;38(5):2177-2178.
doi: 10.1093/molbev/msaa305.

dadi.CUDA: Accelerating Population Genetics Inference with Graphics Processing Units

Affiliations

dadi.CUDA: Accelerating Population Genetics Inference with Graphics Processing Units

Ryan N Gutenkunst. Mol Biol Evol. .

Abstract

dadi is a popular but computationally intensive program for inferring models of demographic history and natural selection from population genetic data. I show that running dadi on a Graphics Processing Unit can dramatically speed computation compared with the CPU implementation, with minimal user burden. Motivated by this speed increase, I also extended dadi to four- and five-population models. This functionality is available in dadi version 2.1.0, https://bitbucket.org/gutenkunstlab/dadi/.

Keywords: GPU computing; dadi; demographic history; population genetics.

PubMed Disclaimer

Figures

Fig. 1.
Fig. 1.
(A) Illustration of dadi integration. During each timestep, the population allele density ϕ is updated for each population axis. Each row and column over which ϕ is approximated yields a tridiagonal linear system. In the GPU implementation, these systems are solved in parallel. (B) Ratios of CPU to GPU times to compute the AFS for several models on several computing systems, versus AFS size. Absolute computation times are shown in supplementary figure S1, Supplementary Material online. The largest AFS size tested on each system was constrained by GPU memory.

References

    1. Adrion JR, Cole CB, Dukler N, Galloway JG, Gladstein AL, Gower G, Kyriazis CC, Ragsdale AP, Tsambos G, Baumdicker F, et al.2020. A community-maintained standard library of population genetic models. eLife 9:e54967. - PMC - PubMed
    1. Givon LE, Unterthiner T, Erichson NB, Chiang DW, Larson E, Pfister L, Dieleman S, Lee GR, van der Walt S, Menn B, et al.2019. scikit-cuda 0.5.3: a Python interface to GPU-powered libraries. Available from: 10.5281/zenodo.3229433. - DOI
    1. Gutenkunst RN, Hernandez RD, Williamson SH, Bustamante CD.. 2009. Inferring the joint demographic history of multiple populations from multidimensional SNP frequency data. PLoS Genet. 5(10):e1000695. - PMC - PubMed
    1. Hey J, Nielsen R.. 2004. Multilocus methods for estimating population sizes, migration rates and divergence time, with applications to the divergence of Drosophila pseudoobscura and D. persimilis. Genetics 167(2):747–760. - PMC - PubMed
    1. Jouganous J, Long W, Ragsdale AP, Gravel S.. 2017. Inferring the joint demographic history of multiple populations: beyond the diffusion approximation. Genetics 206(3):1549–1567. - PMC - PubMed

Publication types

LinkOut - more resources