5 #ifndef BPP_PHYL_MODEL_PROTEIN_DSO78_H
6 #define BPP_PHYL_MODEL_PROTEIN_DSO78_H
9 #include "../AbstractSubstitutionModel.h"
10 #include "../FrequencySet/ProteinFrequencySet.h"
35 std::unique_ptr<ProteinFrequencySetInterface>
freqSet_;
43 DSO78(std::shared_ptr<const ProteicAlphabet> alpha);
53 DSO78(std::shared_ptr<const ProteicAlphabet> alpha,
54 std::unique_ptr<ProteinFrequencySetInterface> freqSet,
55 bool initFreqs =
false);
78 if (
freqSet_->getNamespace().find(
"DSO78+F.") != std::string::npos)
86 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.
The Dayhoff, Schwartz and Orcutt substitution model for proteins.
std::string getName() const override
Get the name of the model.
const FrequencySetInterface & frequencySet() const override
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)
DSO78 & operator=(const DSO78 &model)
DSO78(std::shared_ptr< const ProteicAlphabet > alpha)
Build a simple DSO78 model, with original equilibrium frequencies.
void setNamespace(const std::string &prefix) override
DSO78(const DSO78 &model)
DSO78 * clone() const override
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.
Parametrize a set of state frequencies for proteins.
ProteinFrequencySetInterface * clone() const override=0
Defines the basic types of data flow nodes.