This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Haplotype Frequencies And Maximum Likelihood Estimation / Expectation Maximization Algorithm

Does anyone have a numerical example on how the EM algorithm can be used to determine haplotype frequencies from genotype frequencies? I have searched a lot with Google, and I just can't find a single numerical example out there. Thank you.

haplotype

Is the end goal to associate a phenotype to a haplotype? If so, BEAGLE has auxiliary scripts to do this. Do you have phased data? Can you provide a little more background?

Can I close this question as nobody seems to know the answer?

Thanks. That is an example with haplotypes. I am interested in how the haplotype frequencies are calculated from the genotypes with the EM algorithm.

2 answers

tommy.carstensen The expectation is explained on the Linkage Dis-equilibrium wiki page

http://en.wikipedia.org/wiki/Linkage_disequilibrium

Take a close look at the example:

Example: Human Leukocyte Antigen (HLA) alleles

specifically:

and the estimated frequency of haplotype xy is

If this doesn't answer your question I will attempt to explain it in other terms.

Thanks Zev. I will have a look at it this evening. Thank you.

Let us say I have 10 samples in total. At SNP1 I have these genotypes: AA CC AC AA CC AC AA CC AC AA

At SNP2: GG GT GG GG GT TT TT GT GT TT

What is then the LD between these two SNPs?

Which measure of LD do you want? R, R^2, D, D'?

R squared. I can convert if necessary. I am not interested in the answer. That I can get with PLINK or WDIST. I am interested in the calculation. Thank you.

I found a paper pointing me in the direction of an answer to my question: "Linkage Disequilibrium Between Loci With Unknown Phase" http://www.ncbi.nlm.nih.gov/pmc/articles/PMC2710162/pdf/GEN1823839.pdf

Ah, sorry should have sent that to you! I work with Chad Huff. I implemented his method and it works well.

Thanks for all of your replies. Is your code open source and on github by any chance?

Log in to answer this question.