This site needs JavaScript to work properly. Please enable it to take advantage of the complete set of features!
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.

NIH NLM Logo
Log in
Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2021 May;21(4):1359-1368.
doi: 10.1111/1755-0998.13326. Epub 2021 Feb 5.

pixy: Unbiased estimation of nucleotide diversity and divergence in the presence of missing data

Affiliations

pixy: Unbiased estimation of nucleotide diversity and divergence in the presence of missing data

Katharine L Korunes et al. Mol Ecol Resour. 2021 May.

Erratum in

  • [No title available]
    [No authors listed] [No authors listed] Mol Ecol Resour. 2022 Apr;22(3):1228-1229. doi: 10.1111/1755-0998.13571. Epub 2021 Dec 23. Mol Ecol Resour. 2022. PMID: 34939740 No abstract available.

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 dXY , which are used to describe genetic diversity within and between populations, respectively. Here, we address a widespread issue in π and dXY calculation: systematic bias generated by missing data of various types. Many popular methods for calculating π and dXY operate on data encoded in the variant call format (VCF), which condenses genetic data by omitting invariant sites. When calculating π 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 π 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 π 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 π and dXY 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.

Keywords: bioinfomatics/phyloinfomatics; genomics/proteomics; molecular evolution; population genetics - empirical; software.

PubMed Disclaimer

Figures

FIGURE 1
FIGURE 1
The logic and input/ouput of pixy demonstrated with a simple haploid example. (a) Comparison of two methods for computing π (or dXY) in the face of missing data. These methods follow the first expression of Equation 1 but differ in how they calculate the numerator and denominator. In Case 1, all missing data is assumed to be present but invariant. This results in a deflated estimate of π. In Case 2, missing data are simply omitted from the calculation, both in terms of the number of sites (the final denominator) and the component denominators for each site (the n choose two terms). This results in an unbiased estimate of π. (b) The adjusted π method (Case 2) as implemented for VCFs in pixy. The example VCF (input) contains the same four haplotypes as (a). Invariant sites are represented as sites with no ALT allele, and greyed-out sites are those that failed to pass a genotype filter requiring a minimum number of reads covering the genotype (Depth ≥ 10 in this case)
FIGURE 2
FIGURE 2
Comparison between pixy and existing methods in complete data sets. (a, b) The sampling distribution of π (a) and dXY (b), as estimated from 10,000 simulated data sets using pixy and a variety of existing methods (see text for details). The red dotted line denotes the theoretical expectation for the mean of the sampling distribution, 4Neμ = 0.04 (which is the same for π and dXY in this particular case). The observed means of the sampling distributions are marked with inverted triangles. For clarity, estimates of π and dXY above 0.100 are aggregated in the last bin ("0.100+"). (c, d) direct comparisons between pixy’s estimates of π (c) and dXY (d) and those from existing methods
FIGURE 3
FIGURE 3
Comparison between pixy and existing methods in the presence of missing data. (a) π and (b) dXY are shown as scaled estimates (each estimate is scaled by dividing by the estimate obtained from the parent data set with no missing data). Perfect congruence between estimates in the presence and absence of missing data is shown with the dotted line at y = 1. Estimates were obtained from data sets with varying proportions of missing genotypes (top row, a and b) and sites (bottom row, a and b)
FIGURE 4
FIGURE 4
Comparisons of estimates of π from whole genome data derived from 18 Anopheles gambiae individuals from the Ag1000G Burkina Faso (BFS) population. Each panel (a–d) depicts the estimates of π for the X chromosome performed using pixy (y-axis) and four other methods (x-axis, a–d). Points are coloured according to the proportion of missing data (of any type) calculated by pixy. The 1:1 line is shown in red

References

    1. Broad Institute (2019). Picard toolkit. GitHub repository [Internet]. http://broadinstitute.github.io/picard/
    1. Burri R (2017). Interpreting differentiation landscapes in the light of long-term linked selection. Evolution Letters, 1, 118–131.
    1. Carmena M, & González C (1995). Transposable elements map in a conserved pattern of distribution extending from beta-heterochromatin to centromeres in Drosophila melanogaster. Chromosoma, 103, 676–684. - PubMed
    1. Cruickshank TE, & Hahn MW (2014). Reanalysis suggests that genomic islands of speciation are due to reduced diversity, not reduced gene flow. Molecular Ecology, 23, 3133–3157. - PubMed
    1. Danecek P, Auton A, Abecasis G, Albers CA, Banks E, DePristo MA, Handsaker RE, Lunter G, Marth GT, Sherry ST, McVean G, Durbin R & 1000 Genomes Project Analysis Group (2011). The variant call format and VCFtools. Bioinformatics, 27(15), 2156–2158. - PMC - PubMed

LinkOut - more resources

Cite

AltStyle によって変換されたページ (->オリジナル) /