Molecular Ecology ResourcesGeneticsPeer-reviewed journal article
pixy: Unbiased estimation of nucleotide diversity and divergence in the presence of missing data
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{pi} and dXY, which are used to describe genetic diversity within and between populations, respectively. Here, we address a widespread issue in{pi} and dXY calculation: systematic bias generated by missing data of various types. Many popular methods for calculating{pi} and dXY operate on data encoded in the Variant Call Format (VCF), which condenses genetic data by omitting invariant sites. When calculating{pi} and dXY 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{pi} and dXY 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{pi} and dXY 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{pi} and dXY regardless of the form or amount of missing data. In sum, 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.
- assay: whole-genome sequencing
- research focus: variant calling
- research focus: variant effect prediction
- research focus: benchmarking
- research focus: software / tool
- approach: statistical model
- Citations
- 671
- FWCI
- 44.16
- Field percentile
- top 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
- 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
- Maximum likelihood point estimates for improved population genetics statistics
Andrey Vaulin, Jarkko Salojärvi·bioRxiv·Aug 1, 2025
- DipSkmer: Reference-free population genomics with diploid genome skims
Eduardo Charvel, Homère J. Alves Monteiro, … Vineet Bafna·bioRxiv·Jun 8, 2026
- vcfsim: flexible simulation of all-sites VCFs with missing data
Paimon Goulart, Kieran Samuk·BMC BioinformaticsPeer-reviewed·Apr 28, 2026
- Pydigree: a python library for manipulation and forward-time simulation and of genetic datasets
James E. Hicks·bioRxiv·Nov 5, 2017