5 #ifndef BPP_PHYL_MODEL_PROTEIN_WAG01_H
6 #define BPP_PHYL_MODEL_PROTEIN_WAG01_H
9 #include "../AbstractSubstitutionModel.h"
10 #include "../FrequencySet/ProteinFrequencySet.h"
38 std::unique_ptr<ProteinFrequencySetInterface>
freqSet_;
46 WAG01(std::shared_ptr<const ProteicAlphabet> alpha);
57 std::shared_ptr<const ProteicAlphabet> alpha,
58 std::unique_ptr<ProteinFrequencySetInterface> freqSet,
59 bool initFreqs =
false);
82 if (
freqSet_->getNamespace().find(
"WAG01+F.") != std::string::npos)
90 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.
Parametrize a set of state frequencies for proteins.
ProteinFrequencySetInterface * clone() const override=0
The Whelan and Goldman substitution model for proteins.
void setFreqFromData(const SequenceDataInterface &data, double pseudoCount=0) override
Set equilibrium frequencies equal to the frequencies estimated from the data.
std::unique_ptr< ProteinFrequencySetInterface > freqSet_
void fireParameterChanged(const ParameterList ¶meters) override
Tells the model that a parameter value has changed.
void setFrequencySet(const ProteinFrequencySetInterface &freqSet)
void setNamespace(const std::string &prefix) override
WAG01(std::shared_ptr< const ProteicAlphabet > alpha)
Build a simple WAG01 model, with original equilibrium frequencies.
WAG01(const WAG01 &model)
const FrequencySetInterface & frequencySet() const override
WAG01 * clone() const override
WAG01 & operator=(const WAG01 &model)
std::string getName() const override
Get the name of the model.
Defines the basic types of data flow nodes.