Entering edit mode
7.8 years ago
alec_djinn
▴
390
I have a list of allelic frequencies estimated by RFLP. I am looking for a Python implementation of the Clark's algo or the EM algo I can use to determine the haplotype frequencies. Can anyone point me out to some good resource?
The identation of the code looks fine, but does anyone know a way to post the whole code?
Put your code on Github and include a link for the public Gist. Biostars understands the links and will reproduce the code inline.
Done! thank you very much!
It doesn't look like the Clark's or the EM algo. Can you please post the input files? In general, however, I don't need to check the reads and the bases of a sequence. I expect to input a list of allelic frequencies and to get the haplotype frequencies as output.
sure, here you have a link to the files in gist
I am not an expert on the EM- algorithm, but I think that you could modify the script to do what you want. The part of the EM algorithm begins at line 51, with the initial guess. and then it performs the Expectation and maximization steps.
Unfortunately, this is not what I am looking for.