44 #include "../AbstractSubstitutionModel.h" 45 #include "../FrequenciesSet/ProteinFrequenciesSet.h" 48 #include <Bpp/Seq/Alphabet/ProteicAlphabet.h> 77 LG08(
const ProteicAlphabet* alpha);
90 AbstractParameterAliasable(model),
98 AbstractParameterAliasable::operator=(model);
108 #ifndef NO_VIRTUAL_COV 118 if (
freqSet_->getNamespace().find(
"LG08+F.")!=std::string::npos)
126 freqSet_->matchParametersValues(parameters);
136 addParameters_(
freqSet_->getParameters());
141 void setFreqFromData(
const SequenceContainer& data,
double pseudoCount = 0);
std::string getName() const
Get the name of the model.
virtual void fireParameterChanged(const ParameterList ¶meters)
Tells the model that a parameter value has changed.
Specialized interface for protein substitution model.
The Le and Gascuel substitution model for proteins.
virtual const std::vector< double > getFrequencies() const =0
Vdouble freq_
The vector of equilibrium frequencies.
Parametrize a set of state frequencies.
void setFreqFromData(const SequenceContainer &data, double pseudoCount=0)
Set equilibrium frequencies equal to the frequencies estimated from the data.
ProteinFrequenciesSet * clone() const =0
AbstractSubstitutionModel & operator=(const AbstractSubstitutionModel &model)
Partial implementation of the ReversibleSubstitutionModel interface.
ProteinFrequenciesSet * freqSet_
LG08 & operator=(const LG08 &model)
Parametrize a set of state frequencies for proteins.
void fireParameterChanged(const ParameterList ¶meters)
Tells the model that a parameter value has changed.
const FrequenciesSet * getFrequenciesSet() const
If the model owns a FrequenciesSet, returns a pointer to it, otherwise return 0.
LG08(const ProteicAlphabet *alpha)
Build a simple LG08 model, with original equilibrium frequencies.
void setFrequenciesSet(const ProteinFrequenciesSet &freqSet)