ggtree icon indicating copy to clipboard operation
ggtree copied to clipboard

shift in annotated AA position

Open antoine4ucsd opened this issue 7 years ago • 1 comments

Hi All, After importing codeml_tree from codon based alignment, I tried to add annotation of amino acid substitution inferred by joint probabilities with the following command: merged_tree <- ggtree::mask(codeml_tree, "joint_AA_subs", site) While I was able to visualize AA substitution on the tree, it does match the position in my original alignement...

Any thoughts about this apparent frameshift? rplot_aa

mydata.txt

antoine4ucsd avatar Dec 02 '16 19:12 antoine4ucsd

One additional finding while working on this issue. I think the discrepancies in AA positions may be due to the way gaps and amibiguities are handled... If I DO NOT check the 'Clean data' in PAML GUI (bottom right): screen shot 2016-12-05 at 9 39 31 am

Then, read codeml will generate this error message:

screen shot 2016-12-05 at 9 41 39 am

BUT If I check the Clean Data in PAML, I can read the codeml files but the AA positions are not correct anymore... Any way to overcome this issue? Another method to track AA changes in the trees (maybe without PAML?)

thanks a lot!

Attached the codeml files and alignment codeml files IF I do not check the 'clean data' in PAML CL102Brooted-RAclockSE_mlc.txt CL102Brooted-RAclockSE_rst.txt CM102Brefm.phy.txt

antoine4ucsd avatar Dec 05 '16 17:12 antoine4ucsd