40 #ifndef _ABSTRACTCODONSUBSTITUTIONMODEL_H_ 41 #define _ABSTRACTCODONSUBSTITUTIONMODEL_H_ 43 #include "../AbstractWordSubstitutionModel.h" 44 #include "../Nucleotide/NucleotideSubstitutionModel.h" 48 #include <Bpp/Seq/GeneticCode/GeneticCode.h> 99 const GeneticCode* gCode,
101 const std::string& st,
102 bool paramRates =
false);
119 const GeneticCode* gCode,
123 const std::string& st,
124 bool paramRates =
false);
129 AbstractParameterAliasable(model),
137 AbstractParameterAliasable::operator=(model);
145 #ifndef NO_VIRTUAL_COV AbstractCodonSubstitutionModel(const GeneticCode *gCode, NucleotideSubstitutionModel *pmod, const std::string &st, bool paramRates=false)
Build a new AbstractCodonSubstitutionModel object from a pointer to a NucleotideSubstitutionModel.
virtual ~AbstractCodonSubstitutionModel()
const GeneticCode * getGeneticCode() const
AbstractSubstitutionModel & operator=(const AbstractSubstitutionModel &model)
bool hasParametrizedRates_
boolean for the parametrization of the position relative rates. Default : false.
AbstractCodonSubstitutionModel & operator=(const AbstractCodonSubstitutionModel &model)
void updateMatrices()
Diagonalize the matrix, and fill the eigenValues_, iEigenValues_, leftEigenVectors_ and rightEigenVe...
Abstract Basal class for words of substitution models.
AbstractWordSubstitutionModel & operator=(const AbstractWordSubstitutionModel &)
Specialisation interface for nucleotide substitution model.
AbstractCodonSubstitutionModel * clone() const =0
void completeMatrices()
Method inherited from AbstractWordSubstitutionModel.
Abstract class for codon models.
Abstract class for substitution models on codons.
const GeneticCode * gCode_
AbstractCodonSubstitutionModel(const AbstractCodonSubstitutionModel &model)
virtual double getCodonsMulRate(size_t i, size_t j) const
Method inherited from CodonSubstitutionModel.