HWEP: Difference between revisions

From Genome Analysis Wiki
Jump to navigationJump to search
Atks (talk | contribs)
No edit summary
Atks (talk | contribs)
Line 28: Line 28:
\end{align}
\end{align}
</math>
</math>
=== Derivation ===
Adrian with much help from Hyun.


=== Maintained by  ===
=== Maintained by  ===


This page is maintained by  [mailto:atks@umich.edu Adrian], formulation by Hyun.
This page is maintained by  [mailto:atks@umich.edu Adrian], formulation by Hyun.

Revision as of 13:34, 11 April 2013

Formulation

Hardy Weinberg equilibrium is expected in a panmictic population. The following formulation is a likelihood ratio test statistic that incorporates genotype uncertainty via genotype likelihoods. P(Rk|p) is the probability of observing the reads for individual k assuming that a locus observes HWE. P(Rk|g) is the probability of observing the reads for individual k assuming that a locus does not observe HWE. Gi,j denotes the genotype composed of alleles i and j . k indexes the individuals from 1 to N . P(Rk|Gi,j) is the genotype likelihood. P(Gi,j|p) and P(Gi,j|g) are the genotype frequencies estimated with and without HWE assumption respectively.


L(R|g)=∏kP(Rk|p)∏kP(Rk|g)=∏k∑i,jP(Rk,Gi,j|p)∏k∑i,jP(Rk,Gi,j|g)=∏k∑i,jP(Rk|Gi,j)P(Gi,j|p)∏k∑i,jP(Rk|Gi,j)P(Gi,j|g)


The likelihood ratio test statistic is as follows with v degrees of freedom where n is the number of alleles.

−2logL(R|g)∼Xv2,v=n(n−1)2

Derivation

Adrian with much help from Hyun.

Maintained by

This page is maintained by Adrian, formulation by Hyun.