# Difference between revisions of "Genotype Likelihood based Allele Frequency"

(One intermediate revision by the same user not shown) | |||

Line 72: | Line 72: | ||

[[HWEP|Hardy-Weinberg Likelihood Test statistic]] and [[FIC| Inbreeding Coefficient]] | [[HWEP|Hardy-Weinberg Likelihood Test statistic]] and [[FIC| Inbreeding Coefficient]] | ||

+ | |||

+ | === Derivation === | ||

+ | |||

+ | Adrian with much help from Hyun. | ||

=== Implementation === | === Implementation === | ||

This is implemented in [http://genome.sph.umich.edu/wiki/Vt#Estimate vt]. | This is implemented in [http://genome.sph.umich.edu/wiki/Vt#Estimate vt]. | ||

− | |||

− | |||

− | |||

− | |||

=== Maintained by === | === Maintained by === | ||

This page is maintained by [mailto:atks@umich.edu Adrian]. | This page is maintained by [mailto:atks@umich.edu Adrian]. |

## Latest revision as of 15:54, 3 August 2015

### Introduction

Allele frequency is an important statistic in the study of genetic variants. This page details EM algorithms to estimate allele frequencies from genotype likelihoods in NGS data.

### Estimation of Genotype Frequencies without assuming HWE

This is an EM algorithm to estimate the genotype frequencies without assuming HWE. The posterior probability of the genotype given the reads for individual k ( ) for the th iteration is given by:

where denotes the genotype composed of alleles and . indexes the individuals from to . The initial genotype probability is given by:

where is the number of alleles. is the number of genotypes possible for alleles. So we are simply starting with equal frequency estimate guesses for each genotype.

The E step equates the expectation of the genotype for individual k as:

The M step estimates the genotype frequency using the individual expected genotype counts:

This is repeated till the appropriate convergence criteria is achieved.

### Estimation of Genotype Frequencies assuming HWE

In order to estimate allele frequencies under HWE assumption, the E step estimates the individual expected posterior allele count for each individual.

In the M step, the posterior genotype frequencies are derived from the computed genotype allele frequencies obtained in the E step assuming HWE.

This is repeated till the appropriate convergence criteria is achieved.

### Used in

Hardy-Weinberg Likelihood Test statistic and Inbreeding Coefficient

### Derivation

Adrian with much help from Hyun.

### Implementation

This is implemented in vt.

### Maintained by

This page is maintained by Adrian.