The following frequencies distributions are available:
If the argument is frequency, the number of multiplied single site frequencies is the length of the words in the alphabet, and the same single site frequency set is used (ie the parameters are shared between all positions).
If the arguments are frequency1, ..., frequency{n}, the length of the words in the alphabet must be n, and all single site frequency sets are independent. In that case, all single site frequency set parameters are position dependent.
alphabet=Word(letter=DNA,length=4) Word(frequency=GC())
builds a frequency set on 4 bases words, such that all sites frequencies follow the same GC frequency set model. The parameter name is 1234_GC.theta.
alphabet=Word(letter=DNA,length=4) Word(frequency1=GC(),frequency2=GC(),frequency3=Fixed(),\ frequency4=Full())
builds a frequency set on 4 bases words, such first and second sites
follow independent GC frequency sets, third site follows a Fixed
frequency set, and fourth site follows a Full frequency set. Then the
parameters names are 1_GC.theta,
2_GC.theta, 4_Full.theta_1,
4_Full.theta_2, 4_Full.theta_3.
If the argument is frequency, the same single site frequency set is used (ie the parameters are shared between all positions).
If the arguments are frequency1, frequency2, frequency3, all single site frequency sets are independent. In that case, all single site frequency set parameters are position dependent.
alphabet=Codon(letter=DNA, type=Standard) Codon(frequency=GC())
builds a frequency set on codons, such that all sites frequencies follow the same GC frequency set model. The parameter name is 123_GC.theta.
alphabet=Codon(letter=DNA, type=Standard) Codon(frequency1=GC(),frequency2=GC(),frequency3=Fixed())
builds a frequency set on codons, such that first and second sites follow independent GC frequency sets, third site follows a Fixed frequency set. Then the parameters names are 1_GC.theta, 2_GC.theta.
Predefined codon frequencies are available, with a syntax similar to the one used in the PAML software. See above Codon Models section.
All functions accept the following arguments, that take priority over the parameter specification: