5 #ifndef BPP_PHYL_MODEL_PROTEIN_JTT92_H
6 #define BPP_PHYL_MODEL_PROTEIN_JTT92_H
9 #include "../AbstractSubstitutionModel.h"
10 #include "../FrequencySet/ProteinFrequencySet.h"
35 std::shared_ptr<ProteinFrequencySetInterface>
freqSet_;
43 JTT92(std::shared_ptr<const ProteicAlphabet> alpha);
54 std::shared_ptr<const ProteicAlphabet> alpha,
55 std::unique_ptr<ProteinFrequencySetInterface> freqSet,
56 bool initFreqs =
false);
79 if (
freqSet_->getNamespace().find(
"JTT92+F.") != std::string::npos)
94 freqSet_->matchParametersValues(parameters);
void addParameters_(const ParameterList ¶meters)
AbstractParameterAliasable & operator=(const AbstractParameterAliasable &ap)
void setNamespace(const std::string &prefix)
Specialisation abstract class for reversible protein substitution model.
AbstractSubstitutionModel & operator=(const AbstractSubstitutionModel &model)
virtual void fireParameterChanged(const ParameterList ¶meters) override
Tells the model that a parameter value has changed.
Vdouble freq_
The vector of equilibrium frequencies.
Parametrize a set of state frequencies.
The Jones, Taylor and Thornton substitution model for proteins.
void setFreqFromData(const SequenceDataInterface &data, double pseudoCount=0) override
Set equilibrium frequencies equal to the frequencies estimated from the data.
JTT92(std::shared_ptr< const ProteicAlphabet > alpha)
Build a simple JTT92 model, with original equilibrium frequencies.
std::shared_ptr< ProteinFrequencySetInterface > freqSet_
void fireParameterChanged(const ParameterList ¶meters) override
Tells the model that a parameter value has changed.
JTT92 * clone() const override
const FrequencySetInterface & frequencySet() const override
void setNamespace(const std::string &prefix) override
std::string getName() const override
Get the name of the model.
JTT92 & operator=(const JTT92 &model)
JTT92(const JTT92 &model)
void setFrequencySet(const ProteinFrequencySetInterface &freqSet)
Parametrize a set of state frequencies for proteins.
ProteinFrequencySetInterface * clone() const override=0
Defines the basic types of data flow nodes.