7 #include "../FrequencySet/CodonFrequencySet.h"
8 #include "../Nucleotide/GTR.h"
18 std::shared_ptr<const GeneticCode> gc,
31 shared_ptr<const NucleicAlphabet> nalph = gc->codonAlphabet().getNucleicAlphabet();
36 make_unique<GTR>(nalph)));
40 make_unique<GTR>(nalph),
41 make_unique<GTR>(nalph),
42 make_unique<GTR>(nalph)));
44 string name =
"KCM" + string(oneModel ?
"7" :
"19") +
".";
77 oneModel_(kcm.oneModel_)
void updateMatrices_() override
AbstractBiblioSubstitutionModel & operator=(const AbstractBiblioSubstitutionModel &model)
Partial implementation of the SubstitutionModel interface for models that are set for matching the bi...
std::map< std::string, std::string > mapParNamesFromPmodel_
Tools to make the link between the Parameters of the object and those of pmixmodel_.
ParameterList lParPmodel_
void addParameters_(const ParameterList ¶meters)
Parameter & getParameter_(const std::string &name)
Abstract class of Wrapping model class, where all methods are redirected from model().
The general multiple substitution model for codons, from Zaheri & al, 2014.
std::unique_ptr< KroneckerCodonDistanceSubstitutionModel > pmodel_
KCM & operator=(const KCM &)
KCM(std::shared_ptr< const GeneticCode > gc, bool oneModel)
constructor.
Class for non-synonymous substitution models on codons with parameterized nucleotidic models,...
virtual void addParameters(const ParameterList ¶ms)
virtual std::vector< std::string > getParameterNames() const
virtual void setName(const std::string &name)
virtual std::string getParameterNameWithoutNamespace(const std::string &name) const=0
Defines the basic types of data flow nodes.