[Seqinr-forum] kaks calculation problem

Trevor Krabbenhoft krabbent.j at gmail.com
Wed Nov 21 20:24:37 CET 2012


Hello,

I am looking for clarification on how Ka and Ks are calculated in the kaks
function.  If I calculate by hand using formulas from Li 1993, i.e.:

Ka = (Ao + (LoBo + L2B2))/(Lo + L2)

Ks = (L2A2 + L4A4)/(L2 + L4) + B4

I obtain different answers than if I pull out ka and ks using $ka and $ks

e.g.,

test.k<-kaks(myalignment)
test.k$ka        #ka is different here than what I calculate by hand using
$A0, $L0, $B0, etc.

#The details are buried in the kaks function in C - is there a way to 'see'
how it is calculating these?  Which should I use if I want to follow Li's
method?

#Thank you for any insight.

#Trevor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/seqinr-forum/attachments/20121121/8ece5749/attachment.html>


More information about the Seqinr-forum mailing list