Darwin Help

Back to Index

PamToCodonPam

Function PamToCodonPam - Convert PAM to CodonPAM.

Calling Sequence  PamToCodonPam(lnM1,CF,Pam)
Parameters
NameTypeDescription

lnM1 matrix(numeric,64)Logarithm of a 1-PAM codon mutation matrix.
CF array(numeric,64)Codon frequencies
Pam numericPAM distance to be converted
Return Type  numeric
Synopsis Converts PAM to CodonPAM. This conversion depends on the amount of synonymous mutations for a species or set of species, so the logarithm of the 1-CodonPAM matrix and the codon frequencies are required as arguments. The conversion is done by inverting the CodonPamtoPam function using a Brent's search.
Examples
> PamToCodonPam(CodonLogPAM1,CF,50);
109.2499
See also CodonPamToPam,   CreateCodonMatrices