Adding feature - customization of nucleotide substitution model in YN98 class

15 views
Skip to first unread message

Keren Halabi

unread,
Jan 19, 2020, 10:15:42 AM1/19/20
to Bio++ Usage Help Forum
Hi dear team,

Currently, the YN98  class which is used in most site models in Bio++ uses the K80 model to model nucleotide substitutions. I was wondering if a feature could be added in the form of a parameter given to its constructor based on which the nucleotide model would be decided. This would allow to create a wider variety of codon models. I can implement this feature, if you agree.

Many thanks!
Keren

Laurent Guéguen

unread,
Jan 20, 2020, 10:05:54 AM1/20/20
to Bio++ Usage Help Forum
Hi Keren,

this is already possible, through the class   CodonDistanceFrequenciesSubstitutionModel.
This codon model is similar to YN98 model, but can take any nucl model, and even 3 different
nucl models, one per position.

In bppml, it is called like:

model=CodonDistFreq(model=JC69(), frequencies=F3X4())

Beware that if the nucleotide model has a non-uniform equilibrium distribution,
there will be indentifiability issues with the parameterized frequencies.

Cheers,
Laurent


Keren Halabi

unread,
Jan 21, 2020, 7:57:24 AM1/21/20
to Bio++ Usage Help Forum
Thank you, Laurent!

This is exactly what I needed.

Cheers,
Keren
Reply all
Reply to author
Forward
0 new messages