5 #ifndef BPP_PHYL_MODEL_CODON_ABSTRACTCODONCLUSTERAASUBSTITUTIONMODEL_H
6 #define BPP_PHYL_MODEL_CODON_ABSTRACTCODONCLUSTERAASUBSTITUTIONMODEL_H
75 std::shared_ptr<const GeneticCode> pgencode,
76 const std::string& prefix,
77 const std::vector<uint>& assign = {1, 2, 3, 3, 3, 2, 2, 1, 2, 4, 4, 2, 4, 4, 1, 3, 3, 2, 2, 1});
115 throw NullPointerException(
"AbstractCodonClusterAASubstitutionModel::frequencySet. No associated FrequencySet.");
128 void setFreq(std::map<int, double>& frequencies)
override {}
Abstract class for modelling of non-synonymous and synonymous substitution rates in codon models,...
void fireParameterChanged(const ParameterList ¶meters) override
std::shared_ptr< const GeneticCode > pgencode_
virtual ~AbstractCodonClusterAASubstitutionModel()
AbstractCodonClusterAASubstitutionModel(const AbstractCodonClusterAASubstitutionModel &model)
void setFreq(std::map< int, double > &frequencies) override
bool hasCodonFrequencySet() const override
const CodonFrequencySetInterface & codonFrequencySet() const override
std::shared_ptr< const StateMapInterface > stateMap_
std::vector< uint > assign_
const std::vector< uint > & getAssign() const
AbstractCodonClusterAASubstitutionModel(std::shared_ptr< const GeneticCode > pgencode, const std::string &prefix, const std::vector< uint > &assign={1, 2, 3, 3, 3, 2, 2, 1, 2, 4, 4, 2, 4, 4, 1, 3, 3, 2, 2, 1})
Build a new AbstractCodonClusterAASubstitutionModel object.
double getCodonsMulRate(size_t i, size_t j) const override
Returns the multiplicative rate specific to two codons specified by their number. The respective gene...
AbstractCodonClusterAASubstitutionModel & operator=(const AbstractCodonClusterAASubstitutionModel &model)
AbstractCodonClusterAASubstitutionModel * clone() const override
AbstractParameterAliasable & operator=(const AbstractParameterAliasable &ap)
Parametrize a set of state frequencies for codons.
Interface for codon models.
Defines the basic types of data flow nodes.