bpp-phyl
2.2.0
|
Abstract Basal class for words of substitution models. More...
#include <Bpp/Phyl/Model/AbstractWordSubstitutionModel.h>
Public Member Functions | |
AbstractWordSubstitutionModel (const std::vector< SubstitutionModel *> &modelVector, const std::string &prefix) | |
Build a new AbstractWordSubstitutionModel object from a vector of pointers to SubstitutionModels. More... | |
AbstractWordSubstitutionModel (SubstitutionModel *pmodel, unsigned int num, const std::string &prefix) | |
Build a new AbstractWordSubstitutionModel object from a pointer to an SubstitutionModel and a number of desired models. More... | |
AbstractWordSubstitutionModel (const AbstractWordSubstitutionModel &) | |
AbstractWordSubstitutionModel & | operator= (const AbstractWordSubstitutionModel &) |
virtual | ~AbstractWordSubstitutionModel () |
void | setNamespace (const std::string &prefix) |
virtual size_t | getNumberOfStates () const |
Get the number of states. More... | |
const SubstitutionModel * | getNModel (size_t i) const |
returns the ith model, or Null if i is not a valid number. More... | |
size_t | getNumberOfModels () const |
virtual void | setFreq (std::map< int, double > &freqs) |
Estimation of the parameters of the models so that the equilibrium frequencies match the given ones. More... | |
virtual AbstractSubstitutionModel * | clone () const =0 |
const Alphabet * | getAlphabet () const |
const StateMap & | getStateMap () const |
const std::vector< int > & | getAlphabetStates () const |
std::string | getAlphabetStateAsChar (size_t index) const |
int | getAlphabetStateAsInt (size_t index) const |
std::vector< size_t > | getModelStates (int code) const |
Get the state in the model corresponding to a particular state in the alphabet. More... | |
std::vector< size_t > | getModelStates (const std::string &code) const |
Get the state in the model corresponding to a particular state in the alphabet. More... | |
virtual const Vdouble & | getFrequencies () const |
const Matrix< double > & | getGenerator () const |
const Matrix< double > & | getExchangeabilityMatrix () const |
double | Sij (size_t i, size_t j) const |
virtual const Matrix< double > & | getPij_t (double t) const |
virtual const Matrix< double > & | getdPij_dt (double t) const |
virtual const Matrix< double > & | getd2Pij_dt2 (double t) const |
const Vdouble & | getEigenValues () const |
const Vdouble & | getIEigenValues () const |
bool | isDiagonalizable () const |
bool | isNonSingular () const |
const Matrix< double > & | getRowLeftEigenVectors () const |
const Matrix< double > & | getColumnRightEigenVectors () const |
virtual double | freq (size_t i) const |
virtual double | Qij (size_t i, size_t j) const |
virtual double | Pij_t (size_t i, size_t j, double t) const |
virtual double | dPij_dt (size_t i, size_t j, double t) const |
virtual double | d2Pij_dt2 (size_t i, size_t j, double t) const |
double | getInitValue (size_t i, int state) const throw (IndexOutOfBoundsException, BadIntException) |
void | setFreqFromData (const SequenceContainer &data, double pseudoCount=0) |
Set equilibrium frequencies equal to the frequencies estimated from the data. More... | |
void | enableEigenDecomposition (bool yn) |
Set if eigenValues and Vectors must be computed. More... | |
bool | enableEigenDecomposition () |
Tell if eigenValues and Vectors must be computed. More... | |
virtual void | fireParameterChanged (const ParameterList ¶meters) |
Tells the model that a parameter value has changed. More... | |
void | addRateParameter () |
double | getScale () const |
Get the scalar product of diagonal elements of the generator and the frequencies vector. If the generator is normalized, then scale=1. Otherwise each element must be multiplied by 1/scale. More... | |
void | setScale (double scale) |
Multiplies the current generator by the given scale. More... | |
virtual double | getRate () const |
Get the rate. More... | |
virtual void | setRate (double rate) |
Set the rate of the model (must be positive). More... | |
virtual std::string | getName () const =0 |
Get the name of the model. More... | |
virtual const FrequenciesSet * | getFrequenciesSet () const |
If the model owns a FrequenciesSet, returns a pointer to it, otherwise return 0. More... | |
Protected Member Functions | |
void | updateMatrices () |
Diagonalize the ![]() | |
virtual void | completeMatrices ()=0 |
Called by updateMatrices to handle specific modifications for inheriting classes. More... | |
AbstractWordSubstitutionModel (const Alphabet *alph, StateMap *stateMap, const std::string &prefix) | |
Constructor for the derived classes only. More... | |
Static Protected Member Functions | |
static Alphabet * | extractAlph (const std::vector< SubstitutionModel *> &modelVector) |
Protected Attributes | |
std::vector< SubstitutionModel * > | VSubMod_ |
std::vector< std::string > | VnestedPrefix_ |
std::vector< double > | Vrate_ |
const Alphabet * | alphabet_ |
The alphabet relevant to this model. More... | |
std::auto_ptr< StateMap > | stateMap_ |
The map of model states with alphabet states. More... | |
size_t | size_ |
The size of the generator, i.e. the number of states. More... | |
double | rate_ |
The rate of the model (default: 1). The generator (and all its vectorial components) is independent of the rate, since it should be normalized. More... | |
RowMatrix< double > | generator_ |
The generator matrix ![]() | |
Vdouble | freq_ |
The vector ![]() | |
RowMatrix< double > | exchangeability_ |
The exchangeability matrix ![]() ![]() | |
RowMatrix< double > | pijt_ |
These ones are for bookkeeping: More... | |
RowMatrix< double > | dpijt_ |
RowMatrix< double > | d2pijt_ |
bool | eigenDecompose_ |
Tell if the eigen decomposition should be performed. More... | |
Vdouble | eigenValues_ |
The vector of eigen values. More... | |
Vdouble | iEigenValues_ |
The vector of the imaginary part of the eigen values. More... | |
bool | isDiagonalizable_ |
boolean value for diagonalizability in R of the generator_ More... | |
RowMatrix< double > | rightEigenVectors_ |
The ![]() | |
bool | isNonSingular_ |
boolean value for non-singularity of rightEigenVectors_ More... | |
RowMatrix< double > | leftEigenVectors_ |
The ![]() | |
std::vector< RowMatrix< double > > | vPowGen_ |
vector of the powers of generator_ for Taylor development (if rightEigenVectors_ is singular). More... | |
RowMatrix< double > | tmpMat_ |
For computational issues. More... | |
Private Attributes | |
bool | new_alphabet_ |
boolean flag to check if a specific WordAlphabet has been built More... | |
Abstract Basal class for words of substitution models.
Objects of this class are built from several substitution models. Each model corresponds to a position in the word. No model is directly accessible.
Only substitutions with one letter changed are accepted.
There is one substitution per word per unit of time on the equilibrium frequency, and each position has its specific rate. For example, if there are models and
is the rate of model i (
):
The parameters of this word model are the same as the ones of the models used. Their names have a new suffix, "phi_" where i stands for the position (i.e. the phase) in the word.
Definition at line 75 of file AbstractWordSubstitutionModel.h.
AbstractWordSubstitutionModel::AbstractWordSubstitutionModel | ( | const std::vector< SubstitutionModel *> & | modelVector, |
const std::string & | prefix | ||
) |
Build a new AbstractWordSubstitutionModel object from a vector of pointers to SubstitutionModels.
modelVector | the vector of substitution models to use, in the order of the positions in the words from left to right. All the models must be different objects to avoid parameters redundancy, otherwise only the first model is used. The used models are owned by the instance. |
prefix | the Namespace. |
Definition at line 64 of file AbstractWordSubstitutionModel.cpp.
References bpp::AbstractSubstitutionModel::enableEigenDecomposition(), VnestedPrefix_, Vrate_, and VSubMod_.
AbstractWordSubstitutionModel::AbstractWordSubstitutionModel | ( | SubstitutionModel * | pmodel, |
unsigned int | num, | ||
const std::string & | prefix | ||
) |
Build a new AbstractWordSubstitutionModel object from a pointer to an SubstitutionModel and a number of desired models.
pmodel | A pointer to the substitution model to use in all the positions. It will be owned by the instance. |
num | The number of models involved. |
prefix | the Namespace. |
Definition at line 141 of file AbstractWordSubstitutionModel.cpp.
References bpp::AbstractSubstitutionModel::enableEigenDecomposition(), VnestedPrefix_, Vrate_, and VSubMod_.
AbstractWordSubstitutionModel::AbstractWordSubstitutionModel | ( | const AbstractWordSubstitutionModel & | wrsm | ) |
Definition at line 168 of file AbstractWordSubstitutionModel.cpp.
References bpp::AbstractSubstitutionModel::alphabet_, bpp::AbstractSubstitutionModel::getAlphabet(), new_alphabet_, and VSubMod_.
|
virtual |
Definition at line 220 of file AbstractWordSubstitutionModel.cpp.
References bpp::AbstractSubstitutionModel::alphabet_, new_alphabet_, and VSubMod_.
|
protected |
Constructor for the derived classes only.
Definition at line 127 of file AbstractWordSubstitutionModel.cpp.
References bpp::AbstractSubstitutionModel::enableEigenDecomposition().
|
virtualinherited |
Implements bpp::SubstitutionModel.
Definition at line 433 of file AbstractSubstitutionModel.cpp.
References bpp::AbstractSubstitutionModel::rate_.
|
pure virtualinherited |
Implements bpp::SubstitutionModel.
Implemented in bpp::AbstractReversibleSubstitutionModel, bpp::YpR_Gen, bpp::YpR_Sym, bpp::HKY85, bpp::F84, bpp::JCprot, bpp::T92, bpp::K80, bpp::GTR, bpp::RN95, bpp::MixtureOfSubstitutionModels, bpp::TN93, bpp::RE08, bpp::AbstractCodonSubstitutionModel, bpp::JCnuc, bpp::CodonDistanceFrequenciesSubstitutionModel, bpp::RN95s, bpp::BinarySubstitutionModel, bpp::UserProteinSubstitutionModel, bpp::CodonDistancePhaseFrequenciesSubstitutionModel, bpp::MixtureOfASubstitutionModel, bpp::WAG01, bpp::SSR, bpp::CodonDistanceFitnessPhaseFrequenciesSubstitutionModel, bpp::L95, bpp::DSO78, bpp::JTT92, bpp::LG08, bpp::CodonRateFrequenciesSubstitutionModel, bpp::CodonDistanceSubstitutionModel, bpp::AbstractMixedSubstitutionModel, bpp::gBGC, bpp::WordSubstitutionModel, bpp::TripletSubstitutionModel, bpp::CodonRateSubstitutionModel, bpp::Coala, bpp::LLG08_EX3::EmbeddedModel, bpp::LLG08_EHO::EmbeddedModel, bpp::LLG08_UL3::EmbeddedModel, bpp::LG10_EX_EHO::EmbeddedModel, bpp::LGL08_CAT::EmbeddedModel, bpp::LLG08_EX2::EmbeddedModel, and bpp::LLG08_UL2::EmbeddedModel.
|
protectedpure virtual |
Called by updateMatrices to handle specific modifications for inheriting classes.
Implemented in bpp::AbstractCodonSubstitutionModel, and bpp::WordSubstitutionModel.
Referenced by updateMatrices().
|
inlinevirtualinherited |
Implements bpp::SubstitutionModel.
Reimplemented in bpp::F84, bpp::HKY85, bpp::JCprot, bpp::T92, bpp::K80, bpp::RN95, bpp::TN93, bpp::RE08, bpp::JCnuc, bpp::RN95s, and bpp::BinarySubstitutionModel.
Definition at line 281 of file AbstractSubstitutionModel.h.
References bpp::AbstractSubstitutionModel::getd2Pij_dt2().
|
inlinevirtualinherited |
Implements bpp::SubstitutionModel.
Reimplemented in bpp::F84, bpp::HKY85, bpp::JCprot, bpp::T92, bpp::K80, bpp::RN95, bpp::TN93, bpp::RE08, bpp::JCnuc, bpp::RN95s, and bpp::BinarySubstitutionModel.
Definition at line 280 of file AbstractSubstitutionModel.h.
References bpp::AbstractSubstitutionModel::getdPij_dt().
|
inlinevirtualinherited |
Set if eigenValues and Vectors must be computed.
Implements bpp::SubstitutionModel.
Definition at line 289 of file AbstractSubstitutionModel.h.
References bpp::AbstractSubstitutionModel::eigenDecompose_.
|
inlinevirtualinherited |
Tell if eigenValues and Vectors must be computed.
Implements bpp::SubstitutionModel.
Definition at line 291 of file AbstractSubstitutionModel.h.
References bpp::AbstractSubstitutionModel::eigenDecompose_.
Referenced by bpp::AbstractCodonSubstitutionModel::AbstractCodonSubstitutionModel(), AbstractWordSubstitutionModel(), updateMatrices(), bpp::gBGC::updateMatrices(), bpp::RN95s::updateMatrices(), bpp::RN95::updateMatrices(), and bpp::AbstractSubstitutionModel::updateMatrices().
|
staticprotected |
Definition at line 242 of file AbstractWordSubstitutionModel.cpp.
References bpp::AbstractSubstitutionModel::getAlphabet().
|
inlinevirtualinherited |
Tells the model that a parameter value has changed.
This updates the matrices consequently.
Reimplemented in bpp::JCprot, bpp::YpR, bpp::RE08, bpp::CodonDistanceFrequenciesSubstitutionModel, bpp::UserProteinSubstitutionModel, bpp::WAG01, bpp::CodonDistancePhaseFrequenciesSubstitutionModel, bpp::DSO78, bpp::JTT92, bpp::CodonDistanceFitnessPhaseFrequenciesSubstitutionModel, bpp::LG08, bpp::CodonDistanceSubstitutionModel, bpp::gBGC, bpp::CodonRateFrequenciesSubstitutionModel, and bpp::CodonRateSubstitutionModel.
Definition at line 298 of file AbstractSubstitutionModel.h.
References bpp::SubstitutionModel::getName(), and bpp::AbstractSubstitutionModel::updateMatrices().
Referenced by bpp::CodonRateSubstitutionModel::fireParameterChanged(), bpp::CodonRateFrequenciesSubstitutionModel::fireParameterChanged(), bpp::gBGC::fireParameterChanged(), bpp::CodonDistanceSubstitutionModel::fireParameterChanged(), bpp::LG08::fireParameterChanged(), bpp::CodonDistanceFitnessPhaseFrequenciesSubstitutionModel::fireParameterChanged(), bpp::DSO78::fireParameterChanged(), bpp::JTT92::fireParameterChanged(), bpp::CodonDistancePhaseFrequenciesSubstitutionModel::fireParameterChanged(), bpp::WAG01::fireParameterChanged(), bpp::UserProteinSubstitutionModel::fireParameterChanged(), bpp::CodonDistanceFrequenciesSubstitutionModel::fireParameterChanged(), and bpp::JCprot::fireParameterChanged().
|
inlinevirtualinherited |
Implements bpp::SubstitutionModel.
Definition at line 275 of file AbstractSubstitutionModel.h.
References bpp::AbstractSubstitutionModel::freq_.
|
inlinevirtualinherited |
Implements bpp::SubstitutionModel.
Definition at line 237 of file AbstractSubstitutionModel.h.
References bpp::AbstractSubstitutionModel::alphabet_.
Referenced by AbstractWordSubstitutionModel(), bpp::WordSubstitutionModel::completeMatrices(), extractAlph(), getNumberOfStates(), and operator=().
|
inlinevirtualinherited |
index | The model state. |
Implements bpp::SubstitutionModel.
Definition at line 243 of file AbstractSubstitutionModel.h.
References bpp::AbstractSubstitutionModel::stateMap_.
|
inlinevirtualinherited |
index | The model state. |
Implements bpp::SubstitutionModel.
Definition at line 245 of file AbstractSubstitutionModel.h.
References bpp::AbstractSubstitutionModel::stateMap_.
|
inlinevirtualinherited |
Implements bpp::SubstitutionModel.
Definition at line 241 of file AbstractSubstitutionModel.h.
References bpp::AbstractSubstitutionModel::stateMap_.
|
inlinevirtualinherited |
Implements bpp::SubstitutionModel.
Definition at line 273 of file AbstractSubstitutionModel.h.
References bpp::AbstractSubstitutionModel::rightEigenVectors_.
|
virtualinherited |
Implements bpp::SubstitutionModel.
Reimplemented in bpp::AbstractMixedSubstitutionModel, bpp::F84, bpp::HKY85, bpp::JCprot, bpp::T92, bpp::K80, bpp::RN95, bpp::TN93, bpp::RE08, bpp::JCnuc, bpp::RN95s, bpp::BinarySubstitutionModel, and bpp::WordSubstitutionModel.
Definition at line 274 of file AbstractSubstitutionModel.cpp.
References bpp::AbstractSubstitutionModel::d2pijt_, bpp::AbstractSubstitutionModel::eigenValues_, bpp::AbstractSubstitutionModel::iEigenValues_, bpp::AbstractSubstitutionModel::isDiagonalizable_, bpp::AbstractSubstitutionModel::isNonSingular_, bpp::AbstractSubstitutionModel::leftEigenVectors_, bpp::AbstractSubstitutionModel::rate_, bpp::AbstractSubstitutionModel::rightEigenVectors_, bpp::AbstractSubstitutionModel::size_, bpp::AbstractSubstitutionModel::tmpMat_, and bpp::AbstractSubstitutionModel::vPowGen_.
Referenced by bpp::AbstractSubstitutionModel::d2Pij_dt2().
|
virtualinherited |
Implements bpp::SubstitutionModel.
Reimplemented in bpp::AbstractMixedSubstitutionModel, bpp::F84, bpp::HKY85, bpp::JCprot, bpp::T92, bpp::K80, bpp::RN95, bpp::TN93, bpp::RE08, bpp::JCnuc, bpp::RN95s, bpp::BinarySubstitutionModel, and bpp::WordSubstitutionModel.
Definition at line 205 of file AbstractSubstitutionModel.cpp.
References bpp::AbstractSubstitutionModel::dpijt_, bpp::AbstractSubstitutionModel::eigenValues_, bpp::AbstractSubstitutionModel::iEigenValues_, bpp::AbstractSubstitutionModel::isDiagonalizable_, bpp::AbstractSubstitutionModel::isNonSingular_, bpp::AbstractSubstitutionModel::leftEigenVectors_, bpp::AbstractSubstitutionModel::rate_, bpp::AbstractSubstitutionModel::rightEigenVectors_, bpp::AbstractSubstitutionModel::size_, bpp::AbstractSubstitutionModel::tmpMat_, and bpp::AbstractSubstitutionModel::vPowGen_.
Referenced by bpp::AbstractSubstitutionModel::dPij_dt().
|
inlinevirtualinherited |
Implements bpp::SubstitutionModel.
Definition at line 263 of file AbstractSubstitutionModel.h.
References bpp::AbstractSubstitutionModel::eigenValues_.
|
inlinevirtualinherited |
Implements bpp::SubstitutionModel.
Definition at line 255 of file AbstractSubstitutionModel.h.
References bpp::AbstractSubstitutionModel::exchangeability_.
|
inlinevirtualinherited |
Implements bpp::SubstitutionModel.
Definition at line 251 of file AbstractSubstitutionModel.h.
References bpp::AbstractSubstitutionModel::freq_.
|
inlinevirtualinherited |
If the model owns a FrequenciesSet, returns a pointer to it, otherwise return 0.
Reimplemented in bpp::JCprot, bpp::AbstractBiblioSubstitutionModel, bpp::UserProteinSubstitutionModel, bpp::WAG01, bpp::DSO78, bpp::JTT92, bpp::LG08, bpp::YNGKP_M1, bpp::YNGKP_M8, bpp::YNGKP_M7, bpp::AbstractCodonPhaseFrequenciesSubstitutionModel, bpp::YNGKP_M3, bpp::YNGKP_M2, and bpp::AbstractCodonFrequenciesSubstitutionModel.
Definition at line 479 of file SubstitutionModel.h.
Referenced by bpp::AbstractBiblioSubstitutionModel::getFrequenciesSet(), and bpp::BppOSubstitutionModelFormat::write().
|
inlinevirtualinherited |
See Kosiol and Goldman (2005), Molecular Biology And Evolution 22(2) 193-9.
Implements bpp::SubstitutionModel.
Definition at line 253 of file AbstractSubstitutionModel.h.
References bpp::AbstractSubstitutionModel::generator_.
|
inlinevirtualinherited |
Implements bpp::SubstitutionModel.
Definition at line 265 of file AbstractSubstitutionModel.h.
References bpp::AbstractSubstitutionModel::iEigenValues_.
|
virtualinherited |
This method is used to initialize likelihoods in reccursions. It typically sends 1 if i = state, 0 otherwise, where i is one of the possible states of the alphabet allowed in the model and state is the observed state in the considered sequence/site.
i | the index of the state in the model. |
state | An observed state in the sequence/site. |
IndexOutOfBoundsException | if array position is out of range. |
BadIntException | if states are not allowed in the associated alphabet. |
Implements bpp::SubstitutionModel.
Reimplemented in bpp::RE08.
Definition at line 349 of file AbstractSubstitutionModel.cpp.
|
inlinevirtualinherited |
Get the state in the model corresponding to a particular state in the alphabet.
code | The alphabet state to check. |
Implements bpp::SubstitutionModel.
Definition at line 247 of file AbstractSubstitutionModel.h.
References bpp::AbstractSubstitutionModel::stateMap_.
|
inlinevirtualinherited |
Get the state in the model corresponding to a particular state in the alphabet.
code | The alphabet state to check. |
Implements bpp::SubstitutionModel.
Definition at line 249 of file AbstractSubstitutionModel.h.
References bpp::AbstractSubstitutionModel::stateMap_.
|
pure virtualinherited |
Get the name of the model.
Implemented in bpp::YpR_Gen, bpp::YpR_Sym, bpp::F84, bpp::HKY85, bpp::JCprot, bpp::T92, bpp::K80, bpp::RN95, bpp::GTR, bpp::TN93, bpp::RE08, bpp::MixtureOfSubstitutionModels, bpp::JCnuc, bpp::RN95s, bpp::CodonDistanceFrequenciesSubstitutionModel, bpp::BinarySubstitutionModel, bpp::CodonDistancePhaseFrequenciesSubstitutionModel, bpp::UserProteinSubstitutionModel, bpp::CodonDistanceFitnessPhaseFrequenciesSubstitutionModel, bpp::MixtureOfASubstitutionModel, bpp::LLG08_EX3, bpp::WordSubstitutionModel, bpp::LLG08_EHO, bpp::LLG08_UL3, bpp::WAG01, bpp::SSR, bpp::LG10_EX_EHO, bpp::CodonDistanceSubstitutionModel, bpp::L95, bpp::LGL08_CAT, bpp::LLG08_EX2, bpp::LLG08_UL2, bpp::DSO78, bpp::JTT92, bpp::CodonRateFrequenciesSubstitutionModel, bpp::LG08, bpp::YNGKP_M1, bpp::G2001, bpp::gBGC, bpp::YNGKP_M8, bpp::GY94, bpp::YNGKP_M7, bpp::YN98, bpp::YNGKP_M3, bpp::TS98, bpp::TripletSubstitutionModel, bpp::YNGKP_M2, bpp::MG94, bpp::CodonRateSubstitutionModel, bpp::Coala, bpp::LLG08_EX3::EmbeddedModel, bpp::LLG08_EHO::EmbeddedModel, bpp::LLG08_UL3::EmbeddedModel, bpp::LG10_EX_EHO::EmbeddedModel, bpp::LGL08_CAT::EmbeddedModel, bpp::LLG08_EX2::EmbeddedModel, and bpp::LLG08_UL2::EmbeddedModel.
Referenced by bpp::AbstractCodonFitnessSubstitutionModel::AbstractCodonFitnessSubstitutionModel(), bpp::AbstractSubstitutionModel::fireParameterChanged(), bpp::MixtureOfSubstitutionModels::getSubmodelNumbers(), bpp::BppOSubstitutionModelFormat::readMixed_(), bpp::AbstractBiblioSubstitutionModel::updateMatrices(), and bpp::BppOSubstitutionModelFormat::write().
|
inline |
returns the ith model, or Null if i is not a valid number.
Definition at line 155 of file AbstractWordSubstitutionModel.h.
References VSubMod_.
Referenced by bpp::BppOSubstitutionModelFormat::write().
|
inline |
Definition at line 162 of file AbstractWordSubstitutionModel.h.
References VSubMod_.
Referenced by bpp::BppOSubstitutionModelFormat::write().
|
virtual |
Get the number of states.
For most models, this equals the size of the alphabet.
Implements bpp::SubstitutionModel.
Definition at line 237 of file AbstractWordSubstitutionModel.cpp.
References bpp::AbstractSubstitutionModel::getAlphabet().
Referenced by bpp::AbstractCodonSubstitutionModel::completeMatrices(), bpp::WordSubstitutionModel::getd2Pij_dt2(), bpp::WordSubstitutionModel::getdPij_dt(), bpp::WordSubstitutionModel::getPij_t(), setFreq(), and updateMatrices().
|
virtualinherited |
Implements bpp::SubstitutionModel.
Reimplemented in bpp::AbstractMixedSubstitutionModel, bpp::F84, bpp::HKY85, bpp::JCprot, bpp::T92, bpp::K80, bpp::RN95, bpp::TN93, bpp::RE08, bpp::JCnuc, bpp::RN95s, bpp::BinarySubstitutionModel, and bpp::WordSubstitutionModel.
Definition at line 134 of file AbstractSubstitutionModel.cpp.
References bpp::AbstractSubstitutionModel::eigenValues_, bpp::AbstractSubstitutionModel::iEigenValues_, bpp::AbstractSubstitutionModel::isDiagonalizable_, bpp::AbstractSubstitutionModel::isNonSingular_, bpp::AbstractSubstitutionModel::leftEigenVectors_, bpp::AbstractSubstitutionModel::pijt_, bpp::AbstractSubstitutionModel::rate_, bpp::AbstractSubstitutionModel::rightEigenVectors_, bpp::AbstractSubstitutionModel::size_, bpp::AbstractSubstitutionModel::tmpMat_, and bpp::AbstractSubstitutionModel::vPowGen_.
Referenced by bpp::AbstractSubstitutionModel::Pij_t().
|
virtualinherited |
Get the rate.
Implements bpp::SubstitutionModel.
Definition at line 415 of file AbstractSubstitutionModel.cpp.
References bpp::AbstractSubstitutionModel::rate_.
|
inlinevirtualinherited |
Implements bpp::SubstitutionModel.
Definition at line 271 of file AbstractSubstitutionModel.h.
References bpp::AbstractSubstitutionModel::leftEigenVectors_.
|
virtualinherited |
Get the scalar product of diagonal elements of the generator and the frequencies vector. If the generator is normalized, then scale=1. Otherwise each element must be multiplied by 1/scale.
Implements bpp::SubstitutionModel.
Definition at line 400 of file AbstractSubstitutionModel.cpp.
References bpp::AbstractSubstitutionModel::freq_, and bpp::AbstractSubstitutionModel::generator_.
Referenced by bpp::AbstractReversibleSubstitutionModel::updateMatrices().
|
inlinevirtualinherited |
Implements bpp::SubstitutionModel.
Definition at line 239 of file AbstractSubstitutionModel.h.
References bpp::AbstractSubstitutionModel::stateMap_.
|
inlinevirtualinherited |
Implements bpp::SubstitutionModel.
Definition at line 267 of file AbstractSubstitutionModel.h.
References bpp::AbstractSubstitutionModel::isDiagonalizable_.
|
inlinevirtualinherited |
Implements bpp::SubstitutionModel.
Definition at line 269 of file AbstractSubstitutionModel.h.
References bpp::AbstractSubstitutionModel::isNonSingular_.
AbstractWordSubstitutionModel & AbstractWordSubstitutionModel::operator= | ( | const AbstractWordSubstitutionModel & | model | ) |
Definition at line 193 of file AbstractWordSubstitutionModel.cpp.
References bpp::AbstractSubstitutionModel::alphabet_, bpp::AbstractSubstitutionModel::getAlphabet(), new_alphabet_, bpp::AbstractSubstitutionModel::operator=(), VnestedPrefix_, Vrate_, and VSubMod_.
Referenced by bpp::AbstractCodonSubstitutionModel::operator=().
|
inlinevirtualinherited |
Implements bpp::SubstitutionModel.
Reimplemented in bpp::F84, bpp::HKY85, bpp::JCprot, bpp::T92, bpp::K80, bpp::RN95, bpp::TN93, bpp::RE08, bpp::JCnuc, bpp::RN95s, and bpp::BinarySubstitutionModel.
Definition at line 279 of file AbstractSubstitutionModel.h.
References bpp::AbstractSubstitutionModel::getPij_t().
|
inlinevirtualinherited |
Implements bpp::SubstitutionModel.
Reimplemented in bpp::AbstractMixedSubstitutionModel.
Definition at line 277 of file AbstractSubstitutionModel.h.
References bpp::AbstractSubstitutionModel::generator_.
|
virtual |
Estimation of the parameters of the models so that the equilibrium frequencies match the given ones.
freqs | map of the frequencies |
When there is one submodel for all the positions, the submodel parameters are fit on the means of the frequencies on each position. Otherwise, each model is fit on the frequencies on its corresponding position in the word.
Reimplemented from bpp::AbstractSubstitutionModel.
Reimplemented in bpp::CodonDistanceFrequenciesSubstitutionModel, bpp::CodonDistanceFitnessPhaseFrequenciesSubstitutionModel, bpp::CodonDistancePhaseFrequenciesSubstitutionModel, and bpp::CodonRateFrequenciesSubstitutionModel.
Definition at line 595 of file AbstractWordSubstitutionModel.cpp.
References getNumberOfStates(), and VSubMod_.
|
virtualinherited |
Set equilibrium frequencies equal to the frequencies estimated from the data.
data | The sequences to use. |
pseudoCount | A quantity ![]()
|
Implements bpp::SubstitutionModel.
Reimplemented in bpp::JCprot, bpp::K80, bpp::RE08, bpp::JCnuc, bpp::UserProteinSubstitutionModel, bpp::WAG01, bpp::DSO78, bpp::JTT92, bpp::LG08, and bpp::Coala.
Definition at line 366 of file AbstractSubstitutionModel.cpp.
References bpp::AbstractSubstitutionModel::setFreq(), and bpp::AbstractSubstitutionModel::size_.
void AbstractWordSubstitutionModel::setNamespace | ( | const std::string & | prefix | ) |
Definition at line 256 of file AbstractWordSubstitutionModel.cpp.
References VnestedPrefix_, and VSubMod_.
Referenced by bpp::CodonRateFrequenciesSubstitutionModel::setNamespace(), bpp::CodonDistanceFitnessPhaseFrequenciesSubstitutionModel::setNamespace(), bpp::CodonDistancePhaseFrequenciesSubstitutionModel::setNamespace(), and bpp::CodonDistanceFrequenciesSubstitutionModel::setNamespace().
|
virtualinherited |
Set the rate of the model (must be positive).
rate | must be positive. |
Implements bpp::SubstitutionModel.
Reimplemented in bpp::AbstractMixedSubstitutionModel.
Definition at line 422 of file AbstractSubstitutionModel.cpp.
References bpp::AbstractSubstitutionModel::rate_.
Referenced by bpp::AbstractMixedSubstitutionModel::setRate().
|
virtualinherited |
Multiplies the current generator by the given scale.
scale | the scale by which the generator is multiplied. |
Implements bpp::SubstitutionModel.
Definition at line 409 of file AbstractSubstitutionModel.cpp.
References bpp::AbstractSubstitutionModel::generator_.
|
inlinevirtualinherited |
By definition Sij(i,j) = Sij(j,i).
Implements bpp::SubstitutionModel.
Definition at line 257 of file AbstractSubstitutionModel.h.
References bpp::AbstractSubstitutionModel::exchangeability_.
|
protectedvirtual |
Diagonalize the matrix, and fill the eigenValues_, iEigenValues_, leftEigenVectors_ and rightEigenVectors_ matrices.
The generator_ matrix and freq_ vector must be initialized.
Eigen values and vectors are computed from the generator and assigned to the eigenValues_ for the real part, iEigenValues_ for the imaginary part, rightEigenVectors_ and leftEigenVectors_ variables. isDiagonalizable_ checks if the generator_ is diagonalizable in R.
The optional rate parameter is not taken into account in this method to prevent unnecessary computation.
Reimplemented from bpp::AbstractSubstitutionModel.
Reimplemented in bpp::AbstractCodonSubstitutionModel, and bpp::WordSubstitutionModel.
Definition at line 280 of file AbstractWordSubstitutionModel.cpp.
References completeMatrices(), bpp::AbstractSubstitutionModel::eigenValues_, bpp::AbstractSubstitutionModel::enableEigenDecomposition(), bpp::AbstractSubstitutionModel::exchangeability_, bpp::AbstractSubstitutionModel::freq_, bpp::AbstractSubstitutionModel::generator_, getNumberOfStates(), bpp::AbstractSubstitutionModel::iEigenValues_, bpp::AbstractSubstitutionModel::isDiagonalizable_, bpp::AbstractSubstitutionModel::isNonSingular_, bpp::AbstractSubstitutionModel::leftEigenVectors_, bpp::AbstractSubstitutionModel::rightEigenVectors_, bpp::AbstractSubstitutionModel::size_, bpp::AbstractSubstitutionModel::tmpMat_, bpp::AbstractSubstitutionModel::vPowGen_, Vrate_, and VSubMod_.
Referenced by bpp::WordSubstitutionModel::updateMatrices(), and bpp::AbstractCodonSubstitutionModel::updateMatrices().
|
protectedinherited |
The alphabet relevant to this model.
Definition at line 86 of file AbstractSubstitutionModel.h.
Referenced by AbstractWordSubstitutionModel(), bpp::AbstractSubstitutionModel::getAlphabet(), operator=(), bpp::AbstractSubstitutionModel::operator=(), and ~AbstractWordSubstitutionModel().
|
mutableprotectedinherited |
Definition at line 129 of file AbstractSubstitutionModel.h.
Referenced by bpp::WordSubstitutionModel::getd2Pij_dt2(), bpp::AbstractMixedSubstitutionModel::getd2Pij_dt2(), bpp::AbstractSubstitutionModel::getd2Pij_dt2(), and bpp::AbstractSubstitutionModel::operator=().
|
mutableprotectedinherited |
Definition at line 128 of file AbstractSubstitutionModel.h.
Referenced by bpp::WordSubstitutionModel::getdPij_dt(), bpp::AbstractMixedSubstitutionModel::getdPij_dt(), bpp::AbstractSubstitutionModel::getdPij_dt(), and bpp::AbstractSubstitutionModel::operator=().
|
protectedinherited |
Tell if the eigen decomposition should be performed.
Definition at line 134 of file AbstractSubstitutionModel.h.
Referenced by bpp::AbstractMixedSubstitutionModel::AbstractMixedSubstitutionModel(), bpp::AbstractSubstitutionModel::enableEigenDecomposition(), and bpp::AbstractSubstitutionModel::operator=().
|
protectedinherited |
The vector of eigen values.
Definition at line 139 of file AbstractSubstitutionModel.h.
Referenced by bpp::AbstractMixedSubstitutionModel::AbstractMixedSubstitutionModel(), bpp::AbstractSubstitutionModel::getd2Pij_dt2(), bpp::AbstractSubstitutionModel::getdPij_dt(), bpp::AbstractSubstitutionModel::getEigenValues(), bpp::AbstractSubstitutionModel::getPij_t(), bpp::AbstractSubstitutionModel::operator=(), bpp::RE08::RE08(), updateMatrices(), bpp::gBGC::updateMatrices(), bpp::BinarySubstitutionModel::updateMatrices(), bpp::RN95s::updateMatrices(), bpp::YpR::updateMatrices(), bpp::TN93::updateMatrices(), bpp::RN95::updateMatrices(), bpp::JCnuc::updateMatrices(), bpp::K80::updateMatrices(), bpp::T92::updateMatrices(), bpp::HKY85::updateMatrices(), bpp::F84::updateMatrices(), bpp::JCprot::updateMatrices(), and bpp::AbstractSubstitutionModel::updateMatrices().
|
protectedinherited |
The exchangeability matrix of the model, defined as
. When the model is reversible, this matrix is symetric.
Definition at line 122 of file AbstractSubstitutionModel.h.
Referenced by bpp::AbstractMixedSubstitutionModel::AbstractMixedSubstitutionModel(), bpp::Coala::Coala(), bpp::LGL08_CAT::EmbeddedModel::EmbeddedModel(), bpp::AbstractSubstitutionModel::getExchangeabilityMatrix(), bpp::AbstractSubstitutionModel::operator=(), bpp::RE08::RE08(), bpp::Coala::readFromFile(), bpp::UserProteinSubstitutionModel::readFromFile(), bpp::AbstractSubstitutionModel::Sij(), updateMatrices(), bpp::SSR::updateMatrices(), bpp::RN95s::updateMatrices(), bpp::YpR::updateMatrices(), bpp::GTR::updateMatrices(), bpp::TN93::updateMatrices(), bpp::RN95::updateMatrices(), bpp::JCnuc::updateMatrices(), bpp::K80::updateMatrices(), bpp::T92::updateMatrices(), bpp::RE08::updateMatrices(), bpp::HKY85::updateMatrices(), bpp::F84::updateMatrices(), bpp::JCprot::updateMatrices(), bpp::AbstractSubstitutionModel::updateMatrices(), and bpp::AbstractReversibleSubstitutionModel::updateMatrices().
|
protectedinherited |
The vector of equilibrium frequencies.
Definition at line 113 of file AbstractSubstitutionModel.h.
Referenced by bpp::AbstractSubstitutionModel::AbstractSubstitutionModel(), bpp::WordSubstitutionModel::completeMatrices(), bpp::Coala::computeEquilibriumFrequencies(), bpp::RE08::d2Pij_dt2(), bpp::RE08::dPij_dt(), bpp::DSO78::DSO78(), bpp::LG08::fireParameterChanged(), bpp::DSO78::fireParameterChanged(), bpp::JTT92::fireParameterChanged(), bpp::WAG01::fireParameterChanged(), bpp::UserProteinSubstitutionModel::fireParameterChanged(), bpp::JCprot::fireParameterChanged(), bpp::AbstractSubstitutionModel::freq(), bpp::RE08::getd2Pij_dt2(), bpp::RE08::getdPij_dt(), bpp::AbstractSubstitutionModel::getFrequencies(), bpp::RN95s::getPij_t(), bpp::RE08::getPij_t(), bpp::RN95::getPij_t(), bpp::AbstractSubstitutionModel::getScale(), bpp::JCprot::JCprot(), bpp::JTT92::JTT92(), bpp::LG08::LG08(), bpp::AbstractSubstitutionModel::operator=(), bpp::RN95s::Pij_t(), bpp::RE08::Pij_t(), bpp::RN95::Pij_t(), bpp::RE08::RE08(), bpp::UserProteinSubstitutionModel::readFromFile(), bpp::AbstractSubstitutionModel::setFreq(), bpp::LG08::setFreqFromData(), bpp::DSO78::setFreqFromData(), bpp::JTT92::setFreqFromData(), bpp::WAG01::setFreqFromData(), bpp::UserProteinSubstitutionModel::setFreqFromData(), bpp::JCprot::setFreqFromData(), updateMatrices(), bpp::gBGC::updateMatrices(), bpp::L95::updateMatrices(), bpp::SSR::updateMatrices(), bpp::MixtureOfASubstitutionModel::updateMatrices(), bpp::BinarySubstitutionModel::updateMatrices(), bpp::RN95s::updateMatrices(), bpp::MixtureOfSubstitutionModels::updateMatrices(), bpp::YpR::updateMatrices(), bpp::GTR::updateMatrices(), bpp::TN93::updateMatrices(), bpp::RN95::updateMatrices(), bpp::JCnuc::updateMatrices(), bpp::K80::updateMatrices(), bpp::T92::updateMatrices(), bpp::RE08::updateMatrices(), bpp::HKY85::updateMatrices(), bpp::F84::updateMatrices(), bpp::JCprot::updateMatrices(), bpp::AbstractSubstitutionModel::updateMatrices(), bpp::AbstractReversibleSubstitutionModel::updateMatrices(), bpp::UserProteinSubstitutionModel::UserProteinSubstitutionModel(), and bpp::WAG01::WAG01().
|
protectedinherited |
The generator matrix of the model.
Definition at line 108 of file AbstractSubstitutionModel.h.
Referenced by bpp::AbstractMixedSubstitutionModel::AbstractMixedSubstitutionModel(), bpp::AbstractCodonSubstitutionModel::completeMatrices(), bpp::AbstractSubstitutionModel::getGenerator(), bpp::AbstractSubstitutionModel::getScale(), bpp::AbstractSubstitutionModel::operator=(), bpp::AbstractSubstitutionModel::Qij(), bpp::RE08::RE08(), bpp::AbstractSubstitutionModel::setScale(), updateMatrices(), bpp::gBGC::updateMatrices(), bpp::L95::updateMatrices(), bpp::BinarySubstitutionModel::updateMatrices(), bpp::RN95s::updateMatrices(), bpp::YpR::updateMatrices(), bpp::RN95::updateMatrices(), bpp::TN93::updateMatrices(), bpp::JCnuc::updateMatrices(), bpp::K80::updateMatrices(), bpp::T92::updateMatrices(), bpp::RE08::updateMatrices(), bpp::HKY85::updateMatrices(), bpp::F84::updateMatrices(), bpp::JCprot::updateMatrices(), bpp::AbstractSubstitutionModel::updateMatrices(), and bpp::AbstractReversibleSubstitutionModel::updateMatrices().
|
protectedinherited |
The vector of the imaginary part of the eigen values.
Definition at line 144 of file AbstractSubstitutionModel.h.
Referenced by bpp::AbstractSubstitutionModel::getd2Pij_dt2(), bpp::AbstractSubstitutionModel::getdPij_dt(), bpp::AbstractSubstitutionModel::getIEigenValues(), bpp::AbstractSubstitutionModel::getPij_t(), bpp::AbstractSubstitutionModel::operator=(), updateMatrices(), bpp::gBGC::updateMatrices(), bpp::RN95s::updateMatrices(), bpp::YpR::updateMatrices(), bpp::RN95::updateMatrices(), and bpp::AbstractSubstitutionModel::updateMatrices().
|
protectedinherited |
boolean value for diagonalizability in R of the generator_
Definition at line 150 of file AbstractSubstitutionModel.h.
Referenced by bpp::AbstractReversibleSubstitutionModel::AbstractReversibleSubstitutionModel(), bpp::AbstractSubstitutionModel::getd2Pij_dt2(), bpp::AbstractSubstitutionModel::getdPij_dt(), bpp::AbstractSubstitutionModel::getPij_t(), bpp::AbstractSubstitutionModel::isDiagonalizable(), bpp::AbstractSubstitutionModel::operator=(), updateMatrices(), bpp::gBGC::updateMatrices(), bpp::RN95s::updateMatrices(), bpp::YpR::updateMatrices(), bpp::RN95::updateMatrices(), and bpp::AbstractSubstitutionModel::updateMatrices().
|
protectedinherited |
boolean value for non-singularity of rightEigenVectors_
Definition at line 160 of file AbstractSubstitutionModel.h.
Referenced by bpp::AbstractReversibleSubstitutionModel::AbstractReversibleSubstitutionModel(), bpp::AbstractSubstitutionModel::getd2Pij_dt2(), bpp::AbstractSubstitutionModel::getdPij_dt(), bpp::AbstractSubstitutionModel::getPij_t(), bpp::AbstractSubstitutionModel::isNonSingular(), bpp::AbstractSubstitutionModel::operator=(), updateMatrices(), bpp::gBGC::updateMatrices(), bpp::RN95s::updateMatrices(), bpp::YpR::updateMatrices(), bpp::RN95::updateMatrices(), and bpp::AbstractSubstitutionModel::updateMatrices().
|
protectedinherited |
The matrix made of left eigen vectors (by row) if rightEigenVectors_ is non-singular.
Definition at line 166 of file AbstractSubstitutionModel.h.
Referenced by bpp::AbstractMixedSubstitutionModel::AbstractMixedSubstitutionModel(), bpp::AbstractSubstitutionModel::getd2Pij_dt2(), bpp::AbstractSubstitutionModel::getdPij_dt(), bpp::AbstractSubstitutionModel::getPij_t(), bpp::AbstractSubstitutionModel::getRowLeftEigenVectors(), bpp::AbstractSubstitutionModel::operator=(), bpp::RE08::RE08(), updateMatrices(), bpp::gBGC::updateMatrices(), bpp::BinarySubstitutionModel::updateMatrices(), bpp::RN95s::updateMatrices(), bpp::YpR::updateMatrices(), bpp::TN93::updateMatrices(), bpp::RN95::updateMatrices(), bpp::JCnuc::updateMatrices(), bpp::K80::updateMatrices(), bpp::T92::updateMatrices(), bpp::HKY85::updateMatrices(), bpp::F84::updateMatrices(), bpp::JCprot::updateMatrices(), and bpp::AbstractSubstitutionModel::updateMatrices().
|
private |
boolean flag to check if a specific WordAlphabet has been built
Definition at line 82 of file AbstractWordSubstitutionModel.h.
Referenced by AbstractWordSubstitutionModel(), operator=(), and ~AbstractWordSubstitutionModel().
|
mutableprotectedinherited |
These ones are for bookkeeping:
Definition at line 127 of file AbstractSubstitutionModel.h.
Referenced by bpp::WordSubstitutionModel::getPij_t(), bpp::AbstractMixedSubstitutionModel::getPij_t(), bpp::AbstractSubstitutionModel::getPij_t(), and bpp::AbstractSubstitutionModel::operator=().
|
protectedinherited |
The rate of the model (default: 1). The generator (and all its vectorial components) is independent of the rate, since it should be normalized.
Definition at line 103 of file AbstractSubstitutionModel.h.
Referenced by bpp::AbstractSubstitutionModel::addRateParameter(), bpp::RN95s::d2Pij_dt2(), bpp::JCnuc::d2Pij_dt2(), bpp::TN93::d2Pij_dt2(), bpp::RN95::d2Pij_dt2(), bpp::K80::d2Pij_dt2(), bpp::T92::d2Pij_dt2(), bpp::JCprot::d2Pij_dt2(), bpp::HKY85::d2Pij_dt2(), bpp::F84::d2Pij_dt2(), bpp::RN95s::dPij_dt(), bpp::JCnuc::dPij_dt(), bpp::TN93::dPij_dt(), bpp::RN95::dPij_dt(), bpp::K80::dPij_dt(), bpp::T92::dPij_dt(), bpp::JCprot::dPij_dt(), bpp::HKY85::dPij_dt(), bpp::F84::dPij_dt(), bpp::WordSubstitutionModel::getd2Pij_dt2(), bpp::RN95s::getd2Pij_dt2(), bpp::JCnuc::getd2Pij_dt2(), bpp::TN93::getd2Pij_dt2(), bpp::RN95::getd2Pij_dt2(), bpp::K80::getd2Pij_dt2(), bpp::T92::getd2Pij_dt2(), bpp::JCprot::getd2Pij_dt2(), bpp::F84::getd2Pij_dt2(), bpp::HKY85::getd2Pij_dt2(), bpp::AbstractSubstitutionModel::getd2Pij_dt2(), bpp::WordSubstitutionModel::getdPij_dt(), bpp::RN95s::getdPij_dt(), bpp::JCnuc::getdPij_dt(), bpp::TN93::getdPij_dt(), bpp::RN95::getdPij_dt(), bpp::K80::getdPij_dt(), bpp::T92::getdPij_dt(), bpp::JCprot::getdPij_dt(), bpp::HKY85::getdPij_dt(), bpp::F84::getdPij_dt(), bpp::AbstractSubstitutionModel::getdPij_dt(), bpp::WordSubstitutionModel::getPij_t(), bpp::RN95s::getPij_t(), bpp::JCnuc::getPij_t(), bpp::TN93::getPij_t(), bpp::RN95::getPij_t(), bpp::K80::getPij_t(), bpp::T92::getPij_t(), bpp::JCprot::getPij_t(), bpp::HKY85::getPij_t(), bpp::F84::getPij_t(), bpp::AbstractSubstitutionModel::getPij_t(), bpp::AbstractSubstitutionModel::getRate(), bpp::AbstractMixedSubstitutionModel::normalizeVRates(), bpp::AbstractSubstitutionModel::operator=(), bpp::RN95s::Pij_t(), bpp::JCnuc::Pij_t(), bpp::TN93::Pij_t(), bpp::RN95::Pij_t(), bpp::K80::Pij_t(), bpp::T92::Pij_t(), bpp::JCprot::Pij_t(), bpp::HKY85::Pij_t(), bpp::F84::Pij_t(), bpp::AbstractMixedSubstitutionModel::setRate(), bpp::AbstractSubstitutionModel::setRate(), and bpp::BinarySubstitutionModel::updateMatrices().
|
protectedinherited |
The matrix made of right eigen vectors (by column).
Definition at line 155 of file AbstractSubstitutionModel.h.
Referenced by bpp::AbstractMixedSubstitutionModel::AbstractMixedSubstitutionModel(), bpp::AbstractSubstitutionModel::getColumnRightEigenVectors(), bpp::AbstractSubstitutionModel::getd2Pij_dt2(), bpp::AbstractSubstitutionModel::getdPij_dt(), bpp::AbstractSubstitutionModel::getPij_t(), bpp::AbstractSubstitutionModel::operator=(), bpp::RE08::RE08(), updateMatrices(), bpp::gBGC::updateMatrices(), bpp::BinarySubstitutionModel::updateMatrices(), bpp::RN95s::updateMatrices(), bpp::YpR::updateMatrices(), bpp::TN93::updateMatrices(), bpp::RN95::updateMatrices(), bpp::JCnuc::updateMatrices(), bpp::K80::updateMatrices(), bpp::T92::updateMatrices(), bpp::HKY85::updateMatrices(), bpp::F84::updateMatrices(), bpp::JCprot::updateMatrices(), and bpp::AbstractSubstitutionModel::updateMatrices().
|
protectedinherited |
The size of the generator, i.e. the number of states.
Definition at line 96 of file AbstractSubstitutionModel.h.
Referenced by bpp::AbstractMixedSubstitutionModel::AbstractMixedSubstitutionModel(), bpp::AbstractSubstitutionModel::AbstractSubstitutionModel(), bpp::RE08::d2Pij_dt2(), bpp::RE08::dPij_dt(), bpp::JCnuc::getd2Pij_dt2(), bpp::RE08::getd2Pij_dt2(), bpp::JCprot::getd2Pij_dt2(), bpp::AbstractSubstitutionModel::getd2Pij_dt2(), bpp::JCnuc::getdPij_dt(), bpp::RE08::getdPij_dt(), bpp::JCprot::getdPij_dt(), bpp::AbstractSubstitutionModel::getdPij_dt(), bpp::RE08::getNumberOfStates(), bpp::JCnuc::getPij_t(), bpp::RE08::getPij_t(), bpp::JCprot::getPij_t(), bpp::AbstractSubstitutionModel::getPij_t(), bpp::AbstractSubstitutionModel::operator=(), bpp::RE08::Pij_t(), bpp::RE08::RE08(), bpp::AbstractSubstitutionModel::setFreq(), bpp::LG08::setFreqFromData(), bpp::DSO78::setFreqFromData(), bpp::JTT92::setFreqFromData(), bpp::WAG01::setFreqFromData(), bpp::UserProteinSubstitutionModel::setFreqFromData(), bpp::JCprot::setFreqFromData(), bpp::AbstractSubstitutionModel::setFreqFromData(), bpp::T92::T92(), bpp::TN93::TN93(), updateMatrices(), bpp::RN95s::updateMatrices(), bpp::YpR::updateMatrices(), bpp::RN95::updateMatrices(), bpp::RE08::updateMatrices(), bpp::AbstractSubstitutionModel::updateMatrices(), and bpp::AbstractReversibleSubstitutionModel::updateMatrices().
|
protectedinherited |
The map of model states with alphabet states.
Definition at line 91 of file AbstractSubstitutionModel.h.
Referenced by bpp::AbstractSubstitutionModel::getAlphabetStateAsChar(), bpp::AbstractSubstitutionModel::getAlphabetStateAsInt(), bpp::AbstractSubstitutionModel::getAlphabetStates(), bpp::AbstractSubstitutionModel::getModelStates(), bpp::AbstractSubstitutionModel::getStateMap(), and bpp::AbstractSubstitutionModel::operator=().
|
mutableprotectedinherited |
For computational issues.
Definition at line 177 of file AbstractSubstitutionModel.h.
Referenced by bpp::AbstractSubstitutionModel::getd2Pij_dt2(), bpp::AbstractSubstitutionModel::getdPij_dt(), bpp::AbstractSubstitutionModel::getPij_t(), bpp::AbstractSubstitutionModel::operator=(), updateMatrices(), bpp::gBGC::updateMatrices(), and bpp::YpR::updateMatrices().
|
protected |
Definition at line 86 of file AbstractWordSubstitutionModel.h.
Referenced by bpp::AbstractCodonSubstitutionModel::AbstractCodonSubstitutionModel(), AbstractWordSubstitutionModel(), operator=(), setNamespace(), and bpp::TripletSubstitutionModel::TripletSubstitutionModel().
|
protectedinherited |
vector of the powers of generator_ for Taylor development (if rightEigenVectors_ is singular).
Definition at line 172 of file AbstractSubstitutionModel.h.
Referenced by bpp::AbstractSubstitutionModel::getd2Pij_dt2(), bpp::AbstractSubstitutionModel::getdPij_dt(), bpp::AbstractSubstitutionModel::getPij_t(), bpp::AbstractSubstitutionModel::operator=(), updateMatrices(), bpp::gBGC::updateMatrices(), bpp::RN95s::updateMatrices(), bpp::YpR::updateMatrices(), bpp::RN95::updateMatrices(), and bpp::AbstractSubstitutionModel::updateMatrices().
|
protected |
Definition at line 88 of file AbstractWordSubstitutionModel.h.
Referenced by bpp::AbstractCodonSubstitutionModel::AbstractCodonSubstitutionModel(), AbstractWordSubstitutionModel(), bpp::WordSubstitutionModel::getd2Pij_dt2(), bpp::WordSubstitutionModel::getdPij_dt(), bpp::WordSubstitutionModel::getPij_t(), operator=(), bpp::TripletSubstitutionModel::TripletSubstitutionModel(), updateMatrices(), bpp::WordSubstitutionModel::updateMatrices(), and bpp::AbstractCodonSubstitutionModel::updateMatrices().
|
protected |
Definition at line 85 of file AbstractWordSubstitutionModel.h.
Referenced by bpp::AbstractCodonSubstitutionModel::AbstractCodonSubstitutionModel(), AbstractWordSubstitutionModel(), bpp::WordSubstitutionModel::completeMatrices(), bpp::WordSubstitutionModel::getd2Pij_dt2(), bpp::WordSubstitutionModel::getdPij_dt(), bpp::TripletSubstitutionModel::getName(), bpp::WordSubstitutionModel::getName(), getNModel(), getNumberOfModels(), bpp::WordSubstitutionModel::getPij_t(), operator=(), setFreq(), setNamespace(), bpp::TripletSubstitutionModel::TripletSubstitutionModel(), updateMatrices(), bpp::WordSubstitutionModel::updateMatrices(), bpp::AbstractCodonSubstitutionModel::updateMatrices(), bpp::WordSubstitutionModel::WordSubstitutionModel(), and ~AbstractWordSubstitutionModel().