bpp-phyl3 3.0.0
LLG08_EX2.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: The Bio++ Development Group
2//
3// SPDX-License-Identifier: CECILL-2.1
4
5#ifndef BPP_PHYL_MODEL_PROTEIN_LLG08_EX2_H
6#define BPP_PHYL_MODEL_PROTEIN_LLG08_EX2_H
7
8
9#include "../AbstractBiblioMixedTransitionModel.h"
10#include "../AbstractSubstitutionModel.h"
11#include "../MixtureOfSubstitutionModels.h"
13
14using namespace std;
15
16namespace bpp
17{
40class LLG08_EX2 :
42{
43public:
46 {
47private:
49 string name_;
50
51public:
52 EmbeddedModel(std::shared_ptr<const ProteicAlphabet> alpha, string name);
53 EmbeddedModel* clone() const override { return new EmbeddedModel(*this); }
54 string getName() const override { return name_; }
55 double getProportion() const { return proportion_;}
56 };
57
58public:
64 LLG08_EX2(std::shared_ptr<const ProteicAlphabet> alpha);
65
66 LLG08_EX2* clone() const override { return new LLG08_EX2(*this); }
67
68 std::string getName() const override { return "LLG08_EX2"; }
69};
70} // end of namespace bpp.
71#endif // BPP_PHYL_MODEL_PROTEIN_LLG08_EX2_H
Abstract class for mixture models based on the bibliography.
Specialisation abstract class for reversible protein substitution model.
EmbeddedModel(std::shared_ptr< const ProteicAlphabet > alpha, string name)
Definition: LLG08_EX2.cpp:58
double getProportion() const
Definition: LLG08_EX2.h:55
string getName() const override
Get the name of the model.
Definition: LLG08_EX2.h:54
EmbeddedModel * clone() const override
Definition: LLG08_EX2.h:53
The Le et al (2008) EX2 substitution model for proteins.
Definition: LLG08_EX2.h:42
LLG08_EX2(std::shared_ptr< const ProteicAlphabet > alpha)
Build a EX2 model, with original equilibrium frequencies, probabilities and rates.
Definition: LLG08_EX2.cpp:16
LLG08_EX2 * clone() const override
Definition: LLG08_EX2.h:66
std::string getName() const override
Get the name of the model.
Definition: LLG08_EX2.h:68
Defines the basic types of data flow nodes.