5 #ifndef BPP_PHYL_MODEL_CODON_SENCA_H
6 #define BPP_PHYL_MODEL_CODON_SENCA_H
55 std::shared_ptr<const GeneticCode> gCode,
56 std::unique_ptr<NucleotideSubstitutionModelInterface> pmod,
57 std::unique_ptr<FrequencySetInterface> pfit,
58 std::shared_ptr<const AlphabetIndex2> pdist =
nullptr);
61 std::shared_ptr<const GeneticCode> gCode,
62 std::unique_ptr<NucleotideSubstitutionModelInterface> pmod1,
63 std::unique_ptr<NucleotideSubstitutionModelInterface> pmod2,
64 std::unique_ptr<NucleotideSubstitutionModelInterface> pmod3,
65 std::unique_ptr<FrequencySetInterface> pfit,
66 std::shared_ptr<const AlphabetIndex2> pdist =
nullptr);
72 return new SENCA(*
this);
99 void setFreq(std::map<int, double>& frequencies)
override;
Abstract class for modelling of non-synonymous and synonymous substitution rates in codon models.
Abstract class for modelling of ratios of substitution rates between codons, whatever they are synony...
bool hasCodonFrequencySet() const override
const CodonFrequencySetInterface & codonFrequencySet() const override
Abstract class for substitution models on codons.
Parametrize a set of state frequencies for codons.
Class for non-synonymous and synonymous substitution models on codons with parameterized equilibrium ...
void setNamespace(const std::string &) override
bool hasCodonFrequencySet() const override
SENCA * clone() const override
void setFreq(std::map< int, double > &frequencies) override
set the fitness of the model from given frequencies, such that the equilibrium frequencies of the mod...
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...
const CodonFrequencySetInterface & codonFrequencySet() const override
SENCA(std::shared_ptr< const GeneticCode > gCode, std::unique_ptr< NucleotideSubstitutionModelInterface > pmod, std::unique_ptr< FrequencySetInterface > pfit, std::shared_ptr< const AlphabetIndex2 > pdist=nullptr)
void fireParameterChanged(const ParameterList ¶meterlist) override
std::string getName() const override
Get the name of the model.
Interface for all substitution models.
Defines the basic types of data flow nodes.