Standard codon models: the optional genetic_code argument describes the genetic code. If it is not given, the one related with the alphabet is used. The several values available are described below.
The next codon models also take as argument a frequencies option specifying the equilibrium frequencies of the model. Any frequencies description can be used here, but the syntax also supports options similar to the ones used in the PAML software:
An optional option mgmtStopCodon can be set to define how the frequencies computed to stop codons in the case of F1X4 et F3X4 are distributed to other codons.
The same words can be used to specify root frequencies for codon models, in the case of non stationarity.
It is also possible to setup more specific models, by specifying a nucleotide model for each position. Model parameters names then take the form of <codon model name>.<position set>_<position model name>.<position specific parameter name>.
In the following models, the arguments model and model{i} are for descriptions of models on bases.
Each single site model is normalized and the substitution rates between codons that differ on more than one letter are null.
The generator is first computed with these models and parameters on the whole triplet alphabet, and then the substitution rates to and from stop codons are set to zero and the generator is normalized with this modification.
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=CodonRate(model=T92)
builds a model on codons, such all sites follow the same T92 model. The parameters names are CodonRate.123_T92.kappa, CodonRate.relrate1, CodonRate.relrate2.
alphabet=Codon(letter=DNA, type=Standard) model=CodonRate(model1=T92, model2=T92, model3=JC69)
builds a model on codons, such that first and second sites follow independent T92 models, and third site follows a JC69 model. Then the parameters names are CodonRate.1_T92.kappa, CodonRate.2_T92.kappa, CodonRate.relrate1, CodonRate.relrate2, and can be initialized as is:
model=CodonRate(model1=T92(theta=0.5, kappa=2), \ model2=T92(theta=0.4, kappa=2), model3=JC69)
See the
Bio++ description.
Optional argument beta is the ratio between non-synonymous substitution rate and synonymous substitution rate. Default value: 1.
alphabet=Codon(letter=DNA, type=Standard) model=CodonDist(model=T92)
builds a model on codons, such all sites follow the same T92 model. The parameters names are CodonDist.123_T92.kappa and CodonDist.beta.
alphabet=Codon(letter=DNA, type=Standard) model=CodonDist(model1=T92, model2=T92, model3=JC69)
builds a model on codons, such that first and second sites follow independent T92 models, and third site follows a JC69 model. Then the parameters names are CodonDist.1_T92.kappa, CodonDist.2_T92.kappa, CodonDist.beta.
See the
Bio++ description.
Substitution model on codons with position specific evolution rates, where the sustitution rates are multiplied by the frequency of the target codon in the given frequencies set.
This model should be used with nucleotidic models which equilibrium distribution is fixed, ans does not depend on the parameters. Otherwise there may be problems of identifiability of the parameters.
The multiplicative distribution of the model is described by the frequencies argument. See the description of the Frequencies Set below.
Each single site model is normalized and the substitution rates between codons 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=CodonRateFreq(frequencies=Full())
has parameters CodonRateFreq.123_K80.kappa, CodonRateFreq.Full.theta_1, ..., CodonRateFreq.Full.theta_60, CodonRateFreq.relrate1, CodonRateFreq.relrate2.
See the
Bio++ description.
This model should be used with nucleotidic models which equilibrium distribution is fixed, ans does not depend on the parameters. Otherwise there may be problems of identifiability of the parameters.
The multiplicative distribution of the model is described by the frequencies argument. See the description of the Frequencies Set below.
Optional argument beta is the ratio between non-synonymous substitution rate and synonymous substitution rate. Default value: 1.
alphabet=Codon(letter=DNA, type=Standard) model=CodonDistFreq(frequencies=Full())
has parameters CodonDistFreq.012_T92.kappa, CodonDistFreq.Full.theta_1, ..., CodonDistFreq.Full.theta_60, CodonDistFreq.beta.
See the
Bio++ description.
This model should be used with nucleotidic models in which equilibrium distribution is fixed, ans does not depend on the parameters. Otherwise there may be problems of identifiability of the parameters.
The multiplicative distribution of the model is described by the frequencies argument. See the description of the Frequencies Set below.
Optional argument beta is the ratio between non-synonymous substitution rate and synonymous substitution rate. Default value: 1.
See the
Bio++ description.
This model should be used with nucleotidic models in which equilibrium distribution is fixed, ans does not depend on the parameters. Otherwise there may be problems of identifiability of the parameters.
The multiplicative distribution of the model is described by the frequencies and fitness arguments. See the description of the Frequencies Set below.
Optional argument beta is the ratio between non-synonymous substitution rate and synonymous substitution rate. Default value: 1.
See the Bio++ description.