If the argument is model, the length of the words in the substitution model is determined by the length of the words in the alphabet, and the same single site model is used (ie the parameters are shared between all positions).
If the arguments are model1, ..., model{n}, the length of the words in the alphabet must be n, and each single site model stands for a single-site substitution model. In that case, all single site models parameters are position dependent.
Each single site model is normalized and the substitution rates between words that differ on more than one letter are null.
Arguments relrate{i} stands for the relative substitution rates of the sites. Default: relrate{i}=1/{n-i+1}, such that the rate of each site is 1/n.
alphabet=Word(letter=DNA,length=4) model=Word(model=T92())
builds a model on 4 bases words, such all sites follow the same T92 model. The parameters names are Word.1234_T92.kappa, Word.relrate1, Word.relrate2, Word.relrate3.
alphabet=Word(letter=DNA,length=4) model=Word(model1=T92(), model2=T92(), model3=JC69(), \ model4=HKY85())
builds a model on 4 bases words, such first and second sites follow independent T92 models, third site follows a JC69 model, and fourth site follows a HKY85 model. Then the parameters names are Word.1_T92.kappa, Word.2_T92.kappa, Word.4_HKY85.kappa, Word.4_HKY85.theta, Word.4_HKY85.theta1, Word.4_HKY85.theta2, Word.relrate1, Word.relrate2, Word.relrate3.
See the
Bio++ description.
If the argument is model, the same single site model is used on all positions (ie the parameters are shared between all positions).
If the arguments are model1, model2, model3, each single site model stands for a single-site substitution model. In that case, all single site models parameters are position dependent.
Each single site model is normalized and the substitution rates between triplets that differ on more than one letter are null.
Arguments relrate{i} stands for the relative substitution rates of the sites. Default: relrate{i}=1/{4-i}, such that the rate of each site is 1/3.
alphabet=Codon(letter=DNA, type=Standard) model=Triplet(model=T92)
builds a model on codons, such all sites follow the same T92 model. The parameters names are Triplet.123_T92.kappa, Triplet.relrate1, Triplet.relrate2.
alphabet=Word(letter=DNA, length=3) model=Triplet(model1=T92, model2=T92, model3=JC69)
builds a model on 3 bases words, such first and second sites follow independent T92 models, and third site follows a JC69 model. Then the parameters names are Triplet.1_T92.kappa, Triplet.2_T92.kappa, Triplet.relrate1, Triplet.relrate2.
See the
Bio++ description.