omega value from N & S counts

28 views
Skip to first unread message

Giap Nguyen

unread,
Aug 31, 2012, 6:42:29 AM8/31/12
to testnh-help-forum
Dear Dr. Julien Yann Dutheil
 
I found you posted an answer on omega approximation, using R
 
library(ape)
tree.S<-read.phylo("countsS.tree")
tree.N<-read.phylo("countsN.tree")
tree.dNdS<-tree.S
tree.dNdS$edge.length<-tree.N$edge.length / (3 * tree.S$edge.length)
write.phylo(tree.dNdS, file="dnds.tree")
 
I tried on MantellidFrog data, but again, I am afraid I can not reproduce the value as it in MBE paper. In the above command, would you please tell me what does "tree.dNdS<-tree.S" mean?
And would you please tell me (for sure) which one of the two "CountsTree1.dnd" and "CountsTree2.dnd" is synonymous count and nonsynonymous count?
 
Thank you very much!
Best regards
Giap Nguyen

Julien Yann Dutheil

unread,
Sep 2, 2012, 3:37:35 PM9/2/12
to testnh-h...@googlegroups.com
Hi,

In this R script, I simply copy the tree.S into tree.dNdS, and then
change the branch lengths to the ratio instead of the S value. tree.S
and tree.N have the same topology, and branches are in the same order,
that's why it is safe to replace the branch lengths by this way.
For the trees, 1 is synonymous, 2 is nonsynonymous (it has smaller
values, typically).
Which stage cannot you reproduce? Are you rerunning the example
programs from the package and find different partitions or omega
values???

J.
> --
>
>
>



--
Julien Y. Dutheil, Ph-D
0 (+49) 6421 178 530

§ Max Planck Institute for Terrestrial Microbiology
Department of Organismic Interactions
Marburg -- GERMANY

§ Intitute of Evolutionary Sciences - Montpellier
University of Montpellier 2 -- FRANCE
Reply all
Reply to author
Forward
0 new messages