 Research article
 Open access
 Published:
Estimating linkage disequilibrium from genotypes under HardyWeinberg equilibrium
BMC Genetics volume 21, Article number: 21 (2020)
Abstract
Background
Measures of linkage disequilibrium (LD) play a key role in a wide range of applications from disease association to demographic history estimation. The true population LD cannot be measured directly and instead can only be inferred from genetic samples, which are unavoidably subject to measurement error. Previous studies of r^{2} (a measure of LD), such as the bias due to finite sample size and its variance, were based on the special case that the true populationwise LD is zero. These results generally do not hold for nonzero \( {r}_{true}^2 \) values, which are more common in real genetic data.
Results
This work generalises the estimation of r^{2} to all levels of LD, and for both phased and unphased data. First, we provide new formulae for the effect of finite sample size on the observed r^{2} values. Second, we find a new empirical formula for the variance of the observed r^{2}, equals to 2E[r^{2}](1 − E[r^{2}])/n, where n is the diploid sample size. Third, we propose a new routine, Constrained ML, a likelihoodbased method to directly estimate haplotype frequencies and r^{2} from diploid genotypes under HardyWeinberg Equilibrium. While serving the same purpose as the preexisting ExpectationMaximisation algorithm, the new routine can have better convergence and is simpler to use. A new likelihoodratio test is also introduced to test for the absence of a particular haplotype. Extensive simulations are run to support these findings.
Conclusion
Most inferences on LD will benefit from our new findings, from point and interval estimation to hypothesis testing. Genetic analyses utilising r^{2} information will become more accurate as a result.
Background
Introduction
Linkage Disequilibrium (LD) was first defined about 100 years ago as the nonrandom association of alleles at different loci [1]. Since that time there has been much research on the topic, some focused on how LD is quantified and defined [2,3,4,5,6,7], and a larger fraction on the connection between LD and various evolutionary forces that shape it, including genetic drift [8,9,10,11] and selection [12, 13]. These investigations have also extended to subdivided or structured populations [14,15,16,17]. In principle, these theoretical works allow one to infer features of the underlying processes from measures of LD [18, 19]. Another application of LD includes association studies to identify genes for diseases, such as in the Human Haplotype Map project [20]. With the advance in sequencing technology, computer packages have been developed to calculate LD for large numbers of samples and genetic loci [5, 21,22,23,24]. While there are plenty of applications utilising LD information, they all rely on accurate and robust estimation of the parameter of interest, which many have taken for granted. There are, however, key gaps regarding LD estimation that have yet to be resolved.
The squared correlation coefficient r^{2} is a popular measure of LD alongside D or D’ [1]. One advantage of r^{2} is that it is less sensitive to marginal allele frequencies. It also relates to the ϕ correlation coefficient and χ^{2} test statistic for association of contingency tables [25]. Further, Sved and Feldman [26] showed the equivalence of r^{2} and the probability of linked identity by decent between two randomchosen haplotypes. Most previous studies concerning the estimation of r^{2}, including the mean and variance, have been based on the assumption of linkage equilibrium (i.e. \( {r}_{true}^2=0 \)). These findings do not hold for real datasets where the true correlation between loci is nonzero. In this article we extend the theory of r^{2} estimation to all levels of LD. We first study the expectation of the observed r^{2} for finite sample size, as sampling is known to bias the observed r^{2} [27]. Second, we approximate the empirical variance of the observed r^{2} as a function of sample size and its expectation E[r^{2}]. Third, we propose a direct routine to estimate haplotype frequencies and r^{2} for unphased data under HardyWeinberg Equilibrium (HWE). Throughout this paper, we define \( {r}_{true}^2 \) as the true populationwise, unobserved LD between two loci, while \( {r}_{phased}^2 \) and \( {r}_{unphased}^2 \) as the raw squared coefficient computed directly from phased and unphased data respectively.
Effect of finite sample size
Consider a classical twoallele, twolocus scenario, with alleles A and a at the first locus and alleles B and b at the second. Let p_{AB}, p_{Ab}, p_{aB}, p_{ab} be the true haplotype frequencies of the four haplotype combinations AB, Ab, aB, ab. Statistically speaking, if samples are taken with replacement, the observed haplotype counts follow a multinomial distribution with size 2n and probabilities equal the true haplotype frequencies. Let \( \overset{\sim }{p_{AB}},\overset{\sim }{p_{Ab}},\overset{\sim }{p_{aB}},\overset{\sim }{p_{ab}} \) be the sampled haplotype frequencies from our genetic samples, which are also the maximum likelihood estimators (MLE) for the true haplotype frequencies. We also let \( {r}_{phased}^2 \) be the squared correlation computed directly using the observed frequencies:
where \( \overset{\sim }{p_A}=\overset{\sim }{p_{AB}}+\overset{\sim }{p_{Ab}} \) and \( \overset{\sim }{p_B}=\overset{\sim }{p_{AB}}+\overset{\sim }{p_{aB}} \) are the observed marginal allele frequencies for allele A and B. Note that this formula is identical to the square of the ϕ coefficient for a twobytwo contingency table [25, 28]. The invariant principle of MLE suggests that \( {r}_{phased}^2 \) is also the MLE for \( {r}_{true}^2 \), but does not guarantee its unbiasedness towards the parameter of interest. The next step is to establish the effect of sample size and find a formula to connect \( {r}_{phased}^2 \) and \( {r}_{true}^2 \).
Sved and Feldman [26] showed the expected change in r^{2} due to genetic drift over two successive generations is
with c being the recombination rate between a pair of loci and N_{e} the effective population size. This equation is seemingly irrelevant to our problem, but we may consider the sampling process as another generation of genetic drift with population size equal to the sample size 2n under complete linkage (c = 0). Therefore, given the true \( {r}_{true}^2 \) for a population, the expected observed \( {r}_{phased}^2 \) becomes:
Or when we estimate the underlying \( {r}_{true}^2 \) from an observed value \( {r}_{phased}^2 \) the sample size correction formula becomes:
For unphased data, the sample size correction should largely follow the phased case, with n replacing 2n:
and similarly if we estimate the underlying \( {r}_{true}^2 \) from the estimated haplotype frequencies, the sample size correction formula is:
Empirical variance of r ^{2}
r^{2} is a ratio hence its variance is difficult to evaluate. The variance is required when inferring the confidence interval (C.I.) of an r^{2} estimate from a pair of loci, or in hypothesis testing to test against a specific true value. Many existing applications, such as those for effective population size estimation, suggest that the observed \( \frac{r^2}{E\left[{r}^2\right]} \) is approximately χ^{2} distributed with 1 degree of freedom, which implies that var(r^{2}) ≈ 2E[r^{2}]^{2} [27, 29]. This expression is derived under the null distribution of the χ^{2} statistic and is only correct if the underlying \( {r}_{true}^2=0 \). An obvious counterexample is a pair of perfectly correlated loci, whose \( {r}_{true}^2 \) and observed \( {r}_{phased}^2 \) (or \( {r}_{unphased}^2 \)) are 1, and hence the variance is 0 (instead of 2). While a closedform expression for the variance may not exist, we will approximate it with empirical simulations and relate it to sample sizes and other factors.
Estimating haplotype frequencies from unphased data
The term LD is often called the “gametic phase disequilibrium”, which specifically refers the correlation of alleles at the haplotype level. For diploid individuals, however, direct inference of haplotype frequencies is usually impossible when gametic phase is not known. The reason is that we are unable to tell the exact haplotype configuration for double heterozygotes, as they can be AB/ab or Ab/aB. Under HWE the expected frequencies for each genotype f_{1}, f_{2}, …, f_{9} are shown in Table 1. As introduced by Hill in 1974, the loglikelihood with respect to the haplotype frequencies, is [2]:
where n_{1}, n_{2}, …, n_{9} are the counts for each genotype. It is easy to understate the challenges in maximising this loglikelihood. Direct maximisation of Eq. 7 is not always feasible, hence the use of ExpectationMaximisation (EM) algorithm was suggested [21]. The second approach, adapted by CubeX, calculates the first derivataes of Eq. 7 and solves the associated cubic equation. This however works only for the twoallele twolocus case.
Here we propose a new approach to directly maximise Eq. 7 and thus to estimate the haplotype frequencies. Without loss of generality we drop the term p_{ab} as the four haplotype frequencies must add to one. The feasible region of the remaining three haplotype frequencies looks like a tetrahedron with vertices (1, 0, 0), (0, 1, 0), (0, 0, 1), and (0, 0, 0). Our method, called Constrained ML, transforms the haplotype frequencies before maximising the loglikelihood function. For this twoallele twolocus scenario, the transformation is as follows:
The feasible region of the new coordinates {u, v, w} becomes a unit cube. The loglikelihood is then maximised with respect to the new coordinates in this “boxlike” constraint, where a number of common optimisation routines become available. The MLE for the haplotype frequencies can be obtained by back transforming the \( \left\{\hat{u},\hat{v},\hat{w}\right\} \) values which maximise the function.
Sometimes, we need to decide whether a haplotype actually exists in the population. For example, if n_{6} = n_{8} = n_{9} = 0 then we cannot rule out the possibility of p_{ab} = 0, even if the estimated frequency is not. The same principle applies to the other haplotypes. While CubeX provides an additional solution (denoted as the γ solution) should this happen, it gives little indication of which set of estimated haplotype frequency we should accept. Under this scenario, we propose to perform a likelihoodratio test (LRT), to test whether a particular haplotype has zero frequency as a precaution. This use of an LRT will be demonstrated in the analysis of a real dataset.
Results
The plots of \( {r}_{phased}^2 \) versus \( {r}_{true}^2 \) are shown in Fig. 1 for several sample sizes. Linear regressions were run through these simulated data points, and the estimates and confidence intervals (C.I.s) of the slopes and intercepts are summarised in Table 2. The estimates of intercepts and slopes were very close to 1/2n and (1 − 1/2n), which agree to our derivation for r^{2} under finite sample size \( E\left[{r}_{phased}^2\right]=\left(1\frac{1}{2n}\right){r}_{true}^2+\frac{1}{2n} \) in Eq. 3. In particular, the 95% C.I. for slopes excluded 1 for all examined cases. The results from the same study using genotypic (unphased) data are shown in Fig. 2 and Table 3. The results were similar to the phased case, with estimates of intercepts and slopes of about 1/n and (1 − 1/n) respectively. In short, both phased and unphased simulations followed closely our theoretical expectations of observed r^{2} due to the effect of finite sampling.
Figures 3 and 4 show the variance plots against their expectations for phased and unphased data. The variance decreased with sample size n. Under the same condition the variances were smaller for phased than unphased data. The variance generally increases with their expectations for E[r^{2}] < 0.5, and then come down afterwards. As predicted, the variance goes down to 0 when E[r^{2}] approaches 1.
Our final set of simulations compared the convergence between Constrained ML and the EM algorithm. For both methods, the maximisation terminated at the k^{th} iteration when ∣l^{(k + 1)} − l^{(k)} ∣ / max(l^{(k + 1)}, l^{(k)}, 1) was smaller than the chosen relative tolerance. The plots of relative loglikelihood against relative tolerance are found in Fig. 5. The global maximum of the loglikelihood surface will have the relative value of 1, and all other points will have values smaller than 1. For very loose relative tolerance of 10^{−2} Constrained ML was inaccurate. Between 10^{−3} and 10^{−6} Constrained ML converged better than the EM algorithm, and the two methods performed equally well for 10^{−7} and smaller. The I_{F} index in Fig. 6 measures the differences between the estimated and true haplotype frequencies, with a value of 1 referring to the scenario when the two are identical. Figure 6 suggests that the two methods behaved similarly for tighter tolerance (10^{−6} and beyond). The I_{F} for Constrained ML was also more predictable and stable, while there was greater variability for the EM algorithm.
To demonstrate the use of Constrained ML and the relevant LRT we analysed a published dataset on APOE [30]. The dataset consists of 9 loci from 80 human individuals whose haplotypes were experimentally identified. We masked the haplotype phase (i.e. as if we obtained their genotypes only) and tried to estimate the haplotype counts for all 36 pairs of loci, and when required, to conduct a LRT to test for the absence of a particular haplotype.
The complete results are presented in Additional file 1, with selected summary in Table 4. For comparison, the results from CubeX and MIDAS (representing the EM algorithm) are also presented [24]. MIDAS was able to correctly estimate the haplotype counts for 28 out of 36 pairs of loci. CubeX provided unique and correct estimates for 26 cases. Additionally in 5 other cases, CubeX provided two solutions, one of which was the correct one. Constrained ML also gave unique and correct haplotype estimates for the same 26 cases as CubeX. LRT were run on the 5 remaining cases that potentially have only 3 haplotypes. LRT made the correct decision on 4 cases (loci pair 1–5, 4–8, 5–7, and 5–9. See Table 4), but falsely rejected the correct answer for loci pair 1–9. To summarise, Constrained ML and LRT jointly provided correct haplotype count estimates for 30 cases.
Discussion
Effect of finite sample size
The theoretical derivation and computer simulations both suggest the observed \( E\left[{r}^2\right]=\frac{1}{s}+\left(1\frac{1}{s}\right){r}_{true}^2 \), where s = n sampled diploid individuals for unphased data, and s = 2n for haplotypic data. This is different from most existing formulae, which have the form of \( E\left[{r}^2\right]={r}_{true}^2+ correction\ factor \) [7, 27]. The explanation is that most previous derivations were based on the null distribution of the χ^{2} statistic for association [30], or equivalently assuming \( {r}_{true}^2=0 \) [29]. These corrections become less reliable when \( {r}_{true}^2>0 \). For the limiting case of completely linked loci, our sample size correction (Eqs. 4 and 6) guarantees that the implied \( \hat{r_{true}^2} \) is also 1, while the existing form overcorrects for sample size [16]. Further, Tables 2 and 3 show that the slope estimates are significantly different from 1, and thus the term (1 − 1/s) should be retained. Although the difference can sometimes be small, it is conceptually important that all the squared correlation coefficients must be bounded between 0 and 1. As pointed out by Sved et al. [7], the exact expression for sample size corrections may contain o(s^{−2}) terms, but are shown to be negligible here.
Empirical variance of r ^{2}
We pointed out earlier that most existing claims about the variance of r^{2} are based on \( {r}_{true}^2=0 \) and do not apply to a wider range of \( {r}_{true}^2 \) values. The second simulation investigated empirically the variance of the observed \( {r}_{phased}^2 \) and \( {r}_{unphased}^2 \) against their expectations and under various sample sizes. The variance plots in Figures 3 and 4 look like parabolas, in which the variances first increase and peak at E[r^{2}] = 0.5 and then come down for larger values. Empirically speaking, the variances go like 2E[r^{2}](1 − E[r^{2}])/n for most \( {r}_{true}^2>0 \) as modelled by the red lines in the plots. It is expected that the two marginal frequencies may play a role in the variance, but the exact expression is too complicated to be evaluated. This approximate formula provides a quick and direct way to approximate the variances and subsequently the confidence intervals of r^{2}. In addition, this formula helps predict the gain in precision by phasing the data or by increasing the sample size.
Estimating haplotype frequencies from unphased data
This work proposes a new routine, Constrained ML, to estimate haplotype frequencies from genotypes under HWE. In theory, Constrained ML, EM, and CubeX all aim to maximise the same Hill 1974 loglikelihood function and hence should be identical. In reality they may produce inconsistent results because of the different ways of maximisation. CubeX estimates the haplotype frequencies by solving the cubic equation for the twolocus twoallele case. It may return two sets of answers which are both real and biologically feasible, and this is particularly common when the sample size is small, or when the loci depart from HWE [5]. Another explanation of having multiple answers is that being a root of the cubic equation is only a necessary condition for maximising the likelihood. It is unfortunate that CubeX does not provide any indications on which set of haplotype frequencies we should accept, other than using our “prior knowledge of the LD structure” [5]. For the more general case with multiple alleles, the EM algorithm was introduced because direct maximisation was not always available. It experiences other computing challenges, for example, if p_{AB}p_{ab} + p_{Ab}p_{aB} = 0 in any intermediate Estep, the computation halts as division by zero is not permitted. The method is also known to be sensitive to initial conditions, and often to converge to a local rather than the global maximum [21]. With our new method, Constrained ML, the same loglikelihood can be directly maximised within the transformed feasible region. Optimisation within this boxlike constraint is a wellstudied problem with many routines available across platforms and programming languages, such as LBFGSB used in this study. The last simulation compared the convergence between EM and Constrained ML under different sample sizes and stopping criterion. The two methods performed similarly for very tight tolerance for a simple twoallele twolocus setting. A looser relative tolerance is normally implemented in real applications to balance between accuracy and computing time, and in this case Constrained ML produced better convergence than the EM algorithm. Additionally, like the EM algorithm, Constrained ML can handle loci with multiple alleles, by transforming haplotype frequencies into higherdimensional “cubes” (Additional file 2). The idea of the LRT can also be extended to multiallelic cases to test for the absence of any particular haplotypes. Further comparisons of these methods, especially under more challenging conditions, would be welcome. The APOE dataset, with reasonable sample size and often extreme haplotype counts, illustrates the use of Constrained ML and the associated LRT in real applications. The EMbased MIDAS, which provides one estimate a time, got the least correct cases. Although CubeX apparently gave more correct haplotype count estimates, there were 5 ambiguous cases with two solutions. For the 5 loci pairs that potentially have only 3 haplotypes instead of 4, LRT correctly identified the answer in 4 cases, but marginally rejected the correct answer for the loci pair 1–9 at 5% α level (LRT statistic = 1.84, pvalue = 0.17). We should also point out estimation errors were rare but unavoidable, and this is exactly why phased data is preferred. Nonetheless, LRT provides a valuable metric to help decide which set of answer we should accept.
There exist some other methods, such as the Burrows’ method [3, 7], to estimate r^{2} without assuming HWE, but they are beyond the scope of this work. Burrows’ Δ measures the socalled composite linkage disequilibrium from nongametic frequencies, which takes the departure from HWE into account. One can further break down the nine genotypes into eight parameters to include the singlelocus disequilibria and higherorder disequilibria [31]. On the downside, they are not as efficient as the likelihood estimators if the HWE assumption is valid.
Conclusions
This work generalised the estimation of r^{2} to all levels of LD, and for both phased and unphased data. New formulae were provided to correct for finite sample size during r^{2} point estimation. We approximated the empirical variance of r^{2} based on computer simulations. Lastly, a new framework called Constrained ML was suggested to directly estimate haplotype frequencies from diploid genotypic data under HWE. Most inferences utilising LD information will benefit from our new findings.
Methods
Computer simulation 1: effect of finite sample size
Simulations were run to verify whether the effect of finite sample size on r^{2} estimates is the same as described by Eqs. 3 and 5. First, to ensure most haplotype combinations are covered, a set of true haplotype frequencies was drawn randomly from the uniform Dirichlet(1, 1, 1, 1) distribution, which was used to calculate the underlying \( {r}_{true}^2 \). Second, haplotypes were sampled with a known sample size via the multinomial distribution, and the observed \( {r}_{phased}^2 \) were calculated via Eq. 1. For unphased case, two haplotypes were paired into one genotype. Haplotype frequencies and \( {r}_{unphased}^2 \) were estimated through Constrained ML. These two steps were repeated for 10,000 times per sample size, and further repeated for sample sizes of 20, 40, 60, and 80 diploid individuals. The observed \( {r}_{phased}^2 \) and \( {r}_{unphased}^2 \) were plotted against \( {r}_{true}^2 \) for each sample size.
Computer simulation 2: empirical variance of r ^{2}
Another set of simulations was run to explore the empirical variance of \( {r}_{phased}^2 \) (or \( {r}_{unphased}^2 \)). The procedure was very similar to the first simulation. For each \( {r}_{true}^2 \), 500 additional samples were simulated to calculate the variance of the observed \( {r}_{phased}^2 \) (or \( {r}_{unphased}^2 \)). This was repeated for 10,000 different sets of true haplotype frequencies per sample size, and further repeated for sample sizes of 20, 40, 60, and 80 diploid individuals.
Computer simulation 3: estimating haplotype frequencies from unphased data
The final set of simulations studied the convergence of Constrained ML and the EM algorithm against different stopping criterion and sample sizes. We measured convergence by two metrics, the relative loglikelihood [32], and the I_{F} index [21]. For each simulation, true haplotype frequencies were drawn from the Dirichlet(1, 1, 1, 1) distribution, which were then used to sample the genotypes with a known sample size. Two haplotypes were randomly paired up to form a genotype. All initially fixed/extinct loci were discarded and resampled. Then the loglikelihood function (Eq. 5) was maximised via Constrained ML and the EM algorithm. In particular, Constrained ML was optimised by the LBFGSB routine within the optim() function in R [33, 34]. To avoid false convergence under a specific initial condition, 100 initial conditions were applied to each set of genotypes and the estimate with the largest maximised loglikelihood was used. The whole simulation was repeated 500 times, and further repeated for several different sample sizes and stopping criterion. We used relative tolerance as our stopping criteria, ranging between 10^{−2} and 10^{−9}.
Availability of data and materials
The raw APOE dataset can be found in the original publication [30]. Computer simulations and mathematical derivations are replicable per instructed in the main text. All computer codes are available upon request. An online program to implement Constrained ML can be found at https://haplotype.shinyapps.io/constrainedml/.
Abbreviations
 CI:

Confidence interval
 EM:

ExpectationMaximisation
 HWE:

HardyWeinberg Equilibrium
 LD:

Linkage disequilibrium
 LRT:

Likelihoodratio test
 MLE:

MaximumLikelihood estimator/estimate
References
Sved JA, Hill WG. One hundred years of linkage disequilibrium. Genetics. 2018;209(3):629–36.
Hill WG. Estimation of linkage disequilibrium in randomly mating populations. Heredity (Edinb). 1974;33(2):229–39.
Weir BS. Inferences about linkage disequilibrium. Biometrics. 1979;35(1):235–54.
Lewontin RC. On measures of gametic disequilibrium. Genetics. 1988;120(3):849–52.
Gaunt TR, Rodríguez S, Day IN. Cubic exact solutions for the estimation of pairwise haplotype frequencies: implications for linkage disequilibrium analyses and a web tool’CubeX’. BMC Bioinformatics. 2007;8(1):1.
Rogers AR, Huff C. Linkage disequilibrium between loci with unknown phase. Genetics. 2009;182(3):839–44.
Sved JA, Cameron EC, Gilchrist AS. Estimating effective population size from linkage disequilibrium between unlinked loci: theory and application to fruit fly outbreak populations. PLoS One. 2013;8(7):e69078.
Hill WG, Robertson A. Linkage disequilibrium in finite populations. Theor Appl Genet. 1968;38(6):226–31.
Ohta T, Kimura M. Linkage disequilibrium at steady state determined by random genetic drift and recurrent mutation. Genetics. 1969;63(1):229.
Hudson R. The sampling distribution of linkage disequilibrium under an infinite allele model without selection. Genetics. 1985;109(3):611–31.
Tenesa A, Navarro P, Hayes BJ, Duffy DL, Clarke GM, Goddard ME, et al. Recent human effective population size estimated from linkage disequilibrium. Genome Res. 2007;17(4):520–6.
Lewontin RC. The interaction of selection and linkage. I. General considerations; heterotic models. Genetics. 1964;49(1):49–67.
Stephan W, Song YS, Langley CH. The hitchhiking effect on linkage disequilibrium between linked neutral loci. Genetics. 2006;172(4):2647–63.
Nei M, Li WH. Linkage disequilibrium in subdivided populations. Genetics. 1973;75(1):213–9.
Vitalis R, Couvet D. Estimation of effective population size and migration rate from one and twolocus identity measures. Genetics. 2001;157(2):911–25.
Sved JA, McRae AF, Visscher PM. Divergence between human populations estimated from linkage disequilibrium. Am J Hum Genet. 2008;83(6):737–43.
McEvoy BP, Powell JE, Goddard ME, Visscher PM. Human population dispersal “out of Africa” estimated from linkage disequilibrium and allele frequencies of SNPs. Genome Res. 2011;21(6):821–9.
Hartl DL, Clark AG. Principles of population genetics; 1998.
Charlesworth B, Charlesworth D. Elements of evolutionary genetics. Colorado: Roberts and Company Publishers; 2010.
Thorisson GA, Smith AV, Krishnan L, Stein LD. The international HapMap project web site. Genome Res. 2005;15(11):1592–3.
Excoffier L, Slatkin M. Maximumlikelihood estimation of molecular haplotype frequencies in a diploid population. Mol Biol Evol. 1995;12(5):921–7.
Zhao JH. 2LD, GENECOUNTING and HAP: computer programs for linkage disequilibrium analysis. Bioinformatics. 2004;20(8):1325–6.
Barrett JC, Fry B, Maller J, Daly MJ. Haploview: analysis and visualization of LD and haplotype maps. Bioinformatics. 2005;21(2):263–5.
Gaunt TR, Rodriguez S, Zapata C, Day IN. MIDAS: software for analysis and visualisation of interallelic disequilibrium between multiallelic markers. BMC Bioinformatics. 2006;7(1):227.
Sheskin DJ. Handbook of parametric and nonparametric statistical procedures. Florida: CRC Press; 2003.
Sved J, Feldman M. Correlation and probability methods for one and 2 loci. Theor Popul Biol. 1973;4(1):129–32.
Hill WG. Estimation of effective populationsize from data on linkage disequilibrium. Genet Res. 1981;38(3):209–16.
Warrens MJ. On similarity coefficients for 2× 2 tables and correction for chance. Psychometrika. 2008;73(3):487.
Haldane J. The association of characters as a result of inbreeding and linkage. Ann Eugenics. 1949;15(1):15–23.
Orzack SH, Gusfield D, Olson J, Nesbitt S, Subrahmanyan L, Stanton VP. Analysis and exploration of the use of rulebased algorithms and consensus methods for the inferral of haplotypes. Genetics. 2003;165(2):915–28.
Weir B. Linkage disequilibrium and association mapping. Annu Rev Genomics Hum Genet. 2008;9:129–42.
Fallin D, Schork NJ. Accuracy of haplotype frequency estimation for biallelic loci, via the expectationmaximization algorithm for unphased diploid genotype data. Am J Hum Genet. 2000;67(4):947–59.
Byrd R, Lu P, Nocedal J, Zhu C. A limited memory algorithm for bound constrained optimization. SIAM J Sci Comput. 1995;16(5):1190–208.
R Core Team. R: a language and environment for statistical computing. Vienna: R Foundation for Statistical Computing; 2013.
Acknowledgements
We thank S.M. O’Loughlin for useful discussions.
Funding
Authors received funding from Target Malaria, which receives core funding from the Bill & Melinda Gates Foundation and from the Open Philanthropy Project Fund, an advised fund of Silicon Valley Community Foundation. These funding bodies have had no direct role in the design of the study nor in the collection, analysis, interpretation of data and in the writing of the manuscript.
Author information
Authors and Affiliations
Contributions
TYJH & AB conducted the research. TYJH performed computer analysis. TYJH & AB wrote the manuscript. Both authors have read and approved the manuscript.
Corresponding author
Ethics declarations
Ethics approval and consent to participate
Not applicable.
Consent for publication
Not applicable.
Competing interests
The authors declare that they have no competing interests.
Additional information
Publisher’s Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary information
Additional file 1.
Complete results from the analysis of APOE dataset.
Additional file 2.
Generalisation of Constrained ML to multiallelic loci.
Rights and permissions
Open Access This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The Creative Commons Public Domain Dedication waiver (http://creativecommons.org/publicdomain/zero/1.0/) applies to the data made available in this article, unless otherwise stated.
About this article
Cite this article
Hui, TY.J., Burt, A. Estimating linkage disequilibrium from genotypes under HardyWeinberg equilibrium. BMC Genet 21, 21 (2020). https://doi.org/10.1186/s1286302008189
Received:
Accepted:
Published:
DOI: https://doi.org/10.1186/s1286302008189