pixy : Unbiased estimation of nucleotide diversity and divergence in the presence of missing data
Open accessThe DOI matches its Crossref record; 32 of the 32 references it cites were found in a registry or an index.
Abstract
Population genetic analyses often use summary statistics to describe patterns of genetic variation and provide insight into evolutionary processes. Among the most fundamental of these summary statistics are π and d XY , which are used to describe genetic diversity within and between populations, respectively. Here, we address a widespread issue in π and d XY calculation: systematic bias generated by missing data of various types. Many popular methods for calculating π and d XY operate on data encoded in the variant call format (VCF), which condenses genetic data by omitting invariant sites. When calculating π and d XY using a VCF, it is often implicitly assumed that missing genotypes (including those at sites not represented in the VCF) are homozygous for the reference allele. Here, we show how this assumption can result in substantial downward bias in estimates of π and d XY that is directly proportional to the amount of missing data. We discuss the pervasive nature and importance of this problem in population genetics, and introduce a user‐friendly UNIX command line utility, pixy, that solves this problem via an algorithm that generates unbiased estimates of π and d XY in the face of missing data. We compare pixy to existing methods using both simulated and empirical data, and show that pixy alone produces unbiased estimates of π and d XY regardless of the form or amount of missing data. In summary, our software solves a long‐standing problem in applied population genetics and highlights the importance of properly accounting for missing data in population genetic analyses.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Fast and accurate short read alignment with Burrows-Wheeler transform
Li, H., & Durbin, R. (2009) · Bioinformatics · doi:10.1093/bioinformatics/btp324 · Cited by 58,607
The Genome Analysis Toolkit: A MapReduce framework for analyzing next-generation DNA sequencing data
McKenna, A., Hanna, M., Banks, E., Sivachenko, A., Cibulskis, K., Kernytsky, A., Garimella, K., Altshuler, D., Gabriel, S., Daly, M., et al. (2010) · Genome Research · doi:10.1101/gr.107524.110 · Cited by 27,895
The variant call format and VCFtools
Danecek, P., Auton, A., Abecasis, G., Albers, C. A., Banks, E., DePristo, M. A., Handsaker, R. E., Lunter, G., Marth, G. T., Sherry, S. T., et al. (2011) · Bioinformatics · doi:10.1093/bioinformatics/btr330 · Cited by 16,200
Mathematical model for studying genetic variation in terms of restriction endonucleases.
Nei, M., & Li, W. H. (1979) · Proceedings of the National Academy of Sciences · doi:10.1073/pnas.76.10.5269 · Cited by 10,402
Van der Auwera, G. A., Carneiro, M. O., Hartl, C., Poplin, R., del Angel, G., Levy‐Moonshine, A., Jordan, T., Shakir, K., Roazen, D., Thibault, J., et al. (2013) · Current Protocols in Bioinformatics · doi:10.1002/0471250953.bi1110s43 · Cited by 6,687
A Robust, Simple Genotyping-by-Sequencing (GBS) Approach for High Diversity Species
Elshire, R. J., Glaubitz, J. C., Sun, Q., Poland, J. A., Kawamoto, K., Buckler, E. S., & Mitchell, S. E. (2011) · PLoS ONE · doi:10.1371/journal.pone.0019379 · Cited by 6,501
ANGSD: Analysis of Next Generation Sequencing Data
Korneliussen, T. S., Albrechtsen, A., & Nielsen, R. (2014) · BMC Bioinformatics · doi:10.1186/s12859-014-0356-4 · Cited by 2,982 · cited 4×
“In addition to the three previously explored programs (VCFtools, PopGenome, and scikit-allel), we included estimates of π and d XY from the software ANGSD (Korneliussen et al. 2014).”
MethodInfluentialSAMPLING VARIANCES OF HETEROZYGOSITY AND GENETIC DISTANCE
Nei, M., & Roychoudhury, A. K. (1974) · Genetics · doi:10.1093/genetics/76.2.379 · Cited by 1,641
Cruickshank, T. E., & Hahn, M. W. (2014) · Molecular Ecology · doi:10.1111/mec.12796 · Cited by 1,061
PopGenome: An Efficient Swiss Army Knife for Population Genomic Analyses in R
Pfeifer, B., Wittelsbürger, U., Ramos-Onsins, S. E., & Lercher, M. J. (2014) · Molecular Biology and Evolution · doi:10.1093/molbev/msu136 · Cited by 939
Efficient Coalescent Simulation and Genealogical Analysis for Large Sample Sizes
Kelleher, J., Etheridge, A. M., & McVean, G. (2016) · PLOS Computational Biology · doi:10.1371/journal.pcbi.1004842 · Cited by 654
Giraldo-Calderón, G. I., Emrich, S. J., MacCallum, R. M., Maslen, G., Dialynas, E., Topalis, P., Ho, N., Gesing, S., the VectorBase Consortium, Madey, G., et al. (2015) · Nucleic Acids Research · doi:10.1093/nar/gku1117 · Cited by 610
Coalescent Theory: An Introduction
Wakeley, J. (2008) · Cited by 603
Population genetics: a concise guide
(1998) · Choice Reviews Online · doi:10.5860/choice.35-4473 · Cited by 601
Proximal Causes of Natal Dispersal in Belding's Ground Squirrels (Spermophilus Beldingi)
Holekamp, K. E. (1986) · Ecological Monographs · doi:10.2307/1942552 · Cited by 590
Coalescent Theory: An Introduction
Sigwart, J. (2009) · Systematic Biology · doi:10.1093/schbul/syp004 · Cited by 589
Lowry, D. B., Hoban, S., Kelley, J. L., Lotterhos, K. E., Reed, L. K., Antolin, M. F., & Storfer, A. (2017) · Molecular Ecology Resources · doi:10.1111/1755-0998.12635 · Cited by 453
O'Leary, S. J., Puritz, J. B., Willis, S. C., Hollenbeck, C. M., & Portnoy, D. S. (2018) · Molecular Ecology · doi:10.1111/mec.14792 · Cited by 434
Noor, M. A. F., & Bennett, S. M. (2009) · Heredity · doi:10.1038/hdy.2009.151 · Cited by 370
Gillespie, J. (2004) · doi:10.56021/9780801880087 · Cited by 366
Coevolution between transposable elements and recombination
Kent, T. V., Uzunović, J., & Wright, S. I. (2017) · Philosophical Transactions of the Royal Society B: Biological Sciences · doi:10.1098/rstb.2016.0458 · Cited by 312 · cited 2×
“…general underestimation of π and d XY it also creates a correlation between π / d XY and “missingness”, which can itself covary with various features of the genome, e.g. TEs or structural variants (Carmena and González 1995; Kent et al. 2017). missing data is assumed to be present but invariant.”
BackgroundThe Unreasonable Effectiveness of Convolutional Neural Networks in Population Genetic Inference
Flagel, L., Brandvain, Y., & Schrider, D. R. (2019) · Molecular Biology and Evolution · doi:10.1093/molbev/msy224 · Cited by 193
Interpreting differentiation landscapes in the light of long-term linked selection
Burri, R. (2017) · Evolution Letters · doi:10.1002/evl3.14 · Cited by 166
Assessing the Effect of Sequencing Depth and Sample Size in Population Genetics Inferences
Fumagalli, M. (2013) · PLoS ONE · doi:10.1371/journal.pone.0079667 · Cited by 164
Gene flow and selection interact to promote adaptive divergence in regions of low recombination
Samuk, K., Owens, G. L., Delmore, K. E., Miller, S., Rennison, D. J., & Schluter, D. (2017) · Molecular Ecology · doi:10.1111/mec.14226 · Cited by 164
Self-citationA comparison of genomic islands of differentiation across three young avian species pairs
Irwin, D. E., Milá, B., Toews, D. P. L., Brelsford, A., Kenyon, H. L., Porter, A. N., Grossen, C., Delmore, K. E., Alcaide, M., & Irwin, J. H. (2018) · Molecular Ecology · doi:10.1111/mec.14858 · Cited by 149
Carmena, M., & Gonz�lez, C. (1995) · Chromosoma · doi:10.1007/bf00344228 · Cited by 91
Do Heliconius butterfly species exchange mimicry alleles?
Smith, J., & Kronforst, M. R. (2013) · Biology Letters · doi:10.1098/rsbl.2013.0503 · Cited by 88
Hahn, M. W. (2018) · Cited by 63
Hartl, D. L. (2020) · Oxford University Press eBooks · doi:10.1093/oso/9780198862291.003.0007 · Cited by 33
Korunes, K. L., Machado, C. A., & Noor, M. A. F. (2021) · Evolution · doi:10.1111/evo.14278 · Cited by 12
Self-citationRobust Score Tests With Missing Data in Genomics Studies
Wong, K. Y., Zeng, D., & Lin, D. Y. (2018) · Journal of the American Statistical Association · doi:10.1080/01621459.2018.1514304 · Cited by 8
Cited by
Community-wide genome sequencing reveals 30 years of Darwin’s finch evolution
Enbody, E. D., Sendell-Price, A. T., Sprehn, C. G., Rubin, C.-J., Visscher, P. M., Grant, B. R., Grant, P. R., & Andersson, L. (2023) · Science · doi:10.1126/science.adf6218 · Cited by 75
Integrative taxonomy clarifies the evolution of a cryptic primate clade
van Elst, T., Sgarlata, G. M., Schüßler, D., Tiley, G. P., Poelstra, J. W., Scheumann, M., Blanco, M. B., Aleixo-Pais, I. G., Rina Evasoa, M., Ganzhorn, J. U., et al. (2024) · Nature Ecology & Evolution · doi:10.1038/s41559-024-02547-w · Cited by 37
“Genetic distances were calculated using a custom R script based on the pixy algorithm 129 to obtain an unbiased estimate of the average number of nucleotide differences per site between two individuals ( π ).”
Genomes of critically endangered saola are shaped by population structure and purging
Garcia-Erill, G., Liu, S., Le, M. D., Hurley, M. M., Nguyen, H. D., Nguyen, D. Q., Nguyen, D. H., Santander, C. G., Sánchez Barreiro, F., Gomes Martins, N. F., et al. (2025) · Cell · doi:10.1016/j.cell.2025.03.040 · Cited by 10
Adaptive genomic divergence parallels migratory behavior in Atlantic bluefin tuna
Mikles, C. S., Pagniello, C. M. L. S., Bigal, E., Moran, B. M., Rooker, J. R., Ortega, A., de la Gándara, F., Maxwell, H., Schallert, R., Castleton, M. R., et al. (2026) · Current Biology · doi:10.1016/j.cub.2026.04.006 · Cited by 3
Metadata
- Authors
- Korunes, K. L., & Samuk, K.
- Venue
- Molecular Ecology Resources
- Publisher
- Wiley
- Published
- 2021-02-05
- Volume
- 21
- Issue
- 4
- Pages
- 1359-1368
- ISSN
- 1755-098X (ISSN-L)
- 1755-0998
- OpenAlex
- W3123129704
- Cited by
- 663
- References
- 32
- FWCI
- 39.40
- Type
- journal article
- Language
- en
- Open access
- green
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.