Abstract
Linkage disequilibrium (LD) is used to infer evolutionary history, to identify genomic regions under selection, and to dissect the relationship between genotype and phenotype. In each case, we require accurate estimates of LD statistics from sequencing data. Unphased data present a challenge because multilocus haplotypes cannot be inferred exactly. Widely used estimators for the common statistics r2 and D2 exhibit large and variable upward biases that complicate interpretation and comparison across cohorts. Here, we show how to find unbiased estimators for a wide range of two-locus statistics, including D2, for both single and multiple randomly mating populations. These unbiased statistics are particularly well suited to estimate effective population sizes from unlinked loci in small populations. We develop a simple inference pipeline and use it to refine estimates of recent effective population sizes of the threatened Channel Island Fox populations.
Keywords: linkage disequilibrium, demographic inference, sample size, Ne estimation
Introduction
Linkage disequilibrium (LD), the statistical association of alleles between two loci, is informative about evolutionary and biological processes. Patterns of LD are used to infer past demographic events, identify regions under selection, estimate the landscape of recombination across the genome, and discover genes associated with biomedical and phenotypic traits. These analyses require accurate and efficient estimation of LD statistics from genome sequencing data.
LD is typically given as the covariance or correlation of alleles between pairs of loci. Estimating this covariance from data is simplest when we directly observe haplotypes (in haploid or phased diploid sequencing), in which case we know which alleles co-occur on the same haplotype. However, most whole-genome sequencing of diploids is unphased, leading to ambiguity about the co-segregation of alleles at each locus.
The statistical foundation for computing LD statistics from unphased data that was developed in the 1970s (Hill 1974; Cockerham and Weir 1977; Weir 1979) has led to widely used approaches for their estimation from modern sequencing data (Excoffier and Slatkin 1995; Rogers and Huff 2009). Although these methods provide accurate estimates for the covariance and correlation (D and r), they do not extend to other two-locus statistics, and they result in biased estimates of r2 (Waples 2006). This bias confounds interpretation of r2 decay curves.
Here, we extend an approach for estimating the covariance D introduced by Weir (1979) to find unbiased estimators for a large set of two-locus statistics including D2 and . We show that these estimators are accurate for the low-order LD statistics used in demographic and evolutionary inferences. We provide an estimator for r2 with improved qualitative and quantitative behavior over the widely used approach of Rogers and Huff (2009), although it remains a biased estimator. In general, for analyses sensitive to biases in the estimates of statistics, we recommend the use of D2 or over r2.
As a concrete use case, we consider estimating recent effective population size (Ne) from observed LD between unlinked loci, a common analysis when population sizes are small, typical in conservation and domestication genomics studies. Waples (2006) suggested combining an empirical bias correction for estimates of r2 with an approximate theoretical result from Weir and Hill (1980) to estimate Ne.
We propose an alternative approach to estimate Ne using our unbiased estimator for that avoids many of the assumptions and biases associated with r2 estimation. We first derive expectations for and related statistics between unlinked loci and compare estimates of Ne based on and r2 using simulated data. As an application, we reanalyze sequencing data from Funk et al. (2016) to estimate recent Ne in the threatened Channel Island fox populations using . Our estimates are overall consistent with those reported in Funk et al. (2016) using the approach from Waples (2006), with the exception of the San Nicolas Island population where the -based estimate of 13.8 individuals is over 6 times larger than the r2-based estimate of 2.1 individuals. Our analysis further suggests population structure or recent gene flow into island fox populations.
Linkage Disequilibrium Statistics
Throughout, we assume that each locus carries two alleles: A/a at the left locus and B/b at the right locus. We think of A and B as the derived alleles, although the expectations of statistics that we consider here are unchanged if alleles are randomly labeled instead. Allele A has frequency p in the population (allele a has frequency ), and B has frequency q (b has frequency ). There are four possible two-locus haplotypes, AB, Ab, aB, and ab, whose frequencies sum to 1.
For two loci, LD is typically given by the covariance or correlation of alleles co-occurring on a haplotype (Lewontin and Kojima 1960; Hill and Robertson 1968). The covariance is denoted D:
and the correlation is denoted r:
Squared covariances (D2) and correlations (r2) see wide use in genome-wide association studies to thin data for reducing correlation between single nucleotide polymorphisms (SNPs) and to characterize local levels of LD (Speed et al. 2012). Although the average of D across sites is 0 under broad conditions, averages of D2 and r2 are nonzero and informative about demography: the magnitude and decay rate of r2 between pairs of loci at varying distances reflect population sizes over a range of time periods (Tenesa et al. 2007; Hollenbeck et al. 2016), whereas recent admixture results in elevated long-range LD (Moorjani et al. 2011; Loh et al. 2013).
To measure the scale and decay rate of LD statistics, we compute averages over many pairs of loci across the genome. To build theoretical predictions for these observations, we take expectations over multiple realizations of the evolutionary process.
Sources of LD
When computing statistics from data, we typically work with a subset of samples from the full population. Our measurement of any two-locus statistic reflects both the underlying population-level quantity and details of the sampling process. Here, we assume that we randomly sample n diploid individuals from well-mixed, randomly mating population(s), so that contributions from the sampling process is entirely due to the given sample sizes.
To learn about the evolutionary and biological processes that shape LD, we are interested in population-level statistics. A major focus of this manuscript is to remove bias due to finite sample sizes when estimating LD. Below, we describe an approach to obtain unbiased estimators for any two-locus statistic that can be expressed as a polynomial in two-locus haplotype frequencies. However, r2 is a ratio, complicating its estimation from data.
In addition, it is difficult to compute model predictions for population-level r2 even in simple evolutionary scenarios. Here, we consider a related measure proposed by Ohta and Kimura (1969),
is not as commonly used or reported, although we can compute its expectation from models (Hill and Robertson 1968) and estimate it from data (as described in this study). Recent studies have demonstrated that can be used to infer population size history (Rogers 2014) and, along with a set of related statistics, allows for powerful inference of multi-population demography and population structure (Ragsdale and Gravel 2019).
Finally, researchers typically exclude monomorphic sites when computing averages of r2 or D2 from data. This is in contrast to theoretical approximations for these quantities, which take expectations over all pairs of monomorphic and segregating loci (Hill and Robertson 1968; Ohta and Kimura 1969; Song and Song 2007), further complicating comparisons between observation and theoretical prediction. Using instead of or avoids this issue, because including pairs where one or both loci are monomorphic does not change the expectation of .
Results
Estimating LD from Data
In the Materials and Methods section, we present an approach to compute unbiased estimators for a large family of two-locus statistics, using either phased or unphased data. This includes commonly used statistics, such as D and D2, the additional statistics in the Hill–Robertson system ( and , which we denote Dz and π2, respectively), and, in general, any statistic that can be expressed as a polynomial in haplotype frequencies (f’s) or in terms of p, q, and D. We use this same approach to find unbiased estimators for cross-population LD statistics, which were recently used to infer multi-population demographic history (Ragsdale and Gravel 2019).
For a given pair of loci i and j, we use our estimators for D2 and π2 to propose an estimator for r2 between loci i and j from unphased data, which we denote (hereafter dropping the subscripts i, j). is a biased estimator for r2. However, it performs favorably in comparison with the common approach of first computing and simply squaring the result, as in Rogers and Huff (2009) (fig. 1).
To explore the performance of this estimator, we first simulated varying diploid sample sizes with direct multinomial sampling from known haplotype frequencies (fig. 1A–D and supplementary fig. S1, Supplementary Material online). Estimates of D2 were unbiased as expected, and quickly converged to the true r2 as sample size increases. Standard errors of our estimator were nearly indistinguishable from Rogers and Huff (2009) (supplementary fig. S2, Supplementary Material online), and the variances of estimators for statistics in the Hill–Robertson system decayed with sample size as (supplementary fig. S3, Supplementary Material online).
Second, we simulated 1 Mb segments of chromosomes under steady-state demography (using msprime [Kelleher et al. 2016]) to estimate r2 decay curves using both approaches. Our estimator was invariant to phasing and displayed the proper decay properties in the large recombination distance limit (fig. 2A). With increasing distance between SNPs, approached zero as expected for population-level LD, whereas the Rogers–Huff r2 estimates converged to positive values as expected in a finite sample (Waples 2006).
Finally, we computed the decay of r2 across five population from the 1000 Genomes Project Consortium et al. (2015) (fig. 2B–D). shows distinct qualitative behavior across populations, with recently admixed populations exhibiting long-range LD. However, r2 as estimated using the Rogers–Huff approach displayed long-range LD in every population, confounding the signal of admixture in the shape of r2 decay curves.
Estimating from LD between Unlinked Loci
Observed LD between unlinked markers is widely used to estimate the effective population size (Ne) in small populations (Hill 1981; Waples 1991, 2006; Waples and Do 2008; Do et al. 2014). This estimate of Ne reflects the effective number of breeding individuals over the last one to several generations, since LD between unlinked loci is expected to decay rapidly over just a handful of generations. Analytic solutions for are unavailable, although a classical result uses a ratio of expectations to approximate
(1) |
for a randomly mating population, where c is the per generation recombination probability between two loci (eq. 3 in Weir and Hill [1980] due to Avery [1978]). For unlinked loci (c = 1/2), equation (1) reduces to (for a monogamous mating system, [Weir and Hill 1980]). Rearranging this equation provides an estimate for Ne if we can estimate r2 from data.
As pointed out by Waples (2006), failing to account for sample size bias when estimating r2 from data leads to strong downward biases in . Waples (2006) used Burrows’ estimator (again following Weir and Hill [1980]) and used simulations to empirically estimate the bias in the estimate due to finite sample size (given by ). Subtracting this estimated bias from gives an empirically corrected estimate for r2,
(2) |
Waples showed that removes much of the bias in Ne estimates (fig. 1C and D). Bulik-Sullivan et al. (2015) used a similar bias correction (via the δ-method) that appears to perform comparably with (supplementary fig. S1, Supplementary Material online).
Predicting for Unlinked and Linked Loci
The Avery equation (1) was derived under the assumption that the expectation of ratios equals the ratio of expectation. By working directly with , we therefore save both a theoretical approximation and the need for empirical finite sample bias correction. In a random-mating diploid Wright–Fisher model with c = 1/2, we show in the Supplementary data that , as suggested by the Avery equation, whereas monogamy leads to . A similar approach allows us to show that , another statistic from the Hill–Robertson system, is approximately zero for unlinked loci (its leading-order term is of order ).
In the opposite limit, for tightly linked loci (), Ohta and Kimura (1969) used a diffusion approach to approximate
(3) |
This approximation is accurate at demographic equilibrium for both large and small population sizes with low mutation rates and recombination distances (fig. 3A). Rearranging equation (3) then provides a direct estimate for Ne for any given recombination distance (fig. 3B), though the approximation is only valid for .
Comparison of Methods for Estimating Using Simulated Data
We simulated data with effective population sizes Ne = 100 and 400 using fwdpy11 (Thornton 2014) to compare the performance of inferring from NeEstimator version 2.1 (Do et al. 2014), which uses , and from (see Materials and Methods for simulation details). Generally, using our estimators for provided less biased estimates of Ne (fig. 4 and supplementary fig. S4, Supplementary Material online). This was the case even when data was filtered by minor allele frequency (MAF), a strategy recommended to reduce bias for NeEstimator but that is not required or desirable in the approach. Estimates from had smaller variance when filtering by MAF, but higher mean squared error (MSE) for larger sample sizes (supplementary table S1, Supplementary Material online). In practice, NeEstimator provides estimates with different cutoff choices and lets the user decide on the best cutoff choice.
We also explored the effect of inbreeding on estimates of and using simulated data. Unsurprisingly, higher rates of inbreeding lead to higher values of between unlinked loci, which results in deflated estimates of Ne (supplementary fig. S5A and B, Supplementary Material online). σDz is robust to inbreeding, with expected value near zero even for large selfing rates (supplementary fig. S5C, Supplementary Material online). Although σDz cannot be used to provide an estimate for Ne (as its expectation is zero), it could instead be used to distinguish between different violations of model assumptions: if we also measure σDz to be significantly elevated above zero, it might suggest population structure or recent migration into the population (Ragsdale and Gravel 2019).
The Effective Population Sizes of Island Foxes
The island foxes (Urocyon littoralis) that inhabit the Channel Islands of California have recently experienced severe population declines due to predation and disease. For this reason they have been closely studied to inform protection and management decisions. More generally, they provide an exemplary system to study the genetic diversity and evolutionary history of endangered island populations (Wayne et al. 1991; Coonan et al. 2010; Funk et al. 2016; Robinson et al. 2016, 2018). A recent study aimed to disentangle the roles of demography (including sharp reductions in population size, resulting in strong genetic drift) and differential selection in shaping the genetics of island foxes across the six Channel Islands (Funk et al. 2016). In addition to genetic analyses based on single-site statistics, Funk et al. (2016) used NeEstimator (Do et al. 2014) to infer recent for each of the island fox populations (reproduced in table 1).
Table 1.
Population | (95% CI) Reported in Funk et al. (2016) | (95% CI) Using | ||
---|---|---|---|---|
San Miguel I. | 13.7 | 15.3 | ||
Santa Rosa I. | 13.6 | 13.3 | ||
Santa Cruz I. | 25.1 | 22.8 | ||
Santa Catalina I. | 47.0 | 40.9 | ||
San Clemente I. | 89.7 | 59.1 | ||
San Nicolas I. | 2.1 | 13.8 |
Note.—LD between unlinked loci provides an estimate for the effective number of (breeding) individuals in the previous several generations. Funk et al. (2016) used NeEstimator (Do et al. 2014) to estimate Ne for six island fox populations in the Channel Islands of California (left). We used this same data to compute Ne using our estimator for instead (right), obtaining results largely consistent with Funk et al. (2016). Notably, Funk et al. inferred an extremely small size on San Nicolas Island (), whereas our estimate is somewhat larger and on the same order of magnitude of from other islands with small effective population sizes. A 90% confidence intervals were computed via 200 resampled bootstrap replicates (see Materials and Methods).
Using the same 5,293 variable sites reported and analyzed in Funk et al. (2016), we computed for each of the six island fox populations to estimate Ne. Results using were generally consistent with those computed in Funk et al. (2016) using (table 1 and supplementary table S2, Supplementary Material online). Perhaps most notably, the San Nicolas Island population, which was previously inferred to have the extremely small effective size of , was inferred to have . Although this size is still quite small in contrast to mainland populations, it is more encouraging from a conservation standpoint and similar to the effective sizes inferred in other island fox populations.
We also estimated σDz for each population and found that it was significantly elevated above zero in each population (supplementary table S4, Supplementary Material online). This suggests that some model assumptions are not being met. From simulated data, neither inbreeding nor filtering by MAF should result in elevated observed σDz (supplementary figs. S5 and S6, Supplementary Material online). The discrepancy could instead be caused by population substructure or recent migration between populations. It may also be driven by technical artifacts: we analyzed the data with the assumption that the separate RAD contigs were effectively unlinked (reads were not mapped to a reference genome). If some contigs were in fact closely physically linked on chromosomes, this could lead to larger LD statistics than expected for unlinked loci.
Discussion
We presented estimators for a range of summary statistics of LD, including Hill and Robertson’s D2, Dz, and π2, that account for both unphased data and finite sample sizes. Such estimators readily extend to two-locus statistics involving multiple populations, such as the covariance of D between two populations. This work naturally complements inference approaches that use LD, removing confounding from finite sample sizes and allowing for direct comparisons with expectations from evolutionary models (Loh et al. 2013; Rogers 2014; Ragsdale and Gravel 2019). As an illustration, here we demonstrated the use of our estimator for to infer recent Ne from LD between unlinked loci (Waples 1991, 2006; Do et al. 2014).
Challenges of Estimating r2
We did not obtain an unbiased estimator for r2. Computing estimates and expectations of ratios is challenging, and often intractable. One commonly used approach to estimate r2 is to first compute via an EM algorithm (Excoffier and Slatkin 1995) or genotype correlations (Rogers and Huff 2009) and then square the result. Although we can compute unbiased estimators for r from either phased or unphased data, this approach gives inflated estimates of r2 because it does not properly account for the variance in . In general, the expectation of a function of a random variable is not equal to the function of its expectation:
For large enough sample sizes, this error will be practically negligible, but for small to moderate sample sizes, the estimates will be upwardly biased, sometimes drastically (figs. 1 and 2).
An alternative is to estimate D2 and π2 and compute their ratio for each pair of loci. Given unbiased estimates of the numerator and denominator , the ratio performs favorably to the Rogers–Huff approach (fig. 1C and D) and displays the appropriate decay behavior in the large recombination limit (fig. 2). It is still a biased estimator for r2, however, since
Even if we were given an adequate estimator for r2, obtaining theoretical predictions for its value is very challenging (McVean 2002; Song and Song 2007; Rogers 2014).
One approach to handle the finite sample bias for r2 is to work directly with the finite-sample correlation, that is, the expected r2 due to both population-level LD and LD induced by sampling with sample size n. This may be estimated by first solving for the expected two-locus sampling distribution for a given sample size (Hudson 2001; Kamm et al. 2016; Ragsdale and Gutenkunst 2017), and then using this distribution to compute for that sample size (as proposed by Spence and Song [2019]). This approach allows for a fair comparison between model expectations and r2 as computed by the Rogers and Huff (2009) estimator. However, methods for computing the full two-locus sampling distribution are limited to a single population, preventing the exploration of models of admixture or migration between multiple populations. Furthermore, because finite-sample bias dominates signal for all but the shortest recombination distances, using biased statistics hinders comparisons across cohorts with differing sample sizes. Working directly with -type statistics, for which we presented unbiased estimators and can compute theoretical predictions for multiple populations under arbitrary demography (Ragsdale and Gravel 2019), avoids these complications.
Finally, Song and Song (2007) approximated using a series expansion of polynomials in p, q, and D. In theory, our approach can provide unbiased estimators for each term in that series, with accuracy determined by where we decide to truncate the series expansion. Although this may be an appealing strategy, it is likely to be quite computationally expensive as Song and Song (2007) suggest that many terms are needed for accurate estimation.
Tradeoffs and Limitations
Among caveats for the present approach, we find that the unbiased estimators are analytically cumbersome. For example, expanding as a monomial series in genotype frequencies results in nearly 100 terms. The algebra is straightforward, but writing the estimator down by hand is a tedious exercise, and we used symbolic computation to simplify terms and avoid algebraic mistakes. This might explain why such estimators were not proposed for higher orders than D in the foundational work of LD estimation in 1970s and 1980s.
Deriving and computing such estimators poses no problem for an efficiently written computer program that operates on observed genotype counts. The computational complexity of counting two-locus genotypes from unphased data and then computing from genotype counts reasonably scales to sample sizes in the tens or hundreds of thousands, although our Python implementation remains slower than computing the Pearson product-moment correlation coefficients directly from the genotype matrix, as in the Rogers–Huff approach (supplementary fig. S7, Supplementary Material online). For very large sample sizes, the bias in the Rogers–Huff estimator for r2 is negligible, and it may be preferable to use their more straightforward approach.
In computing sample variances from observations, there is a familiar tension between minimizing bias and minimizing the MSE of the estimate. For example, Bessel’s correction (the typical factor in the sample variance formula) provides an unbiased estimator of the sample variance, but often results in a larger MSE. The maximum likelihood estimator for r2 or D2 using the Excoffier and Slatkin (1995) approach reflects this tradeoff, providing a smaller MSE but a biased estimate of these quantities. In addition, it is worth noting that like many unbiased estimators, both and can take values outside the expected range of the corresponding statistics: for a given pair of loci may be slightly negative or greater than one.
Throughout, we assumed populations to be randomly mating. Under inbreeding, there are multiple interpretations of D depending on whether we consider the covariance between two randomly drawn haplotypes from the population or consider two haplotypes within the same diploid individual (Cockerham and Weir 1977). Given the existence of theoretical predictions for two-locus statistics in models with inbreeding, deriving unbiased statistics for this scenario appears a worthwhile goal for future work.
Materials and Methods
Notation
Variables without decoration represent quantities computed as though we know the true population haplotype frequencies. We use tildes to represent statistics estimated by taking maximum likelihood estimates for allele frequencies from a finite sample: for example, . Hats represent unbiased estimates of quantities: for example, . f’s denote haplotype frequencies in the population, whereas g’s denote genotype frequencies. Instead of writing , we use as shorthand for genotype frequencies, and as shorthand for the associated observed genotype counts (all nine genotypes are represented in table 2).
Table 2.
BB | Bb | bb | Exp. Freq. | |
---|---|---|---|---|
AA | g 1 | g 2 | g 3 | p 2 |
Aa | g 4 | g 5 | g 6 | |
aa | g 7 | g 8 | g 9 | |
Exp. freq. | q 2 | 1 |
Note.—For a given pair or loci, the nine possible two-locus genotypes have frequencies which sum to 1. We assume random mating, so expected marginal genotype frequencies follow expected Hardy–Weinberg proportions. The gi’s are shorthand for each of the possible observed two-locus genotypes. For example, a diploid sample where we observe the left locus heterozygous as Aa and the right locus homozygous bb contributes to frequency g6.
Estimating Statistics from Phased Data
Suppose that we observe haplotype counts , with , for a given pair of loci. Estimating LD in this case is straightforward. An unbiased estimator for D is
We interpret as the probability of drawing two chromosomes from the population and observing haplotype AB in the first sample and ab in the second, minus the probability of observing Ab followed by aB. This intuition leads us to the same estimator :
In this same way we can find an unbiased estimator for any two-locus statistic that can be expressed as a polynomial in haplotype frequencies. For example, the variance of D is
with each term being interpreted as the probability of sampling the given ordered haplotype configuration in a sample of size four (Strobeck and Morgan 1978; Hudson 1985). An unbiased estimator for D2 is then
The multinomial factors in front of each term account for the number of distinct orderings of the sampled haplotypes. We similarly find unbiased estimators for the other terms in the Hill–Robertson system, and (shown in the Supplementary data), or any other statistic that we compute from haplotype frequencies.
Estimating Statistics from Unphased Data
Estimating two-locus statistics from genotype data requires a bit more work because the underlying haplotypes are ambiguous in a double heterozygote, AaBb. Our first step is to derive expressions for D, p, and q in terms of the population genotype frequencies . We will then use these expressions to derive unbiased estimates in terms of the finite population sample genotype counts . Expressions for p and q in terms of genotype frequencies can be read directly from table 2: , and . To obtain an estimate for , we would like to have expressions for haplotype frequencies such as fAB in terms of the gi.
We can write a naive estimate for fAB by reading from table 2 and simply assuming that the double heterozygote genotype had equal probability of the two possible phasing configurations:
The correct expression for fAB would replace by the probability of the correct haplotype configuration, . This probability can be expressed as , so that
We can obtain similar expressions for all the and substitute in the expression for D to write
Rearranging provides an estimate of D in terms of naive frequency estimates that depend only on genotypes:
This expression for D is equal to Burrows’ “composite” covariance measure of LD,
(4) |
as given in Weir (1979) and Weir (1996), page 126.
Given this expression for D, as well as and , we can express higher-order moments as function of genotype frequencies. The Hill–Robertson statistics can be written as polynomials in the naive estimates
and
The next step is to obtain estimates from finite samples. Any statistic S written as a polynomial in can be expanded as a monomial series in genotype frequencies gj, :
Each term of the form can be interpreted as the probability of drawing diploid samples, and observing the ordered configuration of k1 of type g1, k2 of type g2, and so on. Then, from a diploid sample size of , this term has the unbiased estimator
Summing over all terms gives us an unbiased estimator for S:
(5) |
We can use this approach to derive an unbiased estimator for D,
which simplifies to the known Burrows estimator (Weir, 1979),
For statistics of higher order than D, such as those in the Hill–Robertson system, expanding these statistics often involves a large number of terms. In practice, we use symbolic computation software to compute our estimators. In some cases the estimators simplify into compact expressions, although in other cases they may remain expansive. However, even when there are many terms, the sums do not consist of large terms of alternating sign, and so computation is stable. Mathematica notebooks are provided as supplementary material, Supplementary Material online.
Simulations of Unlinked Loci
We used fwdpy11 (version 0.4.2) (Thornton 2014) to simulate data with multiple chromosomes and variable population sizes, sample sizes, selfing probabilities, and mutation and recombination rates. To simulate m chromosomes each of length L base pairs with recombination rate c per base pair, we defined m segments of total recombination rate Lc each separated by a binomial point probability of recombination of 0.5. The total mutation rate was then mLu, where u is the per-base mutation rate. fwdpy11 allows the user to define any selfing probability between 0 and 1.
For a given sample size of n diploids, we sampled from the Ne simulated individuals without replacement and assumed data from diploids was unphased. To compute and σDz, we constructed genotype arrays and used the Parsing features of moments.LD (Ragsdale and Gravel 2019), which makes use of scikit-allel (version 1.2.0) (Miles and Harding 2016), to compute statistics between each pair of chromosomes. We also output the same data in the genepop format, the required input format for NeEstimator (version 2.1) (Do et al. 2014), to compute using equations (1) and (2). For comparisons with Do et al. (2014), we considered MAF cutoffs of 0.1 and 0.05, as well as using all SNPs.
Island Fox Data and Analysis
Data
We reanalyzed data for six Channel Island fox populations studied by Funk et al. (2016) (with data deposited at https://datadryad.org/resource/doi:10.5061/dryad.2kn1v; last accessed November 19, 2019). In short, Funk et al. (2016) used Restriction-site Associated DNA sequencing to generate SNP data for between 18 and 46 individuals per population. No reference genome for the island foxes was available at the time, so they generated reference contigs from eight high coverage individuals to map reads from the remaining 192 sequenced individuals. They excluded loci that were called in fewer than half of all individuals and individuals with genotypes for less than half of all loci, and kept only SNPs with MAF greater than 0.1. They also reported only a single SNP per contig, keeping the first SNP for each contig if more than one SNP were observed.
Computing Statistics and Ne
The sequencing and filtering procedure from Funk et al. (2016) resulted in 5,293 SNPs, which were made available at the above URL. We converted the given genepop format to VCF, and used scikit-allel (Miles and Harding 2016) to parse the VCF and our software moments.LD to compute two-locus statistics using the approach described in this paper. We computed both and σDz for each of the six populations. Because contigs were not mapped to a reference genome, we did not know which chromosome each SNP was on. For this analysis, we assumed all SNPs were unlinked.
We computed for each population. To compute bootstrapped 95% confidence intervals, we randomly assigned the 5,293 SNPs to 20 groups and computed statistics between all pairs of groups, and then sampled the same number of subset pairs with replacement to compute and σDz. We repeated this 200 times to estimate the sampling distributions and the confidence intervals for each.
Software
Code to compute two-locus statistics in the Hill–Robertson system is packaged with our software moments.LD, a python program that computes expected LD statistics with flexible evolutionary models and performs likelihood-based demographic inference (https://bitbucket.org/simongravel/moments). moments.LD also computes LD statistics from genotype data or VCF files using the approach described in this paper, for either phased or unphased data. Code used to compute and simplify unbiased estimators and python scripts to recreate analyses and figures in this manuscript can be found at https://bitbucket.org/aragsdale/estimateld.
Supplementary Material
Acknowledgments
We thank Lounès Chikhi, Mandy Yao, Alex Diaz-Papkovich, Rosie Sun, and Chris Gignoux for useful discussions. We are grateful to Kevin Thornton for help with simulating data using fwdpy11. We also thank Jeff Spence and an anonymous reviewer for insightful comments on earlier versions of this manuscript. This research was undertaken, in part, thanks to funding from the Canada Research Chairs program, the Natural Sciences and Engineering Research Council of Canada discovery grant, and Canadian Institutes of Health Research MOP-136855.
References
- 1000 Genomes Project Consortium; Auton A, Brooks LD, Durbin RM, Garrison EP, Kang HM, Korbel JO, Marchini JL, McCarthy S, McVean GA, Abecasis GR.. 2015. A global reference for human genetic variation. Nature 526(7571):68–74. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Avery PJ. 1978. The effect of finite population size on models of linked overdominant loci. Genet Res. 31(3):239–254. [Google Scholar]
- Bulik-Sullivan BK, Loh P-R, Finucane HK, Ripke S, Yang J, Patterson N, Daly MJ, Price AL, Neale BM.. 2015. LD score regression distinguishes confounding from polygenicity in genome-wide association studies. Nat Genet. 47(3):291–295. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Cockerham CC, Weir BS.. 1977. Digenic descent measures for finite populations. Genet Res. 30(2):121–147. [Google Scholar]
- Coonan TJ, Schwemm CA, Garcelon DK.. 2010. Decline and recovery of the island fox: a case study for population recovery. Cambridge: Cambridge University Press. [Google Scholar]
- Do C, Waples RS, Peel D, Macbeth G, Tillett BJ, Ovenden JR.. 2014. Neestimator v2: re-implementation of software for the estimation of contemporary effective population size (Ne) from genetic data. Mol Ecol Resour. 14(1):209–214. [DOI] [PubMed] [Google Scholar]
- Excoffier L, Slatkin M.. 1995. Maximum-likelihood estimation of molecular haplotype frequencies in a diploid population. Mol Biol Evol. 12(5):921–927. [DOI] [PubMed] [Google Scholar]
- Funk WC, Lovich RE, Hohenlohe PA, Hofman CA, Morrison SA, Sillett TS, Ghalambor CK, Maldonado JE, Rick TC, Day MD, et al. 2016. Adaptive divergence despite strong genetic drift: genomic analysis of the evolutionary mechanisms causing genetic differentiation in the island fox (Urocyon littoralis). Mol Ecol. 25(10):2176–2194. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Hill WG. 1974. Estimation of linkage disequilibrium in randomly mating populations. Heredity 33(2):229.. [DOI] [PubMed] [Google Scholar]
- Hill WG. 1981. Estimation of effective population size from data on linkage disequilibrium. Genet Res. 38(3):209–216. [Google Scholar]
- Hill WG, Robertson A.. 1968. Linkage disequilibrium in finite populations. Theor Appl Genet. 38(6):226–231. [DOI] [PubMed] [Google Scholar]
- Hollenbeck C, Portnoy D, Gold J.. 2016. A method for detecting recent changes in contemporary effective population size from linkage disequilibrium at linked and unlinked loci. Heredity 117(4):207.. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Hudson RR. 1985. The sampling distribution of linkage disequilibrium under an infinite allele model without selection. Genetics 109(3):611–631. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Hudson RR. 2001. Two-locus sampling distributions and their application. Genetics 159(4):1805–1817. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Kamm JA, Spence JP, Chan J, Song YS.. 2016. Two-locus likelihoods under variable population size and fine-scale recombination rate estimation. Genetics 203(3):1381–1399. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Kelleher J, Etheridge AM, McVean G.. 2016. Efficient coalescent simulation and genealogical analysis for large sample sizes. PLoS Comput Biol. 12(5):e1004842. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Lewontin R, Kojima K-I.. 1960. The evolutionary dynamics of complex polymorphisms. Evolution 14(4):458–472. [Google Scholar]
- Loh PR, Lipson M, Patterson N, Moorjani P, Pickrell JK, Reich D, Berger B.. 2013. Inferring admixture histories of human populations using linkage disequilibrium. Genetics 193(4):1233–1254. [DOI] [PMC free article] [PubMed] [Google Scholar]
- McVean GAT. 2002. A genealogical interpretation of linkage disequilibrium. Genetics 162(2):987–991. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Miles A, Harding N.. 2016. scikit-allel: v 1.2.0, Zenodo, doi: 10.5281/zenodo.3238280.
- Moorjani P, Patterson N, Hirschhorn JN, Keinan A, Hao L, Atzmon G, Burns E, Ostrer H, Price AL, Reich D.. 2011. The history of African gene flow into Southern Europeans, Levantines, and Jews. PLoS Genet. 7(4):e1001373.. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Ohta T, Kimura M.. 1969. Linkage disequilibrium at steady state determined by random genetic drift and recurrent mutation. Genetics 63(1):229–238. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Ragsdale AP, Gravel S.. 2019. Models of archaic admixture and recent history from two-locus statistics. PLoS Genet. 15(6):e1008204.. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Ragsdale AP, Gutenkunst RN.. 2017. Inferring demographic history using two-locus statistics. Genetics 206(2):1037–1048. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Robinson JA, Brown C, Kim BY, Lohmueller KE, Wayne RK.. 2018. Purging of strongly deleterious mutations explains long-term persistence and absence of inbreeding depression in island foxes. Curr Biol. 28(21):3487–3494. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Robinson JA, Ortega-Del Vecchyo D, Fan Z, Kim BY, vonHoldt BM, Marsden CD, Lohmueller KE, Wayne RK.. 2016. Genomic flatlining in the endangered island fox. Curr Biol. 26(9):1183–1189. [DOI] [PubMed] [Google Scholar]
- Rogers AR. 2014. How population growth affects linkage disequilibrium. Genetics 197(4):1329–1341. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Rogers AR, Huff C.. 2009. Linkage disequilibrium between loci with unknown phase. Genetics 182(3):839–844. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Song YS, Song JS.. 2007. Analytic computation of the expectation of the linkage disequilibrium coefficient r2. Theor Popul Biol. 71(1):49–60. [DOI] [PubMed] [Google Scholar]
- Speed D, Hemani G, Johnson MR, Balding DJ.. 2012. Improved heritability estimation from genome-wide SNPs. Am J Hum Genet. 91(6):1011–1021. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Spence JP, Song YS.. 2019. Inference and analysis of population-specific fine-scale recombination maps across 26 diverse human populations. bioRxivA. doi: 10.1101/532168. [DOI] [PMC free article] [PubMed]
- Strobeck C, Morgan K.. 1978. The effect of intragenic recombination on the number of alleles in a finite population. Genetics 88(4):829–844. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Tenesa A, Navarro P, Hayes BJ, Duffy DL, Clarke GM, Goddard ME, Visscher PM.. 2007. Recent human effective population size estimated from linkage disequilibrium. Genome Res. 17(4):520–526. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Thornton KR. 2014. A c++ template library for efficient forward-time population genetic simulation of large populations. Genetics 198(1):157–166. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Waples RS. 1991. Genetic methods for estimating the effective size of cetacean populations. Rep. Int. Whaling Comm. (Spec Issue). 13:279–300. [Google Scholar]
- Waples RS. 2006. A bias correction for estimates of effective population size based on linkage disequilibrium at unlinked gene loci. Conserv Genet. 7(2):167–184. [Google Scholar]
- Waples RS, Do C.. 2008. Ldne: a program for estimating effective population size from data on linkage disequilibrium. Mol Ecol Resour. 8(4):753–756. [DOI] [PubMed] [Google Scholar]
- Wayne RK, George SB, Gilbert D, Collins PW, Kovach SD, Girman D, Lehman N.. 1991. A morphologic and genetic study of the island fox, Urocyon littoralis. Evolution 45(8):1849–1868. [DOI] [PubMed] [Google Scholar]
- Weir BS. 1979. Inferences about linkage disequilibrium. Biometrics 35(1):235–254. [PubMed] [Google Scholar]
- Weir BS. 1996. Genetic data analysis II, 2nd ed Sunderland (MA: ): Sinauer Associates, Inc.. [Google Scholar]
- Weir BS, Hill WG.. 1980. Effect of mating structure on variation in linkage disequilibrium. Genetics 95(2):477–488. [DOI] [PMC free article] [PubMed] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.