Utilitary class for creating substitution models.
More...
#include <Bpp/Phyl/Model/SubstitutionModelFactory.h>
Utilitary class for creating substitution models.
Definition at line 61 of file SubstitutionModelFactory.h.
◆ SubstitutionModelFactory() [1/2]
bpp::SubstitutionModelFactory::SubstitutionModelFactory |
( |
const Alphabet * |
alphabet, |
|
|
const GeneticCode * |
geneticCode |
|
) |
| |
|
inline |
Creates a new factory object with the given alphabet.
This factory only provides ways to instanciate simple substitution models, for nucleotides and proteins.
- Parameters
-
alphabet | The alphabet for wich models must be instanciated. |
geneticCode | Genetic code to use for codon model. |
Example:
const Alphabet* alphabet = new DNA();
Definition at line 100 of file SubstitutionModelFactory.h.
◆ SubstitutionModelFactory() [2/2]
◆ ~SubstitutionModelFactory()
virtual bpp::SubstitutionModelFactory::~SubstitutionModelFactory |
( |
| ) |
|
|
inlinevirtual |
◆ createModel()
SubstitutionModel * SubstitutionModelFactory::createModel |
( |
const std::string & |
modelName | ) |
const |
throw | ( | AlphabetException, |
| | Exception |
| ) | | |
|
virtual |
Get a new dynamically created SubstitutionModel object.
- Parameters
-
modelName | The name of the model to use. |
- Returns
- A pointer toward a new substitution model, with default parameter values.
- Exceptions
-
AlphabetException | If the model is not compatible with the given alphabet. |
Exception | If the model name do not match any available model. |
Definition at line 81 of file SubstitutionModelFactory.cpp.
◆ operator=()
◆ alphabet_
const Alphabet* bpp::SubstitutionModelFactory::alphabet_ |
|
private |
◆ DAYHOFF_SCHWARTZ_ORCUTT
const string SubstitutionModelFactory::DAYHOFF_SCHWARTZ_ORCUTT = "DSO78" |
|
static |
◆ FELSENSTEIN
const string SubstitutionModelFactory::FELSENSTEIN = "F84" |
|
static |
◆ GENERAL_TIME_REVERSIBLE
const string SubstitutionModelFactory::GENERAL_TIME_REVERSIBLE = "HKY85" |
|
static |
◆ geneticCode_
const GeneticCode* bpp::SubstitutionModelFactory::geneticCode_ |
|
private |
◆ HASEGAWA_KISHINO_YANO
const string SubstitutionModelFactory::HASEGAWA_KISHINO_YANO = "HKY85" |
|
static |
◆ JOHN_TAYLOR_THORNTON
const string SubstitutionModelFactory::JOHN_TAYLOR_THORNTON = "JTT92" |
|
static |
◆ JUKES_CANTOR
const string SubstitutionModelFactory::JUKES_CANTOR = "JC69" |
|
static |
◆ KIMURA_2P
const string SubstitutionModelFactory::KIMURA_2P = "K80" |
|
static |
◆ LE_GASCUEL
const string SubstitutionModelFactory::LE_GASCUEL = "LG08" |
|
static |
◆ LOBRY
const string SubstitutionModelFactory::LOBRY = "L95" |
|
static |
◆ STRAND_SYMMETRIC_REVERSIBLE
const string SubstitutionModelFactory::STRAND_SYMMETRIC_REVERSIBLE = "SSR" |
|
static |
◆ TAMURA
const string SubstitutionModelFactory::TAMURA = "T92" |
|
static |
◆ TAMURA_NEI
const string SubstitutionModelFactory::TAMURA_NEI = "TN93" |
|
static |
◆ WHELAN_AND_GOLDMAN
const string SubstitutionModelFactory::WHELAN_AND_GOLDMAN = "WAG" |
|
static |
The documentation for this class was generated from the following files: