Testing Hardy‐Weinberg Equilibrium

Testing Hardy‐Weinberg Equilibrium

reference:Allele Frequencies and Hardy‐Weinberg Equilibrium,Summer Institute in Statistical Genetics 2013,Module 8,Topic 2,66

Why should we test HWE locus?

  • When a locus is not in HWE, then this suggests one or more of the Hardy-Weinberg assumptions is false.

  • Departure from HWE has been used to infer the existence of natural selection, argue for the existence of assortative(non‐random) mating, and infer genotyping errors.

Two popular way to test HWE

  1. Chi‐Square test
  2. Exact test

Chi-square test

Testing procedures:

Compares observed genotype counts with the values expected under Hardy‐Weinberg for a locus with two alleles, in which p=p(A)=(n_{Aa}+2n_{AA})/2n

<img src="C:\Users\pro\AppData\Roaming\Typora\typora-user-images\image-20210118210834145.png" alt="image-20210118210834145" style="zoom:50%;" />

the expected is calculated from:

'A'(p) 'a'(q) TOTAL
'A'(p) AA(p^{2}) Aa(pq)
'a'(q) Aa(pq) aa(q^{2})
n

test statistic:

X^{2}=\sum_{genotypes}\frac{(observed count-expected count)^2}{expected count}=n(\frac{4n_{AA}n_{aa}-n^{2}_{Aa}}{2n_{AA}+n_{Aa}(2n_{aa}+n_{Aa})})^{2}\sim \chi^{2}_{1}

df=(2-1)\times (2-1)=1

When to use?

  • the expected count should be at least 5 in every cell.
  • If allele frequencies are low, and/or sample size is small, and/or there are many alleles at a locus, this may be a problem.

Exact test

The Hardy‐Weinberg exact test is based on calculating probabilities P(genotype counts | allele counts) under HWE.

P(n_{Aa}|n_{A},n_{a},HWE)=\frac{n!}{n_{AA}!n_{Aa}!n_{aa}!}\frac{2^{n_{Aa}}n_{A}!n_{a}!}{(2n)!}

To get the p‐value, sum the probabilities of all configurations with probability equal to or less that the observed configuration.

Compare two tests

  • The exact test is always conservative; the chi-square test can be either conservative or anticonservative.
  • Exact Test should be preferred: smaller sample sizes and/or multiallelic loci, since the chi-square test is prima facie not valid in these cases
    (rule of thumb: must expect at least 5 in each cell)
  • The coarseness of Exact Test means it is conservative.
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 古代杂交事件为慈鲷科鱼类的适应辐射提供动力 Ancient hybridization fuels rapid c...
    智取鸟氨酸阅读 4,731评论 0 5
  • GATK(全称The Genome Analysis Toolkit)是Broad Institute开发的用于二...
    Greatji阅读 34,277评论 0 18
  • 久违的晴天,家长会。 家长大会开好到教室时,离放学已经没多少时间了。班主任说已经安排了三个家长分享经验。 放学铃声...
    飘雪儿5阅读 7,573评论 16 22
  • 今天感恩节哎,感谢一直在我身边的亲朋好友。感恩相遇!感恩不离不弃。 中午开了第一次的党会,身份的转变要...
    迷月闪星情阅读 10,613评论 0 11
  • 可爱进取,孤独成精。努力飞翔,天堂翱翔。战争美好,孤独进取。胆大飞翔,成就辉煌。努力进取,遥望,和谐家园。可爱游走...
    赵原野阅读 2,778评论 1 1