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