bpp-phyl3
3.0.0
|
Class for substitution models of codons with several layers of codon models. More...
#include <Bpp/Phyl/Model/Codon/CodonAdHocSubstitutionModel.h>
Public Member Functions | |
CodonAdHocSubstitutionModel (std::shared_ptr< const GeneticCode > gCode, std::unique_ptr< NucleotideSubstitutionModelInterface > pmod, std::vector< std::unique_ptr< CoreCodonSubstitutionModelInterface >> &vpmodel, const std::string &name) | |
Build a new CodonAdHocSubstitutionModel object from a pointer to NucleotideSubstitutionModel. More... | |
CodonAdHocSubstitutionModel (std::shared_ptr< const GeneticCode > gCode, std::unique_ptr< NucleotideSubstitutionModelInterface > pmod1, std::unique_ptr< NucleotideSubstitutionModelInterface > pmod2, std::unique_ptr< NucleotideSubstitutionModelInterface > pmod3, std::vector< std::unique_ptr< CoreCodonSubstitutionModelInterface >> &vpmodel, const std::string &name) | |
Build a new CodonAdHocSubstitutionModel object from three pointers to NucleotideSubstitutionModels. More... | |
CodonAdHocSubstitutionModel (const CodonAdHocSubstitutionModel &model) | |
CodonAdHocSubstitutionModel & | operator= (const CodonAdHocSubstitutionModel &model) |
virtual | ~CodonAdHocSubstitutionModel () |
CodonAdHocSubstitutionModel * | clone () const override |
void | fireParameterChanged (const ParameterList ¶meterlist) override |
Tells the model that a parameter value has changed. More... | |
std::string | getName () const override |
Get the name of the model. More... | |
void | setNamespace (const std::string &prefix) override |
size_t | getNumberOfModels () const |
const CoreCodonSubstitutionModelInterface & | layerModel (size_t i) const |
double | getCodonsMulRate (size_t i, size_t j) const override |
Returns the multiplicative rate specific to two codons specified by their number. The respective generator rate is this rate multiplied by the rate defined by the model defined on nucleotides. More... | |
void | setFreq (std::map< int, double > &frequencies) override |
Estimation of the parameters of the models so that the equilibrium frequencies match the given ones. More... | |
const CodonFrequencySetInterface & | codonFrequencySet () const override |
bool | hasCodonFrequencySet () const override |
std::shared_ptr< const GeneticCode > | getGeneticCode () const override |
virtual size_t | getNumberOfIndependentParameters () const=0 |
size_t | getNumberOfIndependentParameters () const |
virtual void | aliasParameters (const std::string &p1, const std::string &p2)=0 |
virtual void | aliasParameters (std::map< std::string, std::string > &unparsedParams, bool verbose)=0 |
void | aliasParameters (const std::string &p1, const std::string &p2) |
void | aliasParameters (std::map< std::string, std::string > &unparsedParams, bool verbose) |
virtual void | unaliasParameters (const std::string &p1, const std::string &p2)=0 |
void | unaliasParameters (const std::string &p1, const std::string &p2) |
virtual const ParameterList & | getIndependentParameters () const=0 |
const ParameterList & | getIndependentParameters () const |
virtual std::vector< std::string > | getAlias (const std::string &name) const=0 |
virtual std::vector< std::string > | getAlias (const std::string &name) const |
virtual std::map< std::string, std::string > | getAliases () const=0 |
virtual std::map< std::string, std::string > | getAliases () const |
virtual bool | hasParameter (const std::string &name) const=0 |
bool | hasParameter (const std::string &name) const override |
virtual const ParameterList & | getParameters () const=0 |
const ParameterList & | getParameters () const override |
virtual const Parameter & | parameter (const std::string &name) const=0 |
const Parameter & | parameter (const std::string &name) const override |
virtual double | getParameterValue (const std::string &name) const=0 |
double | getParameterValue (const std::string &name) const override |
virtual void | setAllParametersValues (const ParameterList ¶meters)=0 |
void | setAllParametersValues (const ParameterList ¶meters) override |
virtual void | setParameterValue (const std::string &name, double value)=0 |
void | setParameterValue (const std::string &name, double value) override |
virtual void | setParametersValues (const ParameterList ¶meters)=0 |
void | setParametersValues (const ParameterList ¶meters) override |
virtual bool | matchParametersValues (const ParameterList ¶meters)=0 |
bool | matchParametersValues (const ParameterList ¶meters) override |
virtual void | removeConstraint (const std::string &name)=0 |
void | removeConstraint (const std::string &name) override |
virtual void | setConstraint (const std::string &name, std::shared_ptr< ConstraintInterface > constraint)=0 |
void | setConstraint (const std::string &name, std::shared_ptr< ConstraintInterface > constraint) override |
virtual size_t | getNumberOfParameters () const=0 |
size_t | getNumberOfParameters () const override |
virtual std::string | getNamespace () const=0 |
std::string | getNamespace () const override |
virtual std::string | getParameterNameWithoutNamespace (const std::string &name) const=0 |
std::string | getParameterNameWithoutNamespace (const std::string &name) const override |
virtual double | Qij (size_t i, size_t j) const =0 |
A method for computing all necessary matrices. More... | |
virtual double | Qij (size_t i, size_t j) const |
A method for computing all necessary matrices. More... | |
virtual const Matrix< double > & | generator () const =0 |
const Matrix< double > & | generator () const |
virtual const Matrix< double > & | exchangeabilityMatrix () const =0 |
const Matrix< double > & | exchangeabilityMatrix () const |
virtual double | Sij (size_t i, size_t j) const =0 |
double | Sij (size_t i, size_t j) const |
virtual void | enableEigenDecomposition (bool yn)=0 |
Set if eigenValues and Vectors must be computed. More... | |
virtual bool | enableEigenDecomposition ()=0 |
Tell if eigenValues and Vectors must be computed. 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 const Vdouble & | getEigenValues () const =0 |
const Vdouble & | getEigenValues () const |
virtual const Vdouble & | getIEigenValues () const =0 |
const Vdouble & | getIEigenValues () const |
virtual bool | isDiagonalizable () const =0 |
bool | isDiagonalizable () const |
virtual bool | isNonSingular () const =0 |
bool | isNonSingular () const |
virtual const Matrix< double > & | getRowLeftEigenVectors () const =0 |
const Matrix< double > & | getRowLeftEigenVectors () const |
virtual const Matrix< double > & | getColumnRightEigenVectors () const =0 |
const Matrix< double > & | getColumnRightEigenVectors () const |
virtual void | setScalable (bool scalable)=0 |
sets if model is scalable, ie scale can be changed. Default : true, set to false to avoid normalization for example. More... | |
void | setScalable (bool scalable) |
sets if model is scalable, ie scale can be changed. Default : true, set to false to avoid normalization for example. More... | |
virtual bool | isScalable () const =0 |
returns if model is scalable More... | |
virtual bool | isScalable () const |
returns if model is scalable More... | |
virtual double | getScale () const =0 |
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... | |
double | getScale () const |
return scale More... | |
virtual void | setScale (double scale)=0 |
Multiplies the current generator by the given scale. More... | |
void | setScale (double scale) |
Multiplies the current generator by the given scale. More... | |
virtual void | normalize ()=0 |
Normalize the generator. More... | |
void | normalize () |
normalize the generator More... | |
virtual void | setDiagonal ()=0 |
set the diagonal of the generator such that sum on each line equals 0. More... | |
void | setDiagonal () |
set the diagonal of the generator such that sum on each line equals 0. More... | |
virtual double | freq (size_t i) const =0 |
virtual double | freq (size_t i) const override |
virtual double | Pij_t (size_t i, size_t j, double t) const =0 |
virtual double | Pij_t (size_t i, size_t j, double t) const override |
virtual double | dPij_dt (size_t i, size_t j, double t) const =0 |
virtual double | dPij_dt (size_t i, size_t j, double t) const override |
virtual double | d2Pij_dt2 (size_t i, size_t j, double t) const =0 |
virtual double | d2Pij_dt2 (size_t i, size_t j, double t) const override |
virtual const Vdouble & | getFrequencies () const =0 |
const Vdouble & | getFrequencies () const override |
virtual bool | computeFrequencies () const =0 |
virtual void | computeFrequencies (bool yn)=0 |
bool | computeFrequencies () const |
void | computeFrequencies (bool yn) |
virtual const Matrix< double > & | getPij_t (double t) const =0 |
const Matrix< double > & | getPij_t (double t) const |
virtual const Matrix< double > & | getdPij_dt (double t) const =0 |
const Matrix< double > & | getdPij_dt (double t) const |
virtual const Matrix< double > & | getd2Pij_dt2 (double t) const =0 |
const Matrix< double > & | getd2Pij_dt2 (double t) const |
virtual const Eigen::VectorXd & | Lik_t (const Eigen::VectorXd &values, double t) const =0 |
const Eigen::VectorXd & | Lik_t (const Eigen::VectorXd &values, double t) const override |
virtual const Eigen::VectorXd & | dLik_dt (const Eigen::VectorXd &values, double t) const =0 |
const Eigen::VectorXd & | dLik_dt (const Eigen::VectorXd &values, double t) const override |
virtual const Eigen::VectorXd & | d2Lik_dt2 (const Eigen::VectorXd &values, double t) const =0 |
const Eigen::VectorXd & | d2Lik_dt2 (const Eigen::VectorXd &values, double t) const override |
virtual void | setFreqFromData (const SequenceDataInterface &data, double pseudoCount=0)=0 |
Set equilibrium frequencies equal to the frequencies estimated from the data. More... | |
void | setFreqFromData (const SequenceDataInterface &data, double pseudoCount=0) override |
Set equilibrium frequencies equal to the frequencies estimated from the data. More... | |
virtual const std::vector< int > & | getAlphabetStates () const =0 |
const std::vector< int > & | getAlphabetStates () const override |
virtual const StateMapInterface & | stateMap () const =0 |
const StateMapInterface & | stateMap () const override |
virtual std::shared_ptr< const StateMapInterface > | getStateMap () const =0 |
std::shared_ptr< const StateMapInterface > | getStateMap () const override |
virtual std::vector< size_t > | getModelStates (int code) const =0 |
Get the state in the model corresponding to a particular state in the alphabet. More... | |
virtual std::vector< size_t > | getModelStates (const std::string &code) const =0 |
Get the state in the model corresponding to a particular state in the alphabet. More... | |
std::vector< size_t > | getModelStates (int code) const override |
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 override |
Get the state in the model corresponding to a particular state in the alphabet. More... | |
virtual int | getAlphabetStateAsInt (size_t index) const =0 |
int | getAlphabetStateAsInt (size_t index) const override |
virtual std::string | getAlphabetStateAsChar (size_t index) const =0 |
std::string | getAlphabetStateAsChar (size_t index) const override |
virtual const Alphabet & | alphabet () const =0 |
const Alphabet & | alphabet () const override |
virtual std::shared_ptr< const Alphabet > | getAlphabet () const =0 |
std::shared_ptr< const Alphabet > | getAlphabet () const override |
virtual const FrequencySetInterface & | frequencySet () const =0 |
const FrequencySetInterface & | frequencySet () const override |
virtual size_t | getNumberOfStates () const =0 |
Get the number of states. More... | |
size_t | getNumberOfStates () const override |
Get the number of states. More... | |
virtual double | getInitValue (size_t i, int state) const =0 |
double | getInitValue (size_t i, int state) const override |
virtual double | getRate () const =0 |
Get the rate. More... | |
virtual double | getRate () const override |
The rate of the substitution process. More... | |
virtual void | setRate (double rate)=0 |
Set the rate of the model (must be positive). More... | |
virtual void | setRate (double rate) override |
Set the rate of the model (must be positive). More... | |
virtual void | addRateParameter ()=0 |
void | addRateParameter () override |
add a "rate" parameter to the model, that handles the overall rate of the process. More... | |
const SubstitutionModelInterface & | nModel (size_t i) const |
returns the ith model, or throw an exception if i is not a valid number. More... | |
void | setVerboseLevel (short level) |
short | verboseLevel () const |
bool | hasIndependentParameter (const std::string &name) const |
ParameterList | getAliasedParameters (const ParameterList &pl) const |
ParameterList | getFromParameters (const ParameterList &pl) const |
std::string | getFrom (const std::string &name) const |
const std::shared_ptr< Parameter > & | getParameter (const std::string &name) const |
Protected Member Functions | |
void | completeMatrices_ () override |
Method inherited from AbstractWordSubstitutionModel. More... | |
void | updateMatrices_ () override |
Diagonalize the matrix, and fill the eigenValues_, iEigenValues_, leftEigenVectors_ and rightEigenVectors_ matrices. More... | |
virtual ParameterList & | getParameters_ ()=0 |
ParameterList & | getParameters_ () override |
virtual Vdouble & | getFrequencies_ ()=0 |
Vdouble & | getFrequencies_ () override |
virtual void | fillBasicGenerator_ () |
First fill of the generator, from the position model. More... | |
const std::shared_ptr< Parameter > & | getParameter (size_t i) const |
std::shared_ptr< Parameter > & | getParameter (size_t i) |
void | addParameter_ (Parameter *parameter) |
void | addParameters_ (const ParameterList ¶meters) |
void | shareParameter_ (const std::shared_ptr< Parameter > ¶meter) |
void | shareParameters_ (const ParameterList ¶meters) |
void | includeParameters_ (const ParameterList ¶meters) |
void | deleteParameter_ (size_t index) |
void | deleteParameter_ (std::string &name) |
void | deleteParameters_ (const std::vector< std::string > &names) |
void | resetParameters_ () |
Parameter & | getParameter_ (const std::string &name) |
Parameter & | getParameter_ (size_t index) |
const Parameter & | getParameter_ (size_t index) const |
Parameter & | getParameterWithNamespace_ (const std::string &name) |
const Parameter & | getParameterWithNamespace_ (const std::string &name) const |
Protected Attributes | |
std::vector< std::shared_ptr< SubstitutionModelInterface > > | VSubMod_ |
std::vector< std::string > | VnestedPrefix_ |
std::vector< double > | Vrate_ |
bool | isScalable_ |
If the model is scalable (ie generator can be normalized automatically). More... | |
RowMatrix< double > | generator_ |
The generator matrix of the model. More... | |
bool | computeFreq_ |
if the Frequencies must be computed from the generator More... | |
RowMatrix< double > | exchangeability_ |
The exchangeability matrix of the model, defined as . When the model is reversible, this matrix is symmetric. More... | |
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 matrix made of right eigen vectors (by column). More... | |
bool | isNonSingular_ |
boolean value for non-singularity of rightEigenVectors_ More... | |
RowMatrix< double > | leftEigenVectors_ |
The matrix made of left eigen vectors (by row) if rightEigenVectors_ is non-singular. More... | |
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... | |
std::shared_ptr< const Alphabet > | alphabet_ |
The alphabet relevant to this model. More... | |
std::shared_ptr< const StateMapInterface > | stateMap_ |
The map of model states with alphabet states. More... | |
size_t | size_ |
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... | |
Vdouble | freq_ |
The vector of equilibrium frequencies. More... | |
RowMatrix< double > | pijt_ |
These ones are for bookkeeping: More... | |
RowMatrix< double > | dpijt_ |
RowMatrix< double > | d2pijt_ |
short | verboseLevel_ |
Private Attributes | |
std::vector< std::unique_ptr< CoreCodonSubstitutionModelInterface > > | vModel_ |
std::string | name_ |
std::unique_ptr< CodonFrequencySetInterface > | freqSet_ |
optional FrequencySet if model is defined through a FrequencySet. More... | |
bool | hasParametrizedRates_ |
boolean for the parametrization of the position relative rates. Default : false. More... | |
std::shared_ptr< const GeneticCode > | gCode_ |
bool | newAlphabet_ |
boolean flag to check if a specific WordAlphabet has been built More... | |
Eigen::VectorXd | lik_ |
ParameterList | independentParameters_ |
std::map< std::string, std::shared_ptr< AliasParameterListener > > | aliasListenersRegister_ |
ParameterList | parameters_ |
std::string | prefix_ |
Class for substitution models of codons with several layers of codon models.
Objects of this class are built from three substitution models of NucleicAlphabets. No model is directly accessible.
Only substitutions with one letter changed are accepted.
Definition at line 24 of file CodonAdHocSubstitutionModel.h.
CodonAdHocSubstitutionModel::CodonAdHocSubstitutionModel | ( | std::shared_ptr< const GeneticCode > | gCode, |
std::unique_ptr< NucleotideSubstitutionModelInterface > | pmod, | ||
std::vector< std::unique_ptr< CoreCodonSubstitutionModelInterface >> & | vpmodel, | ||
const std::string & | name | ||
) |
Build a new CodonAdHocSubstitutionModel object from a pointer to NucleotideSubstitutionModel.
gCode | pointer to a GeneticCode |
pmod | pointer to the NucleotideSubstitutionModel to use in the three positions. The instance will then own this substitution model. |
vpmodel | vector of codon models. They will be owned by the model. |
name | the name of the model |
Definition at line 13 of file CodonAdHocSubstitutionModel.cpp.
References bpp::AbstractParameterAliasable::addParameters_(), bpp::AbstractSubstitutionModel::computeFrequencies(), freqSet_, bpp::AbstractCodonSubstitutionModel::setNamespace(), bpp::AbstractCodonSubstitutionModel::updateMatrices_(), and vModel_.
Referenced by clone().
CodonAdHocSubstitutionModel::CodonAdHocSubstitutionModel | ( | std::shared_ptr< const GeneticCode > | gCode, |
std::unique_ptr< NucleotideSubstitutionModelInterface > | pmod1, | ||
std::unique_ptr< NucleotideSubstitutionModelInterface > | pmod2, | ||
std::unique_ptr< NucleotideSubstitutionModelInterface > | pmod3, | ||
std::vector< std::unique_ptr< CoreCodonSubstitutionModelInterface >> & | vpmodel, | ||
const std::string & | name | ||
) |
Build a new CodonAdHocSubstitutionModel object from three pointers to NucleotideSubstitutionModels.
gCode | pointer to a GeneticCode |
pmod1,pmod2,pmod3 | pointers to the NucleotideSubstitutionModels to use in the three positions. |
vpmodel | vector of codon models. They will be owned by the model. |
name | the name of the model |
Definition at line 44 of file CodonAdHocSubstitutionModel.cpp.
References bpp::AbstractParameterAliasable::addParameters_(), bpp::AbstractSubstitutionModel::computeFrequencies(), freqSet_, bpp::AbstractCodonSubstitutionModel::setNamespace(), bpp::AbstractCodonSubstitutionModel::updateMatrices_(), and vModel_.
CodonAdHocSubstitutionModel::CodonAdHocSubstitutionModel | ( | const CodonAdHocSubstitutionModel & | model | ) |
Definition at line 79 of file CodonAdHocSubstitutionModel.cpp.
|
inlinevirtual |
Definition at line 79 of file CodonAdHocSubstitutionModel.h.
|
overridevirtualinherited |
add a "rate" parameter to the model, that handles the overall rate of the process.
Implements bpp::BranchModelInterface.
Reimplemented in bpp::RegisterRatesSubstitutionModel.
Definition at line 63 of file AbstractSubstitutionModel.cpp.
References bpp::AbstractParameterAliasable::addParameter_(), bpp::AbstractParameterAliasable::getNamespace(), bpp::Parameter::R_PLUS_STAR, and bpp::AbstractTransitionModel::rate_.
|
pure virtualinherited |
Implemented in bpp::TS98, bpp::TransitionFromTransitionModel, bpp::RegisterRatesSubstitutionModel, bpp::MultinomialFromTransitionModel, bpp::InMixedSubstitutionModel, bpp::G2001, bpp::FromMixtureSubstitutionModel, bpp::AbstractTransitionModel, bpp::AbstractFromSubstitutionModelTransitionModel, and bpp::AbstractBiblioTransitionModel.
Referenced by bpp::AbstractBiblioTransitionModel::addRateParameter(), bpp::AbstractFromSubstitutionModelTransitionModel::addRateParameter(), bpp::FromMixtureSubstitutionModel::addRateParameter(), bpp::InMixedSubstitutionModel::addRateParameter(), bpp::MultinomialFromTransitionModel::addRateParameter(), bpp::TransitionFromTransitionModel::addRateParameter(), and bpp::BppOSubstitutionModelFormat::updateParameters_().
|
pure virtualinherited |
Implemented in bpp::RegisterRatesSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, bpp::AbstractWrappedModel, and bpp::AbstractTransitionModel.
Referenced by bpp::SubstitutionModelSet::addModel(), bpp::AbstractWrappedModel::alphabet(), bpp::NonHomogeneousSubstitutionProcess::createHomogeneousSubstitutionProcess(), bpp::NonHomogeneousSubstitutionProcess::createNonHomogeneousSubstitutionProcess(), and bpp::SENCA::setFreq().
|
inlineoverridevirtualinherited |
Implements bpp::BranchModelInterface.
Reimplemented in bpp::RegisterRatesSubstitutionModel.
Definition at line 167 of file AbstractSubstitutionModel.h.
References bpp::AbstractTransitionModel::alphabet_.
Referenced by bpp::AbstractWordSubstitutionModel::AbstractWordSubstitutionModel(), and bpp::AbstractWordSubstitutionModel::operator=().
|
inlineoverridevirtual |
Implements bpp::AbstractCodonSubstitutionModel.
Definition at line 81 of file CodonAdHocSubstitutionModel.h.
References CodonAdHocSubstitutionModel().
|
inlineoverridevirtual |
Implements bpp::CoreCodonSubstitutionModelInterface.
Definition at line 117 of file CodonAdHocSubstitutionModel.h.
References freqSet_.
|
overrideprotectedvirtualinherited |
Method inherited from AbstractWordSubstitutionModel.
This method sets the rates to/from stop codons to zero and performs the multiplication by the specific codon-codon rate.
Implements bpp::AbstractWordSubstitutionModel.
Definition at line 130 of file AbstractCodonSubstitutionModel.cpp.
References bpp::AbstractCodonSubstitutionModel::gCode_, bpp::AbstractSubstitutionModel::generator_, bpp::AbstractTransitionModel::getAlphabetStateAsInt(), bpp::CoreCodonSubstitutionModelInterface::getCodonsMulRate(), and bpp::AbstractTransitionModel::getNumberOfStates().
|
inlinevirtualinherited |
Reimplemented from bpp::AbstractTransitionModel.
Definition at line 404 of file AbstractSubstitutionModel.h.
References bpp::AbstractSubstitutionModel::computeFreq_.
Referenced by CodonAdHocSubstitutionModel(), bpp::CodonDistanceFrequenciesSubstitutionModel::CodonDistanceFrequenciesSubstitutionModel(), bpp::CodonDistancePhaseFrequenciesSubstitutionModel::CodonDistancePhaseFrequenciesSubstitutionModel(), bpp::CodonDistanceSubstitutionModel::CodonDistanceSubstitutionModel(), bpp::D1WalkSubstitutionModel::D1WalkSubstitutionModel(), bpp::F81::F81(), bpp::gBGC::gBGC(), bpp::KroneckerCodonDistanceFrequenciesSubstitutionModel::KroneckerCodonDistanceFrequenciesSubstitutionModel(), bpp::KroneckerCodonDistanceSubstitutionModel::KroneckerCodonDistanceSubstitutionModel(), bpp::L95::L95(), bpp::POMO::POMO(), bpp::RN95::RN95(), bpp::RN95s::RN95s(), bpp::AbstractSubstitutionModel::updateMatrices_(), bpp::AbstractWordSubstitutionModel::updateMatrices_(), bpp::WordSubstitutionModel::WordSubstitutionModel(), and bpp::YpR::YpR().
|
pure virtualinherited |
Implemented in bpp::MarkovModulatedSubstitutionModel, bpp::InMixedSubstitutionModel, bpp::AbstractTotallyWrappedTransitionModel, bpp::AbstractTransitionModel, bpp::AbstractMixedTransitionModel, bpp::AbstractFromSubstitutionModelTransitionModel, and bpp::AbstractSubstitutionModel.
Referenced by bpp::AbstractTotallyWrappedTransitionModel::computeFrequencies(), bpp::InMixedSubstitutionModel::computeFrequencies(), bpp::RELAX::RELAX(), bpp::SENCA::SENCA(), bpp::YNGP_M1::YNGP_M1(), bpp::YNGP_M10::YNGP_M10(), bpp::YNGP_M2::YNGP_M2(), bpp::YNGP_M3::YNGP_M3(), bpp::YNGP_M7::YNGP_M7(), bpp::YNGP_M8::YNGP_M8(), and bpp::YNGP_M9::YNGP_M9().
|
inlinevirtualinherited |
Implements bpp::TransitionModelInterface.
Definition at line 406 of file AbstractSubstitutionModel.h.
References bpp::AbstractSubstitutionModel::computeFreq_.
|
pure virtualinherited |
Implemented in bpp::MarkovModulatedSubstitutionModel, bpp::InMixedSubstitutionModel, bpp::AbstractTotallyWrappedTransitionModel, bpp::AbstractMixedTransitionModel, bpp::AbstractFromSubstitutionModelTransitionModel, and bpp::AbstractSubstitutionModel.
|
pure virtualinherited |
Implements bpp::BranchModelInterface.
Implemented in bpp::AbstractLkTransitionModel.
|
inlineoverridevirtualinherited |
Implements bpp::TransitionModelInterface.
Definition at line 64 of file AbstractSubstitutionModel.h.
References bpp::TransitionModelInterface::getd2Pij_dt2(), and bpp::AbstractLkTransitionModel::lik_.
|
pure virtualinherited |
Implemented in bpp::OneChangeTransitionModel, bpp::OneChangeRegisterTransitionModel, bpp::MarkovModulatedSubstitutionModel, bpp::InMixedSubstitutionModel, bpp::AbstractTotallyWrappedTransitionModel, bpp::AbstractTransitionModel, bpp::RE08, bpp::JCprot, bpp::TN93, bpp::T92, bpp::K80, bpp::JCnuc, bpp::F81, bpp::EquiprobableSubstitutionModel, bpp::TwoParameterBinarySubstitutionModel, bpp::HKY85, bpp::F84, and bpp::BinarySubstitutionModel.
Referenced by bpp::AbstractTotallyWrappedTransitionModel::d2Pij_dt2(), bpp::InMixedSubstitutionModel::d2Pij_dt2(), and bpp::OneChangeRegisterTransitionModel::d2Pij_dt2().
|
inlineoverridevirtualinherited |
Implements bpp::TransitionModelInterface.
Reimplemented in bpp::RE08, bpp::JCprot, bpp::TN93, bpp::T92, bpp::K80, bpp::JCnuc, bpp::F81, bpp::EquiprobableSubstitutionModel, bpp::TwoParameterBinarySubstitutionModel, bpp::HKY85, bpp::F84, and bpp::BinarySubstitutionModel.
Definition at line 199 of file AbstractSubstitutionModel.h.
References bpp::AbstractTransitionModel::getd2Pij_dt2().
Referenced by bpp::JCprot::d2Pij_dt2().
|
pure virtualinherited |
Implements bpp::BranchModelInterface.
Implemented in bpp::AbstractLkTransitionModel.
|
inlineoverridevirtualinherited |
Implements bpp::TransitionModelInterface.
Definition at line 47 of file AbstractSubstitutionModel.h.
References bpp::TransitionModelInterface::getdPij_dt(), and bpp::AbstractLkTransitionModel::lik_.
|
pure virtualinherited |
Implemented in bpp::OneChangeTransitionModel, bpp::OneChangeRegisterTransitionModel, bpp::MarkovModulatedSubstitutionModel, bpp::InMixedSubstitutionModel, bpp::AbstractTotallyWrappedTransitionModel, bpp::AbstractTransitionModel, bpp::RE08, bpp::JCprot, bpp::TN93, bpp::T92, bpp::K80, bpp::JCnuc, bpp::F81, bpp::EquiprobableSubstitutionModel, bpp::TwoParameterBinarySubstitutionModel, bpp::HKY85, bpp::F84, and bpp::BinarySubstitutionModel.
Referenced by bpp::OneChangeRegisterTransitionModel::d2Pij_dt2(), bpp::AbstractTotallyWrappedTransitionModel::dPij_dt(), and bpp::InMixedSubstitutionModel::dPij_dt().
|
inlineoverridevirtualinherited |
Implements bpp::TransitionModelInterface.
Reimplemented in bpp::RE08, bpp::JCprot, bpp::TN93, bpp::T92, bpp::K80, bpp::JCnuc, bpp::F81, bpp::EquiprobableSubstitutionModel, bpp::TwoParameterBinarySubstitutionModel, bpp::HKY85, bpp::F84, and bpp::BinarySubstitutionModel.
Definition at line 198 of file AbstractSubstitutionModel.h.
References bpp::AbstractTransitionModel::getdPij_dt().
Referenced by bpp::JCprot::dPij_dt().
|
inlinevirtualinherited |
Tell if eigenValues and Vectors must be computed.
Implements bpp::SubstitutionModelInterface.
Definition at line 434 of file AbstractSubstitutionModel.h.
References bpp::AbstractSubstitutionModel::eigenDecompose_.
Referenced by bpp::AbstractCodonSubstitutionModel::AbstractCodonSubstitutionModel(), bpp::AbstractDFPSubstitutionModel::AbstractDFPSubstitutionModel(), bpp::AbstractKroneckerWordSubstitutionModel::AbstractKroneckerWordSubstitutionModel(), bpp::KroneckerWordSubstitutionModel::KroneckerWordSubstitutionModel(), bpp::AbstractSubstitutionModel::updateMatrices_(), bpp::AbstractWordSubstitutionModel::updateMatrices_(), bpp::gBGC::updateMatrices_(), and bpp::WordSubstitutionModel::WordSubstitutionModel().
|
pure virtualinherited |
Tell if eigenValues and Vectors must be computed.
Implemented in bpp::MarkovModulatedSubstitutionModel, bpp::InMixedSubstitutionModel, bpp::AbstractTotallyWrappedSubstitutionModel, and bpp::AbstractSubstitutionModel.
Referenced by bpp::AbstractKroneckerCodonSubstitutionModel::AbstractKroneckerCodonSubstitutionModel().
|
inlinevirtualinherited |
Set if eigenValues and Vectors must be computed.
Implements bpp::SubstitutionModelInterface.
Definition at line 432 of file AbstractSubstitutionModel.h.
References bpp::AbstractSubstitutionModel::eigenDecompose_.
|
pure virtualinherited |
Set if eigenValues and Vectors must be computed.
Implemented in bpp::MarkovModulatedSubstitutionModel, bpp::InMixedSubstitutionModel, bpp::AbstractTotallyWrappedSubstitutionModel, and bpp::AbstractSubstitutionModel.
Referenced by bpp::AbstractTotallyWrappedSubstitutionModel::enableEigenDecomposition(), and bpp::InMixedSubstitutionModel::enableEigenDecomposition().
|
inlinevirtualinherited |
Implements bpp::SubstitutionModelInterface.
Definition at line 410 of file AbstractSubstitutionModel.h.
References bpp::AbstractSubstitutionModel::exchangeability_.
|
pure virtualinherited |
Implemented in bpp::MarkovModulatedSubstitutionModel, bpp::InMixedSubstitutionModel, bpp::AbstractTotallyWrappedSubstitutionModel, and bpp::AbstractSubstitutionModel.
Referenced by bpp::Coala::Coala(), bpp::AbstractTotallyWrappedSubstitutionModel::exchangeabilityMatrix(), and bpp::InMixedSubstitutionModel::exchangeabilityMatrix().
|
protectedvirtualinherited |
First fill of the generator, from the position model.
Reimplemented in bpp::AbstractKroneckerWordSubstitutionModel.
Definition at line 303 of file AbstractWordSubstitutionModel.cpp.
References bpp::AbstractSubstitutionModel::generator_, bpp::AbstractTransitionModel::getNumberOfStates(), RowMatrix< double >::getRow(), bpp::AbstractWordSubstitutionModel::Vrate_, and bpp::AbstractWordSubstitutionModel::VSubMod_.
Referenced by bpp::AbstractWordSubstitutionModel::updateMatrices_().
|
overridevirtual |
Tells the model that a parameter value has changed.
This updates the matrices consequently.
Reimplemented from bpp::AbstractTransitionModel.
Definition at line 140 of file CodonAdHocSubstitutionModel.cpp.
References bpp::AbstractTransitionModel::fireParameterChanged(), and vModel_.
|
pure virtualinherited |
Implemented in bpp::OneChangeTransitionModel, bpp::OneChangeRegisterTransitionModel, bpp::MarkovModulatedSubstitutionModel, bpp::InMixedSubstitutionModel, bpp::AbstractTotallyWrappedTransitionModel, and bpp::AbstractTransitionModel.
Referenced by bpp::AbstractTotallyWrappedTransitionModel::freq(), bpp::InMixedSubstitutionModel::freq(), bpp::OneChangeRegisterTransitionModel::freq(), and bpp::OneChangeTransitionModel::freq().
|
inlineoverridevirtualinherited |
Implements bpp::TransitionModelInterface.
Definition at line 195 of file AbstractSubstitutionModel.h.
References bpp::AbstractTransitionModel::freq_.
Referenced by bpp::CodonSameAARateSubstitutionModel::compute_().
|
pure virtualinherited |
Exception | if no FrequenceSet is associated to this model. |
Implemented in bpp::RegisterRatesSubstitutionModel, bpp::WAG01, bpp::UserProteinSubstitutionModel, bpp::LG08, bpp::JTT92, bpp::JCprot, bpp::DSO78, bpp::OneChangeTransitionModel, bpp::OneChangeRegisterTransitionModel, bpp::MarkovModulatedSubstitutionModel, bpp::EquiprobableSubstitutionModel, bpp::D1WalkSubstitutionModel, bpp::YN98, bpp::CodonDistanceFrequenciesSubstitutionModel, bpp::AbstractWrappedTransitionModel, bpp::AbstractWrappedModel, bpp::AbstractTransitionModel, and bpp::AbstractBiblioMixedTransitionModel.
Referenced by bpp::RE08Codon::codonFrequencySet(), bpp::AbstractWrappedModel::frequencySet(), bpp::AbstractWrappedTransitionModel::frequencySet(), bpp::OneChangeRegisterTransitionModel::frequencySet(), bpp::OneChangeTransitionModel::frequencySet(), and bpp::BppOSubstitutionModelFormat::write().
|
inlineoverridevirtualinherited |
Exception | if no FrequenceSet is associated to this model. |
Implements bpp::BranchModelInterface.
Reimplemented in bpp::RegisterRatesSubstitutionModel, bpp::WAG01, bpp::UserProteinSubstitutionModel, bpp::LG08, bpp::JTT92, bpp::JCprot, bpp::DSO78, bpp::EquiprobableSubstitutionModel, bpp::D1WalkSubstitutionModel, and bpp::CodonDistanceFrequenciesSubstitutionModel.
Definition at line 207 of file AbstractSubstitutionModel.h.
|
inlinevirtualinherited |
See Kosiol and Goldman (2005), Molecular Biology And Evolution 22(2) 193-9.
Implements bpp::SubstitutionModelInterface.
Definition at line 408 of file AbstractSubstitutionModel.h.
References bpp::AbstractSubstitutionModel::generator_.
Referenced by bpp::AbstractKroneckerWordSubstitutionModel::fillBasicGenerator_().
|
pure virtualinherited |
See Kosiol and Goldman (2005), Molecular Biology And Evolution 22(2) 193-9.
Implemented in bpp::MarkovModulatedSubstitutionModel, bpp::InMixedSubstitutionModel, bpp::AbstractTotallyWrappedSubstitutionModel, and bpp::AbstractSubstitutionModel.
Referenced by bpp::OneChangeRegisterTransitionModel::d2Pij_dt2(), bpp::OneChangeRegisterTransitionModel::dPij_dt(), bpp::AbstractTotallyWrappedSubstitutionModel::generator(), bpp::InMixedSubstitutionModel::generator(), bpp::OneChangeRegisterTransitionModel::getd2Pij_dt2(), bpp::OneChangeRegisterTransitionModel::getdPij_dt(), bpp::OneChangeRegisterTransitionModel::getPij_t(), bpp::OneChangeRegisterTransitionModel::Pij_t(), bpp::OneChangeRegisterTransitionModel::updateMatrices_(), and bpp::RegisterRatesSubstitutionModel::updateMatrices_().
|
pure virtualinherited |
Implemented in bpp::RegisterRatesSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, bpp::AbstractWrappedModel, and bpp::AbstractTransitionModel.
Referenced by bpp::NonHomogeneousSubstitutionProcess::addModel(), bpp::YpR::checkModel(), bpp::NonHomogeneousSubstitutionProcess::createHomogeneousSubstitutionProcess(), bpp::NonHomogeneousSubstitutionProcess::createNonHomogeneousSubstitutionProcess(), bpp::AbstractWrappedModel::getAlphabet(), bpp::DRASDRTreeLikelihoodData::initLikelihoods(), bpp::DRASRTreeLikelihoodData::initLikelihoods(), bpp::SENCA::setFreq(), bpp::NonHomogeneousSubstitutionProcess::setModel(), and bpp::BppOSubstitutionModelFormat::writeMixed_().
|
inlineoverridevirtualinherited |
Implements bpp::BranchModelInterface.
Reimplemented in bpp::RegisterRatesSubstitutionModel.
Definition at line 169 of file AbstractSubstitutionModel.h.
References bpp::AbstractTransitionModel::alphabet_.
Referenced by bpp::AbstractWordSubstitutionModel::AbstractWordSubstitutionModel(), bpp::WordSubstitutionModel::completeMatrices_(), and bpp::RE08::getInitValue().
|
pure virtualinherited |
index | The model state. |
Implemented in bpp::RegisterRatesSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, bpp::AbstractTransitionModel, and bpp::AbstractWrappedModel.
Referenced by bpp::AbstractWrappedModel::getAlphabetStateAsChar(), and bpp::SubstitutionModelSet::getAlphabetStateAsChar().
|
inlineoverridevirtualinherited |
index | The model state. |
Implements bpp::BranchModelInterface.
Reimplemented in bpp::RegisterRatesSubstitutionModel.
Definition at line 179 of file AbstractSubstitutionModel.h.
References bpp::AbstractTransitionModel::stateMap_.
|
pure virtualinherited |
index | The model state. |
Implemented in bpp::MarkovModulatedSubstitutionModel, bpp::AbstractTransitionModel, bpp::RegisterRatesSubstitutionModel, and bpp::AbstractWrappedModel.
Referenced by bpp::AbstractWrappedModel::getAlphabetStateAsInt(), bpp::SubstitutionModelSet::getAlphabetStateAsInt(), bpp::DRASRTreeLikelihoodData::initLikelihoods(), bpp::DRASDRTreeLikelihoodData::initLikelihoods(), and bpp::DRASRTreeLikelihoodData::initLikelihoodsWithPatterns().
|
inlineoverridevirtualinherited |
index | The model state. |
Implements bpp::BranchModelInterface.
Reimplemented in bpp::RegisterRatesSubstitutionModel.
Definition at line 181 of file AbstractSubstitutionModel.h.
References bpp::AbstractTransitionModel::stateMap_.
Referenced by bpp::AbstractCodonSubstitutionModel::completeMatrices_(), and bpp::AbstractTransitionModel::getInitValue().
|
pure virtualinherited |
Implemented in bpp::RegisterRatesSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, bpp::AbstractWrappedModel, and bpp::AbstractTransitionModel.
Referenced by bpp::SubstitutionModelSet::getAlphabetStates(), and bpp::AbstractWrappedModel::getAlphabetStates().
|
inlineoverridevirtualinherited |
Implements bpp::BranchModelInterface.
Reimplemented in bpp::RegisterRatesSubstitutionModel.
Definition at line 177 of file AbstractSubstitutionModel.h.
References bpp::AbstractTransitionModel::stateMap_.
Referenced by bpp::DFP07::DFP07(), bpp::YNGP_M3::YNGP_M3(), and bpp::YNGP_M8::YNGP_M8().
|
overridevirtual |
Returns the multiplicative rate specific to two codons specified by their number. The respective generator rate is this rate multiplied by the rate defined by the model defined on nucleotides.
Implements bpp::CoreCodonSubstitutionModelInterface.
Definition at line 151 of file CodonAdHocSubstitutionModel.cpp.
References vModel_.
|
inlinevirtualinherited |
Implements bpp::SubstitutionModelInterface.
Definition at line 428 of file AbstractSubstitutionModel.h.
References bpp::AbstractSubstitutionModel::rightEigenVectors_.
|
pure virtualinherited |
Implemented in bpp::MarkovModulatedSubstitutionModel, bpp::InMixedSubstitutionModel, bpp::AbstractTotallyWrappedSubstitutionModel, and bpp::AbstractSubstitutionModel.
Referenced by bpp::AbstractTotallyWrappedSubstitutionModel::getColumnRightEigenVectors(), and bpp::InMixedSubstitutionModel::getColumnRightEigenVectors().
|
virtualinherited |
Implements bpp::AbstractTransitionModel.
Reimplemented in bpp::WordSubstitutionModel, bpp::RE08, bpp::JCprot, bpp::TN93, bpp::T92, bpp::K80, bpp::JCnuc, bpp::F81, bpp::EquiprobableSubstitutionModel, bpp::TwoParameterBinarySubstitutionModel, bpp::HKY85, bpp::F84, and bpp::BinarySubstitutionModel.
Definition at line 557 of file AbstractSubstitutionModel.cpp.
References bpp::MatrixTools::add(), bpp::MatrixTools::copy(), bpp::AbstractTransitionModel::d2pijt_, bpp::AbstractSubstitutionModel::eigenValues_, bpp::VectorTools::exp(), bpp::numeric::exp(), bpp::MatrixTools::getId(), bpp::AbstractSubstitutionModel::iEigenValues_, bpp::AbstractSubstitutionModel::isDiagonalizable_, bpp::AbstractSubstitutionModel::isNonSingular_, bpp::AbstractSubstitutionModel::leftEigenVectors_, bpp::MatrixTools::mult(), bpp::AbstractTransitionModel::rate_, bpp::AbstractSubstitutionModel::rightEigenVectors_, bpp::MatrixTools::scale(), bpp::AbstractTransitionModel::size_, bpp::VectorTools::sqr(), bpp::NumTools::sqr(), bpp::AbstractSubstitutionModel::tmpMat_, and bpp::AbstractSubstitutionModel::vPowGen_.
Referenced by bpp::JCprot::getd2Pij_dt2().
|
pure virtualinherited |
Implemented in bpp::AbstractTransitionModel, bpp::OneChangeTransitionModel, bpp::OneChangeRegisterTransitionModel, bpp::MarkovModulatedSubstitutionModel, bpp::InMixedSubstitutionModel, bpp::AbstractTotallyWrappedTransitionModel, bpp::AbstractMixedTransitionModel, bpp::AbstractSubstitutionModel, bpp::WordSubstitutionModel, bpp::RE08, bpp::JCprot, bpp::TN93, bpp::T92, bpp::K80, bpp::JCnuc, bpp::F81, bpp::EquiprobableSubstitutionModel, bpp::TwoParameterBinarySubstitutionModel, bpp::HKY85, bpp::F84, and bpp::BinarySubstitutionModel.
Referenced by bpp::AbstractLkTransitionModel::d2Lik_dt2(), bpp::AbstractTotallyWrappedTransitionModel::getd2Pij_dt2(), bpp::InMixedSubstitutionModel::getd2Pij_dt2(), and bpp::OneChangeRegisterTransitionModel::getd2Pij_dt2().
|
virtualinherited |
Implements bpp::AbstractTransitionModel.
Reimplemented in bpp::WordSubstitutionModel, bpp::RE08, bpp::JCprot, bpp::TN93, bpp::T92, bpp::K80, bpp::JCnuc, bpp::F81, bpp::EquiprobableSubstitutionModel, bpp::TwoParameterBinarySubstitutionModel, bpp::HKY85, bpp::F84, and bpp::BinarySubstitutionModel.
Definition at line 486 of file AbstractSubstitutionModel.cpp.
References bpp::MatrixTools::add(), bpp::MatrixTools::copy(), bpp::AbstractTransitionModel::dpijt_, bpp::AbstractSubstitutionModel::eigenValues_, bpp::VectorTools::exp(), bpp::numeric::exp(), bpp::MatrixTools::getId(), bpp::AbstractSubstitutionModel::iEigenValues_, bpp::AbstractSubstitutionModel::isDiagonalizable_, bpp::AbstractSubstitutionModel::isNonSingular_, bpp::AbstractSubstitutionModel::leftEigenVectors_, bpp::MatrixTools::mult(), bpp::AbstractTransitionModel::rate_, bpp::AbstractSubstitutionModel::rightEigenVectors_, bpp::MatrixTools::scale(), bpp::AbstractTransitionModel::size_, bpp::AbstractSubstitutionModel::tmpMat_, and bpp::AbstractSubstitutionModel::vPowGen_.
Referenced by bpp::JCprot::getdPij_dt().
|
pure virtualinherited |
Implemented in bpp::AbstractTransitionModel, bpp::OneChangeTransitionModel, bpp::OneChangeRegisterTransitionModel, bpp::MarkovModulatedSubstitutionModel, bpp::InMixedSubstitutionModel, bpp::AbstractTotallyWrappedTransitionModel, bpp::AbstractMixedTransitionModel, bpp::AbstractSubstitutionModel, bpp::WordSubstitutionModel, bpp::RE08, bpp::JCprot, bpp::TN93, bpp::T92, bpp::K80, bpp::JCnuc, bpp::F81, bpp::EquiprobableSubstitutionModel, bpp::TwoParameterBinarySubstitutionModel, bpp::HKY85, bpp::F84, and bpp::BinarySubstitutionModel.
Referenced by bpp::AbstractLkTransitionModel::dLik_dt(), bpp::OneChangeRegisterTransitionModel::getd2Pij_dt2(), bpp::AbstractTotallyWrappedTransitionModel::getdPij_dt(), bpp::InMixedSubstitutionModel::getdPij_dt(), and bpp::OneChangeRegisterTransitionModel::getdPij_dt().
|
inlinevirtualinherited |
Implements bpp::SubstitutionModelInterface.
Definition at line 418 of file AbstractSubstitutionModel.h.
References bpp::AbstractSubstitutionModel::eigenValues_.
|
pure virtualinherited |
Implemented in bpp::MarkovModulatedSubstitutionModel, bpp::InMixedSubstitutionModel, bpp::AbstractTotallyWrappedSubstitutionModel, and bpp::AbstractSubstitutionModel.
Referenced by bpp::AbstractTotallyWrappedSubstitutionModel::getEigenValues(), and bpp::InMixedSubstitutionModel::getEigenValues().
|
pure virtualinherited |
Implemented in bpp::OneChangeTransitionModel, bpp::OneChangeRegisterTransitionModel, bpp::MarkovModulatedSubstitutionModel, bpp::InMixedSubstitutionModel, bpp::AbstractTotallyWrappedTransitionModel, and bpp::AbstractTransitionModel.
Referenced by bpp::EquilibriumFrequenciesFromModel::compute(), bpp::AbstractTotallyWrappedTransitionModel::getFrequencies(), bpp::InMixedSubstitutionModel::getFrequencies(), bpp::OneChangeRegisterTransitionModel::getFrequencies(), and bpp::OneChangeTransitionModel::getFrequencies().
|
inlineoverridevirtualinherited |
Implements bpp::TransitionModelInterface.
Definition at line 187 of file AbstractSubstitutionModel.h.
References bpp::AbstractTransitionModel::freq_.
Referenced by bpp::SENCA::setFreq().
|
inlineoverrideprotectedvirtualinherited |
Implements bpp::TransitionModelInterface.
Definition at line 268 of file AbstractSubstitutionModel.h.
References bpp::AbstractTransitionModel::freq_.
Referenced by bpp::CodonDistanceFrequenciesSubstitutionModel::fireParameterChanged(), bpp::CodonDistancePhaseFrequenciesSubstitutionModel::fireParameterChanged(), bpp::CodonDistanceFrequenciesSubstitutionModel::setFreq(), bpp::CodonDistancePhaseFrequenciesSubstitutionModel::setFreq(), and bpp::DFPDistanceFrequenciesSubstitutionModel::setFreq().
|
protectedpure virtualinherited |
Implemented in bpp::MarkovModulatedSubstitutionModel, bpp::InMixedSubstitutionModel, bpp::AbstractTotallyWrappedTransitionModel, bpp::AbstractTransitionModel, and bpp::AbstractFromSubstitutionModelTransitionModel.
Referenced by bpp::AbstractTotallyWrappedTransitionModel::getFrequencies_(), and bpp::InMixedSubstitutionModel::getFrequencies_().
|
inlineoverridevirtualinherited |
Implements bpp::CodonSubstitutionModelInterface.
Definition at line 125 of file AbstractCodonSubstitutionModel.h.
References bpp::AbstractCodonSubstitutionModel::gCode_.
|
inlinevirtualinherited |
Implements bpp::SubstitutionModelInterface.
Definition at line 420 of file AbstractSubstitutionModel.h.
References bpp::AbstractSubstitutionModel::iEigenValues_.
|
pure virtualinherited |
Implemented in bpp::MarkovModulatedSubstitutionModel, bpp::InMixedSubstitutionModel, bpp::AbstractTotallyWrappedSubstitutionModel, and bpp::AbstractSubstitutionModel.
Referenced by bpp::AbstractTotallyWrappedSubstitutionModel::getIEigenValues(), and bpp::InMixedSubstitutionModel::getIEigenValues().
|
pure virtualinherited |
This method is used to initialize likelihoods in recursions. 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. |
Implemented in bpp::TransitionFromTransitionModel, bpp::RE08, bpp::OneChangeTransitionModel, bpp::OneChangeRegisterTransitionModel, bpp::MultinomialFromTransitionModel, bpp::MarkovModulatedSubstitutionModel, bpp::InMixedSubstitutionModel, bpp::AbstractTotallyWrappedTransitionModel, and bpp::AbstractTransitionModel.
Referenced by bpp::AbstractTotallyWrappedTransitionModel::getInitValue(), bpp::InMixedSubstitutionModel::getInitValue(), bpp::MultinomialFromTransitionModel::getInitValue(), bpp::OneChangeRegisterTransitionModel::getInitValue(), bpp::OneChangeTransitionModel::getInitValue(), and bpp::TransitionFromTransitionModel::getInitValue().
|
overridevirtualinherited |
This method is used to initialize likelihoods in recursions. 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::BranchModelInterface.
Reimplemented in bpp::RE08.
Definition at line 70 of file AbstractSubstitutionModel.cpp.
References bpp::AbstractTransitionModel::alphabet_, bpp::AbstractTransitionModel::getAlphabetStateAsInt(), and bpp::AbstractTransitionModel::size_.
|
pure virtualinherited |
Get the state in the model corresponding to a particular state in the alphabet.
code | The alphabet state to check. |
Implemented in bpp::RegisterRatesSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, bpp::AbstractWrappedModel, and bpp::AbstractTransitionModel.
|
inlineoverridevirtualinherited |
Get the state in the model corresponding to a particular state in the alphabet.
code | The alphabet state to check. |
Implements bpp::BranchModelInterface.
Reimplemented in bpp::RegisterRatesSubstitutionModel.
Definition at line 185 of file AbstractSubstitutionModel.h.
References bpp::AbstractTransitionModel::stateMap_.
|
pure virtualinherited |
Get the state in the model corresponding to a particular state in the alphabet.
code | The alphabet state to check. |
Implemented in bpp::RegisterRatesSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, bpp::AbstractWrappedModel, and bpp::AbstractTransitionModel.
Referenced by bpp::SubstitutionModelSet::getModelStates(), and bpp::AbstractWrappedModel::getModelStates().
|
inlineoverridevirtualinherited |
Get the state in the model corresponding to a particular state in the alphabet.
code | The alphabet state to check. |
Implements bpp::BranchModelInterface.
Reimplemented in bpp::RegisterRatesSubstitutionModel.
Definition at line 183 of file AbstractSubstitutionModel.h.
References bpp::AbstractTransitionModel::stateMap_.
|
inlineoverridevirtual |
Get the name of the model.
Implements bpp::BranchModelInterface.
Definition at line 89 of file CodonAdHocSubstitutionModel.h.
References name_.
|
inline |
Definition at line 103 of file CodonAdHocSubstitutionModel.h.
References vModel_.
|
pure virtualinherited |
Get the number of states.
For most models, this equals the size of the alphabet.
Implemented in bpp::RegisterRatesSubstitutionModel, bpp::RE08Codon, bpp::RE08Protein, bpp::RE08Nucleotide, bpp::YpR, bpp::gBGC, bpp::MarkovModulatedSubstitutionModel, bpp::DFPDistanceFrequenciesSubstitutionModel, bpp::AbstractWrappedModel, bpp::AbstractTransitionModel, bpp::TwoParameterBinarySubstitutionModel, and bpp::BinarySubstitutionModel.
Referenced by bpp::NonHomogeneousSubstitutionProcess::addModel(), bpp::SubstitutionModelSet::addModel(), bpp::AbstractWrappedModel::getNumberOfStates(), bpp::DRASDRTreeLikelihoodData::initLikelihoods(), bpp::DRASRTreeLikelihoodData::initLikelihoods(), and bpp::NonHomogeneousSubstitutionProcess::setModel().
|
inlineoverridevirtualinherited |
Get the number of states.
For most models, this equals the size of the alphabet.
Implements bpp::BranchModelInterface.
Reimplemented in bpp::RegisterRatesSubstitutionModel, bpp::RE08Codon, bpp::RE08Protein, bpp::RE08Nucleotide, bpp::YpR, bpp::gBGC, bpp::DFPDistanceFrequenciesSubstitutionModel, bpp::TwoParameterBinarySubstitutionModel, and bpp::BinarySubstitutionModel.
Definition at line 175 of file AbstractSubstitutionModel.h.
References bpp::AbstractTransitionModel::stateMap_.
Referenced by bpp::AbstractCodonSubstitutionModel::completeMatrices_(), bpp::AbstractKroneckerCodonSubstitutionModel::completeMatrices_(), bpp::AbstractKroneckerWordSubstitutionModel::fillBasicGenerator_(), bpp::AbstractWordSubstitutionModel::fillBasicGenerator_(), bpp::WordSubstitutionModel::getd2Pij_dt2(), bpp::AbstractMixedTransitionModel::getd2Pij_dt2(), bpp::WordSubstitutionModel::getdPij_dt(), bpp::AbstractMixedTransitionModel::getdPij_dt(), bpp::RE08Nucleotide::getNumberOfStates(), bpp::RE08Protein::getNumberOfStates(), bpp::RE08Codon::getNumberOfStates(), bpp::WordSubstitutionModel::getPij_t(), bpp::AbstractMixedTransitionModel::getPij_t(), bpp::AbstractWordSubstitutionModel::setFreq(), bpp::AbstractSubstitutionModel::updateMatrices_(), bpp::AbstractWordSubstitutionModel::updateMatrices_(), bpp::MixtureOfATransitionModel::updateMatrices_(), and bpp::MixtureOfTransitionModels::updateMatrices_().
|
virtualinherited |
Implements bpp::AbstractTransitionModel.
Reimplemented in bpp::WordSubstitutionModel, bpp::RE08, bpp::JCprot, bpp::TN93, bpp::T92, bpp::K80, bpp::JCnuc, bpp::F81, bpp::EquiprobableSubstitutionModel, bpp::TwoParameterBinarySubstitutionModel, bpp::HKY85, bpp::F84, and bpp::BinarySubstitutionModel.
Definition at line 395 of file AbstractSubstitutionModel.cpp.
References bpp::abs(), bpp::MatrixTools::add(), bpp::MatrixTools::copy(), bpp::AbstractSubstitutionModel::eigenValues_, bpp::VectorTools::exp(), bpp::numeric::exp(), bpp::MatrixTools::getId(), bpp::BranchModelInterface::getName(), bpp::AbstractSubstitutionModel::iEigenValues_, bpp::AbstractSubstitutionModel::isDiagonalizable_, bpp::AbstractSubstitutionModel::isNonSingular_, bpp::AbstractSubstitutionModel::leftEigenVectors_, bpp::MatrixTools::mult(), bpp::AbstractTransitionModel::pijt_, bpp::AbstractTransitionModel::rate_, bpp::AbstractSubstitutionModel::rightEigenVectors_, bpp::AbstractTransitionModel::size_, bpp::NumConstants::SMALL(), bpp::AbstractSubstitutionModel::tmpMat_, bpp::to_string(), and bpp::AbstractSubstitutionModel::vPowGen_.
Referenced by bpp::JCprot::getPij_t().
|
pure virtualinherited |
Implemented in bpp::AbstractTransitionModel, bpp::OneChangeTransitionModel, bpp::OneChangeRegisterTransitionModel, bpp::MarkovModulatedSubstitutionModel, bpp::InMixedSubstitutionModel, bpp::AbstractTotallyWrappedTransitionModel, bpp::AbstractMixedTransitionModel, bpp::AbstractSubstitutionModel, bpp::WordSubstitutionModel, bpp::RE08, bpp::JCprot, bpp::TN93, bpp::T92, bpp::K80, bpp::JCnuc, bpp::F81, bpp::EquiprobableSubstitutionModel, bpp::TwoParameterBinarySubstitutionModel, bpp::HKY85, bpp::F84, and bpp::BinarySubstitutionModel.
Referenced by bpp::OneChangeRegisterTransitionModel::getd2Pij_dt2(), bpp::OneChangeRegisterTransitionModel::getdPij_dt(), bpp::AbstractTotallyWrappedTransitionModel::getPij_t(), bpp::InMixedSubstitutionModel::getPij_t(), bpp::OneChangeRegisterTransitionModel::getPij_t(), and bpp::AbstractLkTransitionModel::Lik_t().
|
pure virtualinherited |
Get the rate.
Implemented in bpp::TS98, bpp::TransitionFromTransitionModel, bpp::RegisterRatesSubstitutionModel, bpp::OneChangeTransitionModel, bpp::OneChangeRegisterTransitionModel, bpp::MultinomialFromTransitionModel, bpp::MarkovModulatedSubstitutionModel, bpp::InMixedSubstitutionModel, bpp::G2001, bpp::AbstractTotallyWrappedTransitionModel, and bpp::AbstractTransitionModel.
Referenced by bpp::AbstractFromSubstitutionModelTransitionModel::addRateParameter(), bpp::OneChangeRegisterTransitionModel::d2Pij_dt2(), bpp::OneChangeRegisterTransitionModel::dPij_dt(), bpp::OneChangeRegisterTransitionModel::getd2Pij_dt2(), bpp::OneChangeRegisterTransitionModel::getdPij_dt(), bpp::OneChangeRegisterTransitionModel::getPij_t(), bpp::AbstractTotallyWrappedTransitionModel::getRate(), bpp::InMixedSubstitutionModel::getRate(), bpp::MultinomialFromTransitionModel::getRate(), bpp::OneChangeRegisterTransitionModel::getRate(), bpp::OneChangeTransitionModel::getRate(), bpp::RegisterRatesSubstitutionModel::getRate(), and bpp::TransitionFromTransitionModel::getRate().
|
overridevirtualinherited |
The rate of the substitution process.
Implements bpp::BranchModelInterface.
Reimplemented in bpp::RegisterRatesSubstitutionModel.
Definition at line 45 of file AbstractSubstitutionModel.cpp.
References bpp::AbstractTransitionModel::rate_.
|
inlinevirtualinherited |
Implements bpp::SubstitutionModelInterface.
Definition at line 426 of file AbstractSubstitutionModel.h.
References bpp::AbstractSubstitutionModel::leftEigenVectors_.
|
pure virtualinherited |
Implemented in bpp::MarkovModulatedSubstitutionModel, bpp::InMixedSubstitutionModel, bpp::AbstractTotallyWrappedSubstitutionModel, and bpp::AbstractSubstitutionModel.
Referenced by bpp::AbstractTotallyWrappedSubstitutionModel::getRowLeftEigenVectors(), and bpp::InMixedSubstitutionModel::getRowLeftEigenVectors().
|
virtualinherited |
return scale
Implements bpp::SubstitutionModelInterface.
Definition at line 632 of file AbstractSubstitutionModel.cpp.
References bpp::MatrixTools::diag(), bpp::AbstractTransitionModel::freq_, and bpp::AbstractSubstitutionModel::generator_.
Referenced by bpp::AbstractSubstitutionModel::normalize().
|
pure 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.
Implemented in bpp::MarkovModulatedSubstitutionModel, bpp::InMixedSubstitutionModel, bpp::AbstractTotallyWrappedSubstitutionModel, and bpp::AbstractSubstitutionModel.
Referenced by bpp::AbstractTotallyWrappedSubstitutionModel::getScale(), and bpp::InMixedSubstitutionModel::getScale().
|
pure virtualinherited |
Implemented in bpp::RegisterRatesSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, bpp::AbstractWrappedModel, and bpp::AbstractTransitionModel.
Referenced by bpp::SubstitutionModelSet::getStateMap(), bpp::SubstitutionProcessCollectionMember::getStateMap(), and bpp::AbstractWrappedModel::getStateMap().
|
inlineoverridevirtualinherited |
Implements bpp::BranchModelInterface.
Reimplemented in bpp::RegisterRatesSubstitutionModel.
Definition at line 173 of file AbstractSubstitutionModel.h.
References bpp::AbstractTransitionModel::stateMap_.
Referenced by bpp::D1WalkSubstitutionModel::D1WalkSubstitutionModel(), and bpp::EquiprobableSubstitutionModel::EquiprobableSubstitutionModel().
|
inlineoverridevirtual |
Implements bpp::CoreCodonSubstitutionModelInterface.
Definition at line 122 of file CodonAdHocSubstitutionModel.h.
References freqSet_.
|
inlinevirtualinherited |
Implements bpp::SubstitutionModelInterface.
Definition at line 422 of file AbstractSubstitutionModel.h.
References bpp::AbstractSubstitutionModel::isDiagonalizable_.
|
pure virtualinherited |
Implemented in bpp::MarkovModulatedSubstitutionModel, bpp::InMixedSubstitutionModel, bpp::AbstractTotallyWrappedSubstitutionModel, and bpp::AbstractSubstitutionModel.
Referenced by bpp::AbstractTotallyWrappedSubstitutionModel::isDiagonalizable(), and bpp::InMixedSubstitutionModel::isDiagonalizable().
|
inlinevirtualinherited |
Implements bpp::SubstitutionModelInterface.
Definition at line 424 of file AbstractSubstitutionModel.h.
References bpp::AbstractSubstitutionModel::isNonSingular_.
|
pure virtualinherited |
Implemented in bpp::MarkovModulatedSubstitutionModel, bpp::InMixedSubstitutionModel, bpp::AbstractTotallyWrappedSubstitutionModel, and bpp::AbstractSubstitutionModel.
Referenced by bpp::AbstractTotallyWrappedSubstitutionModel::isNonSingular(), and bpp::InMixedSubstitutionModel::isNonSingular().
|
inlinevirtualinherited |
returns if model is scalable
Implements bpp::SubstitutionModelInterface.
Definition at line 469 of file AbstractSubstitutionModel.h.
References bpp::AbstractSubstitutionModel::isScalable_.
Referenced by bpp::F84::updateMatrices_(), bpp::HKY85::updateMatrices_(), bpp::K80::updateMatrices_(), bpp::RN95::updateMatrices_(), bpp::RN95s::updateMatrices_(), bpp::T92::updateMatrices_(), bpp::TN93::updateMatrices_(), and bpp::YpR::updateMatrices_().
|
pure virtualinherited |
returns if model is scalable
Implemented in bpp::MarkovModulatedSubstitutionModel, bpp::InMixedSubstitutionModel, bpp::AbstractTotallyWrappedSubstitutionModel, and bpp::AbstractSubstitutionModel.
Referenced by bpp::AbstractTotallyWrappedSubstitutionModel::isScalable(), and bpp::InMixedSubstitutionModel::isScalable().
|
inline |
Definition at line 108 of file CodonAdHocSubstitutionModel.h.
References vModel_.
|
pure virtualinherited |
This method is used to compute likelihoods in recursions. It computes the probability of a vector given a start state.
values | An vector of states on the site. |
t | the branch length |
Implements bpp::BranchModelInterface.
Implemented in bpp::AbstractLkTransitionModel.
|
inlineoverridevirtualinherited |
This method is used to compute likelihoods in recursions. It computes the probability of a vector given a start state.
values | An vector of states on the site. |
t | the branch length |
Implements bpp::TransitionModelInterface.
Definition at line 30 of file AbstractSubstitutionModel.h.
References bpp::TransitionModelInterface::getPij_t(), and bpp::AbstractLkTransitionModel::lik_.
|
inlineinherited |
returns the ith model, or throw an exception if i is not a valid number.
Definition at line 188 of file AbstractWordSubstitutionModel.h.
References bpp::AbstractWordSubstitutionModel::VSubMod_.
Referenced by bpp::BppOSubstitutionModelFormat::write().
|
virtualinherited |
normalize the generator
Implements bpp::SubstitutionModelInterface.
Definition at line 673 of file AbstractSubstitutionModel.cpp.
References bpp::AbstractSubstitutionModel::getScale(), bpp::AbstractSubstitutionModel::isScalable_, and bpp::AbstractSubstitutionModel::setScale().
Referenced by bpp::AbstractSubstitutionModel::updateMatrices_(), bpp::AbstractWordSubstitutionModel::updateMatrices_(), bpp::AbstractReversibleSubstitutionModel::updateMatrices_(), and bpp::gBGC::updateMatrices_().
|
pure virtualinherited |
Normalize the generator.
Implemented in bpp::MarkovModulatedSubstitutionModel, bpp::InMixedSubstitutionModel, bpp::AbstractTotallyWrappedSubstitutionModel, and bpp::AbstractSubstitutionModel.
Referenced by bpp::AbstractTotallyWrappedSubstitutionModel::normalize(), and bpp::InMixedSubstitutionModel::normalize().
CodonAdHocSubstitutionModel & CodonAdHocSubstitutionModel::operator= | ( | const CodonAdHocSubstitutionModel & | model | ) |
Definition at line 103 of file CodonAdHocSubstitutionModel.cpp.
References freqSet_, name_, bpp::AbstractCodonSubstitutionModel::operator=(), bpp::AbstractParameterAliasable::operator=(), and vModel_.
|
pure virtualinherited |
Implemented in bpp::OneChangeTransitionModel, bpp::OneChangeRegisterTransitionModel, bpp::MarkovModulatedSubstitutionModel, bpp::InMixedSubstitutionModel, bpp::AbstractTotallyWrappedTransitionModel, bpp::AbstractTransitionModel, bpp::RE08, bpp::JCprot, bpp::TN93, bpp::T92, bpp::K80, bpp::JCnuc, bpp::F81, bpp::EquiprobableSubstitutionModel, bpp::TwoParameterBinarySubstitutionModel, bpp::HKY85, bpp::F84, and bpp::BinarySubstitutionModel.
Referenced by bpp::OneChangeRegisterTransitionModel::d2Pij_dt2(), bpp::AbstractTotallyWrappedTransitionModel::Pij_t(), bpp::InMixedSubstitutionModel::Pij_t(), and bpp::OneChangeRegisterTransitionModel::Pij_t().
|
inlineoverridevirtualinherited |
Implements bpp::TransitionModelInterface.
Reimplemented in bpp::RE08, bpp::JCprot, bpp::TN93, bpp::T92, bpp::K80, bpp::JCnuc, bpp::F81, bpp::EquiprobableSubstitutionModel, bpp::TwoParameterBinarySubstitutionModel, bpp::HKY85, bpp::F84, and bpp::BinarySubstitutionModel.
Definition at line 197 of file AbstractSubstitutionModel.h.
References bpp::AbstractTransitionModel::getPij_t().
Referenced by bpp::JCprot::Pij_t().
|
inlinevirtualinherited |
A method for computing all necessary matrices.
Implements bpp::SubstitutionModelInterface.
Definition at line 430 of file AbstractSubstitutionModel.h.
References bpp::AbstractSubstitutionModel::generator_.
|
pure virtualinherited |
A method for computing all necessary matrices.
Implemented in bpp::MarkovModulatedSubstitutionModel, bpp::InMixedSubstitutionModel, bpp::AbstractTotallyWrappedSubstitutionModel, and bpp::AbstractSubstitutionModel.
Referenced by bpp::YpR::checkModel(), bpp::DFP07::DFP07(), bpp::AbstractTotallyWrappedSubstitutionModel::Qij(), bpp::InMixedSubstitutionModel::Qij(), bpp::RELAX::RELAX(), bpp::DFP07::updateMatrices_(), bpp::RELAX::updateMatrices_(), bpp::YNGP_M1::updateMatrices_(), bpp::YNGP_M10::updateMatrices_(), bpp::YNGP_M2::updateMatrices_(), bpp::YNGP_M3::updateMatrices_(), bpp::YNGP_M7::updateMatrices_(), bpp::YNGP_M8::updateMatrices_(), bpp::YNGP_M9::updateMatrices_(), bpp::YNGP_M1::YNGP_M1(), bpp::YNGP_M10::YNGP_M10(), bpp::YNGP_M2::YNGP_M2(), bpp::YNGP_M3::YNGP_M3(), bpp::YNGP_M7::YNGP_M7(), bpp::YNGP_M8::YNGP_M8(), and bpp::YNGP_M9::YNGP_M9().
|
virtualinherited |
set the diagonal of the generator such that sum on each line equals 0.
Implements bpp::SubstitutionModelInterface.
Definition at line 654 of file AbstractSubstitutionModel.cpp.
References bpp::AbstractSubstitutionModel::generator_, RowMatrix< double >::getRow(), and bpp::AbstractTransitionModel::size_.
Referenced by bpp::CodonSameAARateSubstitutionModel::compute_(), bpp::AbstractWordSubstitutionModel::updateMatrices_(), bpp::AbstractReversibleSubstitutionModel::updateMatrices_(), bpp::AbstractDFPSubstitutionModel::updateMatrices_(), bpp::POMO::updateMatrices_(), and bpp::RegisterRatesSubstitutionModel::updateMatrices_().
|
pure virtualinherited |
set the diagonal of the generator such that sum on each line equals 0.
Implemented in bpp::MarkovModulatedSubstitutionModel, bpp::InMixedSubstitutionModel, bpp::AbstractTotallyWrappedSubstitutionModel, and bpp::AbstractSubstitutionModel.
Referenced by bpp::AbstractTotallyWrappedSubstitutionModel::setDiagonal(), and bpp::InMixedSubstitutionModel::setDiagonal().
|
overridevirtual |
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::AbstractWordSubstitutionModel.
Definition at line 131 of file CodonAdHocSubstitutionModel.cpp.
References bpp::ParameterAliasable::matchParametersValues(), and vModel_.
|
overridevirtualinherited |
Set equilibrium frequencies equal to the frequencies estimated from the data.
data | The sequences to use. |
pseudoCount | A quantity to add to adjust the observed values in order to prevent issues due to missing states on small data set. The corrected frequencies shall be computed as
|
Implements bpp::TransitionModelInterface.
Reimplemented in bpp::RE08, bpp::WAG01, bpp::UserProteinSubstitutionModel, bpp::LG08, bpp::JTT92, bpp::JCprot, bpp::DSO78, bpp::Coala, bpp::K80, and bpp::JCnuc.
Definition at line 88 of file AbstractSubstitutionModel.cpp.
References bpp::SequenceContainerTools::getFrequencies(), and bpp::AbstractTransitionModel::setFreq().
|
pure virtualinherited |
Set equilibrium frequencies equal to the frequencies estimated from the data.
data | The sequences to use. |
pseudoCount | A quantity to add to adjust the observed values in order to prevent issues due to missing states on small data set. The corrected frequencies shall be computed as
|
Implemented in bpp::RE08, bpp::WAG01, bpp::UserProteinSubstitutionModel, bpp::LG08, bpp::JTT92, bpp::JCprot, bpp::DSO78, bpp::Coala, bpp::K80, bpp::JCnuc, bpp::MarkovModulatedSubstitutionModel, bpp::InMixedSubstitutionModel, bpp::AbstractTotallyWrappedTransitionModel, bpp::AbstractTransitionModel, bpp::AbstractBiblioTransitionModel, bpp::OneChangeTransitionModel, bpp::OneChangeRegisterTransitionModel, and bpp::AbstractMixedTransitionModel.
Referenced by bpp::TransitionFromTransitionModel::setFreqFromData(), bpp::OneChangeRegisterTransitionModel::setFreqFromData(), bpp::OneChangeTransitionModel::setFreqFromData(), bpp::MultinomialFromTransitionModel::setFreqFromData(), and bpp::InMixedSubstitutionModel::setFreqFromData().
|
inlineoverridevirtual |
Reimplemented from bpp::AbstractCodonSubstitutionModel.
Definition at line 94 of file CodonAdHocSubstitutionModel.h.
References bpp::AbstractCodonSubstitutionModel::setNamespace(), and vModel_.
|
overridevirtualinherited |
Set the rate of the model (must be positive).
rate | must be positive. |
Implements bpp::BranchModelInterface.
Reimplemented in bpp::RegisterRatesSubstitutionModel, and bpp::AbstractMixedTransitionModel.
Definition at line 52 of file AbstractSubstitutionModel.cpp.
References bpp::AbstractParameterAliasable::hasParameter(), bpp::AbstractTransitionModel::rate_, bpp::AbstractParameterAliasable::setParameterValue(), and bpp::TextTools::toString().
Referenced by bpp::AbstractMixedTransitionModel::setRate().
|
pure virtualinherited |
Set the rate of the model (must be positive).
rate | must be positive. |
Implemented in bpp::TS98, bpp::TransitionFromTransitionModel, bpp::RegisterRatesSubstitutionModel, bpp::OneChangeTransitionModel, bpp::OneChangeRegisterTransitionModel, bpp::MultinomialFromTransitionModel, bpp::MarkovModulatedSubstitutionModel, bpp::InMixedSubstitutionModel, bpp::G2001, bpp::AbstractTotallyWrappedTransitionModel, bpp::AbstractTransitionModel, and bpp::AbstractMixedTransitionModel.
Referenced by bpp::AbstractBiblioTransitionModel::fireParameterChanged(), bpp::AbstractTotallyWrappedTransitionModel::setRate(), bpp::InMixedSubstitutionModel::setRate(), bpp::MultinomialFromTransitionModel::setRate(), bpp::OneChangeRegisterTransitionModel::setRate(), bpp::OneChangeTransitionModel::setRate(), bpp::RegisterRatesSubstitutionModel::setRate(), and bpp::TransitionFromTransitionModel::setRate().
|
inlinevirtualinherited |
sets if model is scalable, ie scale can be changed. Default : true, set to false to avoid normalization for example.
Implements bpp::SubstitutionModelInterface.
Definition at line 461 of file AbstractSubstitutionModel.h.
References bpp::AbstractSubstitutionModel::isScalable_.
|
pure virtualinherited |
sets if model is scalable, ie scale can be changed. Default : true, set to false to avoid normalization for example.
Implemented in bpp::MarkovModulatedSubstitutionModel, bpp::InMixedSubstitutionModel, bpp::AbstractTotallyWrappedSubstitutionModel, and bpp::AbstractSubstitutionModel.
Referenced by bpp::AbstractTotallyWrappedSubstitutionModel::setScalable(), and bpp::InMixedSubstitutionModel::setScalable().
|
virtualinherited |
Multiplies the current generator by the given scale.
scale | the scale by which the generator is multiplied. |
Implements bpp::SubstitutionModelInterface.
Definition at line 641 of file AbstractSubstitutionModel.cpp.
References bpp::AbstractSubstitutionModel::eigenValues_, bpp::AbstractSubstitutionModel::generator_, bpp::AbstractSubstitutionModel::iEigenValues_, bpp::AbstractSubstitutionModel::isScalable_, and bpp::MatrixTools::scale().
Referenced by bpp::AbstractSubstitutionModel::normalize(), bpp::AbstractSubstitutionModel::updateMatrices_(), bpp::F84::updateMatrices_(), bpp::HKY85::updateMatrices_(), bpp::gBGC::updateMatrices_(), bpp::K80::updateMatrices_(), bpp::L95::updateMatrices_(), bpp::RN95::updateMatrices_(), bpp::RN95s::updateMatrices_(), bpp::T92::updateMatrices_(), bpp::TN93::updateMatrices_(), bpp::POMO::updateMatrices_(), and bpp::YpR::updateMatrices_().
|
pure virtualinherited |
Multiplies the current generator by the given scale.
scale | the scale by which the generator is multiplied. |
Implemented in bpp::MarkovModulatedSubstitutionModel, bpp::InMixedSubstitutionModel, bpp::AbstractTotallyWrappedSubstitutionModel, and bpp::AbstractSubstitutionModel.
Referenced by bpp::AbstractTotallyWrappedSubstitutionModel::setScale(), and bpp::InMixedSubstitutionModel::setScale().
|
inlineinherited |
Definition at line 239 of file AbstractSubstitutionModel.h.
References bpp::AbstractTransitionModel::verboseLevel_.
|
inlinevirtualinherited |
By definition Sij(i,j) = Sij(j,i).
Implements bpp::SubstitutionModelInterface.
Definition at line 416 of file AbstractSubstitutionModel.h.
References bpp::AbstractSubstitutionModel::exchangeability_.
|
pure virtualinherited |
By definition Sij(i,j) = Sij(j,i).
Implemented in bpp::MarkovModulatedSubstitutionModel, bpp::InMixedSubstitutionModel, bpp::AbstractTotallyWrappedSubstitutionModel, and bpp::AbstractSubstitutionModel.
Referenced by bpp::AbstractTotallyWrappedSubstitutionModel::Sij(), and bpp::InMixedSubstitutionModel::Sij().
|
pure virtualinherited |
Implemented in bpp::RegisterRatesSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, bpp::AbstractWrappedModel, and bpp::AbstractTransitionModel.
Referenced by bpp::SubstitutionModelSet::stateMap(), bpp::SubstitutionProcessCollectionMember::stateMap(), and bpp::AbstractWrappedModel::stateMap().
|
inlineoverridevirtualinherited |
Implements bpp::BranchModelInterface.
Reimplemented in bpp::RegisterRatesSubstitutionModel.
Definition at line 171 of file AbstractSubstitutionModel.h.
References bpp::AbstractTransitionModel::stateMap_.
|
overrideprotectedvirtualinherited |
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.
!! Here there is no normalization of the generator.
Now check inversion and diagonalization
Reimplemented from bpp::AbstractWordSubstitutionModel.
Definition at line 107 of file AbstractCodonSubstitutionModel.cpp.
References bpp::ParameterAliasable::getParameterValue(), bpp::AbstractCodonSubstitutionModel::hasParametrizedRates_, bpp::TextTools::toString(), bpp::AbstractWordSubstitutionModel::updateMatrices_(), bpp::AbstractWordSubstitutionModel::Vrate_, and bpp::AbstractWordSubstitutionModel::VSubMod_.
Referenced by CodonAdHocSubstitutionModel(), bpp::CodonDistanceFrequenciesSubstitutionModel::CodonDistanceFrequenciesSubstitutionModel(), bpp::CodonDistancePhaseFrequenciesSubstitutionModel::CodonDistancePhaseFrequenciesSubstitutionModel(), bpp::CodonDistanceSubstitutionModel::CodonDistanceSubstitutionModel(), bpp::SENCA::SENCA(), and bpp::SENCA::setFreq().
|
inlineinherited |
Definition at line 241 of file AbstractSubstitutionModel.h.
References bpp::AbstractTransitionModel::verboseLevel_.
|
protectedinherited |
The alphabet relevant to this model.
Definition at line 121 of file AbstractSubstitutionModel.h.
Referenced by bpp::AbstractWordSubstitutionModel::AbstractWordSubstitutionModel(), bpp::AbstractTransitionModel::alphabet(), bpp::POMO::getAllelicAlphabet(), bpp::AbstractTransitionModel::getAlphabet(), bpp::AbstractTransitionModel::getInitValue(), bpp::RE08::getInitValue(), bpp::AbstractNucleotideSubstitutionModel::getNucleicAlphabet(), bpp::AbstractReversibleNucleotideSubstitutionModel::getNucleicAlphabet(), bpp::RE08Nucleotide::getNucleicAlphabet(), bpp::AbstractProteinSubstitutionModel::getProteicAlphabet(), bpp::AbstractReversibleProteinSubstitutionModel::getProteicAlphabet(), bpp::RE08Protein::getProteicAlphabet(), and bpp::AbstractWordSubstitutionModel::operator=().
|
protectedinherited |
if the Frequencies must be computed from the generator
Definition at line 303 of file AbstractSubstitutionModel.h.
Referenced by bpp::AbstractReversibleSubstitutionModel::AbstractReversibleSubstitutionModel(), bpp::AbstractSubstitutionModel::computeFrequencies(), and bpp::AbstractSubstitutionModel::operator=().
|
mutableprotectedinherited |
Definition at line 150 of file AbstractSubstitutionModel.h.
Referenced by bpp::WordSubstitutionModel::getd2Pij_dt2(), bpp::AbstractSubstitutionModel::getd2Pij_dt2(), and bpp::AbstractMixedTransitionModel::getd2Pij_dt2().
|
mutableprotectedinherited |
Definition at line 149 of file AbstractSubstitutionModel.h.
Referenced by bpp::WordSubstitutionModel::getdPij_dt(), bpp::AbstractSubstitutionModel::getdPij_dt(), and bpp::AbstractMixedTransitionModel::getdPij_dt().
|
protectedinherited |
Tell if the eigen decomposition should be performed.
Definition at line 315 of file AbstractSubstitutionModel.h.
Referenced by bpp::AbstractSubstitutionModel::enableEigenDecomposition(), and bpp::AbstractSubstitutionModel::operator=().
|
protectedinherited |
The vector of eigen values.
Definition at line 320 of file AbstractSubstitutionModel.h.
Referenced by bpp::AbstractSubstitutionModel::getd2Pij_dt2(), bpp::AbstractSubstitutionModel::getdPij_dt(), bpp::AbstractSubstitutionModel::getEigenValues(), bpp::AbstractSubstitutionModel::getPij_t(), bpp::AbstractSubstitutionModel::operator=(), bpp::RE08::RE08(), bpp::AbstractSubstitutionModel::setScale(), bpp::AbstractSubstitutionModel::updateMatrices_(), bpp::BinarySubstitutionModel::updateMatrices_(), bpp::F84::updateMatrices_(), bpp::HKY85::updateMatrices_(), bpp::TwoParameterBinarySubstitutionModel::updateMatrices_(), bpp::EquiprobableSubstitutionModel::updateMatrices_(), bpp::F81::updateMatrices_(), bpp::gBGC::updateMatrices_(), bpp::JCnuc::updateMatrices_(), bpp::K80::updateMatrices_(), bpp::RN95::updateMatrices_(), bpp::RN95s::updateMatrices_(), bpp::T92::updateMatrices_(), bpp::TN93::updateMatrices_(), bpp::JCprot::updateMatrices_(), and bpp::YpR::updateMatrices_().
|
protectedinherited |
The exchangeability matrix of the model, defined as . When the model is reversible, this matrix is symmetric.
Definition at line 310 of file AbstractSubstitutionModel.h.
Referenced by bpp::Coala::Coala(), bpp::D1WalkSubstitutionModel::D1WalkSubstitutionModel(), bpp::LGL08_CAT::EmbeddedModel::EmbeddedModel(), bpp::AbstractSubstitutionModel::exchangeabilityMatrix(), bpp::AbstractSubstitutionModel::operator=(), bpp::RE08::RE08(), bpp::UserProteinSubstitutionModel::readFromFile(), bpp::Coala::readFromFile(), bpp::AbstractSubstitutionModel::Sij(), bpp::AbstractWordSubstitutionModel::updateMatrices_(), bpp::F84::updateMatrices_(), bpp::HKY85::updateMatrices_(), bpp::AbstractReversibleSubstitutionModel::updateMatrices_(), bpp::EquiprobableSubstitutionModel::updateMatrices_(), bpp::F81::updateMatrices_(), bpp::GTR::updateMatrices_(), bpp::JCnuc::updateMatrices_(), bpp::K80::updateMatrices_(), bpp::RN95::updateMatrices_(), bpp::RN95s::updateMatrices_(), bpp::SSR::updateMatrices_(), bpp::T92::updateMatrices_(), bpp::TN93::updateMatrices_(), bpp::JCprot::updateMatrices_(), bpp::RE08::updateMatrices_(), and bpp::YpR::updateMatrices_().
|
protectedinherited |
The vector of equilibrium frequencies.
Definition at line 143 of file AbstractSubstitutionModel.h.
Referenced by bpp::AbstractReversibleSubstitutionModel::AbstractReversibleSubstitutionModel(), bpp::AbstractTransitionModel::AbstractTransitionModel(), bpp::WordSubstitutionModel::completeMatrices_(), bpp::Coala::computeEquilibriumFrequencies(), bpp::RE08::d2Pij_dt2(), bpp::RE08::dPij_dt(), bpp::DSO78::DSO78(), bpp::EquiprobableSubstitutionModel::EquiprobableSubstitutionModel(), bpp::EquiprobableSubstitutionModel::fireParameterChanged(), bpp::DSO78::fireParameterChanged(), bpp::JCprot::fireParameterChanged(), bpp::JTT92::fireParameterChanged(), bpp::LG08::fireParameterChanged(), bpp::UserProteinSubstitutionModel::fireParameterChanged(), bpp::WAG01::fireParameterChanged(), bpp::AbstractTransitionModel::freq(), bpp::RE08::getd2Pij_dt2(), bpp::RE08::getdPij_dt(), bpp::AbstractTransitionModel::getFrequencies(), bpp::AbstractTransitionModel::getFrequencies_(), bpp::RE08::getPij_t(), bpp::AbstractSubstitutionModel::getScale(), bpp::JCprot::JCprot(), bpp::JTT92::JTT92(), bpp::LG08::LG08(), bpp::RE08::Pij_t(), bpp::RE08::RE08(), bpp::UserProteinSubstitutionModel::readFromFile(), bpp::D1WalkSubstitutionModel::setFreq(), bpp::EquiprobableSubstitutionModel::setFreq(), bpp::AbstractTransitionModel::setFreq(), bpp::DSO78::setFreqFromData(), bpp::JCprot::setFreqFromData(), bpp::JTT92::setFreqFromData(), bpp::LG08::setFreqFromData(), bpp::UserProteinSubstitutionModel::setFreqFromData(), bpp::WAG01::setFreqFromData(), bpp::AbstractSubstitutionModel::updateMatrices_(), bpp::AbstractWordSubstitutionModel::updateMatrices_(), bpp::BinarySubstitutionModel::updateMatrices_(), bpp::F84::updateMatrices_(), bpp::HKY85::updateMatrices_(), bpp::TwoParameterBinarySubstitutionModel::updateMatrices_(), bpp::AbstractReversibleSubstitutionModel::updateMatrices_(), bpp::D1WalkSubstitutionModel::updateMatrices_(), bpp::EquiprobableSubstitutionModel::updateMatrices_(), bpp::MixtureOfATransitionModel::updateMatrices_(), bpp::MixtureOfTransitionModels::updateMatrices_(), bpp::F81::updateMatrices_(), bpp::gBGC::updateMatrices_(), bpp::GTR::updateMatrices_(), bpp::JCnuc::updateMatrices_(), bpp::K80::updateMatrices_(), bpp::L95::updateMatrices_(), bpp::RN95::updateMatrices_(), bpp::RN95s::updateMatrices_(), bpp::SSR::updateMatrices_(), bpp::T92::updateMatrices_(), bpp::TN93::updateMatrices_(), bpp::POMO::updateMatrices_(), bpp::JCprot::updateMatrices_(), bpp::RE08::updateMatrices_(), bpp::YpR::updateMatrices_(), bpp::UserProteinSubstitutionModel::UserProteinSubstitutionModel(), and bpp::WAG01::WAG01().
|
private |
optional FrequencySet if model is defined through a FrequencySet.
Definition at line 36 of file CodonAdHocSubstitutionModel.h.
Referenced by CodonAdHocSubstitutionModel(), codonFrequencySet(), hasCodonFrequencySet(), and operator=().
|
privateinherited |
Definition at line 48 of file AbstractCodonSubstitutionModel.h.
Referenced by bpp::AbstractCodonSubstitutionModel::completeMatrices_(), bpp::AbstractCodonSubstitutionModel::getGeneticCode(), and bpp::AbstractCodonSubstitutionModel::operator=().
|
protectedinherited |
The generator matrix of the model.
Definition at line 298 of file AbstractSubstitutionModel.h.
Referenced by bpp::AbstractCodonSubstitutionModel::completeMatrices_(), bpp::AbstractKroneckerCodonSubstitutionModel::completeMatrices_(), bpp::CodonSameAARateSubstitutionModel::compute_(), bpp::AbstractKroneckerWordSubstitutionModel::fillBasicGenerator_(), bpp::AbstractWordSubstitutionModel::fillBasicGenerator_(), bpp::AbstractSubstitutionModel::generator(), bpp::AbstractSubstitutionModel::getScale(), bpp::AbstractSubstitutionModel::operator=(), bpp::AbstractSubstitutionModel::Qij(), bpp::RE08::RE08(), bpp::AbstractSubstitutionModel::setDiagonal(), bpp::AnonymousSubstitutionModel::setGenerator(), bpp::AbstractSubstitutionModel::setScale(), bpp::AbstractSubstitutionModel::updateMatrices_(), bpp::AbstractWordSubstitutionModel::updateMatrices_(), bpp::BinarySubstitutionModel::updateMatrices_(), bpp::F84::updateMatrices_(), bpp::HKY85::updateMatrices_(), bpp::TwoParameterBinarySubstitutionModel::updateMatrices_(), bpp::AbstractReversibleSubstitutionModel::updateMatrices_(), bpp::AbstractDFPSubstitutionModel::updateMatrices_(), bpp::EquiprobableSubstitutionModel::updateMatrices_(), bpp::F81::updateMatrices_(), bpp::gBGC::updateMatrices_(), bpp::JCnuc::updateMatrices_(), bpp::K80::updateMatrices_(), bpp::L95::updateMatrices_(), bpp::RN95::updateMatrices_(), bpp::RN95s::updateMatrices_(), bpp::T92::updateMatrices_(), bpp::TN93::updateMatrices_(), bpp::POMO::updateMatrices_(), bpp::JCprot::updateMatrices_(), bpp::RE08::updateMatrices_(), bpp::RegisterRatesSubstitutionModel::updateMatrices_(), and bpp::YpR::updateMatrices_().
|
privateinherited |
boolean for the parametrization of the position relative rates. Default : false.
Definition at line 47 of file AbstractCodonSubstitutionModel.h.
Referenced by bpp::AbstractCodonSubstitutionModel::AbstractCodonSubstitutionModel(), bpp::AbstractCodonSubstitutionModel::operator=(), and bpp::AbstractCodonSubstitutionModel::updateMatrices_().
|
protectedinherited |
The vector of the imaginary part of the eigen values.
Definition at line 325 of file AbstractSubstitutionModel.h.
Referenced by bpp::AbstractSubstitutionModel::getd2Pij_dt2(), bpp::AbstractSubstitutionModel::getdPij_dt(), bpp::AbstractSubstitutionModel::getIEigenValues(), bpp::AbstractSubstitutionModel::getPij_t(), bpp::AbstractSubstitutionModel::operator=(), bpp::AbstractSubstitutionModel::setScale(), bpp::AbstractSubstitutionModel::updateMatrices_(), bpp::gBGC::updateMatrices_(), and bpp::YpR::updateMatrices_().
|
protectedinherited |
boolean value for diagonalizability in R of the generator_
Definition at line 330 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=(), bpp::AbstractSubstitutionModel::updateMatrices_(), bpp::gBGC::updateMatrices_(), bpp::RN95::updateMatrices_(), bpp::RN95s::updateMatrices_(), and bpp::YpR::updateMatrices_().
|
protectedinherited |
boolean value for non-singularity of rightEigenVectors_
Definition at line 340 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=(), bpp::AbstractSubstitutionModel::updateMatrices_(), bpp::gBGC::updateMatrices_(), bpp::RN95::updateMatrices_(), bpp::RN95s::updateMatrices_(), and bpp::YpR::updateMatrices_().
|
protectedinherited |
If the model is scalable (ie generator can be normalized automatically).
Definition at line 293 of file AbstractSubstitutionModel.h.
Referenced by bpp::AbstractSubstitutionModel::isScalable(), bpp::AbstractSubstitutionModel::normalize(), bpp::AbstractSubstitutionModel::operator=(), bpp::RegisterRatesSubstitutionModel::RegisterRatesSubstitutionModel(), bpp::AbstractSubstitutionModel::setScalable(), and bpp::AbstractSubstitutionModel::setScale().
|
protectedinherited |
The matrix made of left eigen vectors (by row) if rightEigenVectors_ is non-singular.
Definition at line 346 of file AbstractSubstitutionModel.h.
Referenced by bpp::AbstractSubstitutionModel::getd2Pij_dt2(), bpp::AbstractSubstitutionModel::getdPij_dt(), bpp::AbstractSubstitutionModel::getPij_t(), bpp::AbstractSubstitutionModel::getRowLeftEigenVectors(), bpp::AbstractSubstitutionModel::operator=(), bpp::RE08::RE08(), bpp::AbstractSubstitutionModel::updateMatrices_(), bpp::BinarySubstitutionModel::updateMatrices_(), bpp::F84::updateMatrices_(), bpp::HKY85::updateMatrices_(), bpp::TwoParameterBinarySubstitutionModel::updateMatrices_(), bpp::EquiprobableSubstitutionModel::updateMatrices_(), bpp::F81::updateMatrices_(), bpp::gBGC::updateMatrices_(), bpp::JCnuc::updateMatrices_(), bpp::K80::updateMatrices_(), bpp::RN95::updateMatrices_(), bpp::RN95s::updateMatrices_(), bpp::T92::updateMatrices_(), bpp::TN93::updateMatrices_(), bpp::JCprot::updateMatrices_(), and bpp::YpR::updateMatrices_().
|
mutableprivateinherited |
Definition at line 23 of file AbstractSubstitutionModel.h.
Referenced by bpp::AbstractLkTransitionModel::d2Lik_dt2(), bpp::AbstractLkTransitionModel::dLik_dt(), and bpp::AbstractLkTransitionModel::Lik_t().
|
private |
Definition at line 30 of file CodonAdHocSubstitutionModel.h.
Referenced by getName(), and operator=().
|
privateinherited |
boolean flag to check if a specific WordAlphabet has been built
Definition at line 109 of file AbstractWordSubstitutionModel.h.
Referenced by bpp::AbstractWordSubstitutionModel::AbstractWordSubstitutionModel(), and bpp::AbstractWordSubstitutionModel::operator=().
|
mutableprotectedinherited |
These ones are for bookkeeping:
Definition at line 148 of file AbstractSubstitutionModel.h.
Referenced by bpp::WordSubstitutionModel::getPij_t(), bpp::AbstractSubstitutionModel::getPij_t(), and bpp::AbstractMixedTransitionModel::getPij_t().
|
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 138 of file AbstractSubstitutionModel.h.
Referenced by bpp::AbstractTransitionModel::addRateParameter(), bpp::BinarySubstitutionModel::d2Pij_dt2(), bpp::F84::d2Pij_dt2(), bpp::HKY85::d2Pij_dt2(), bpp::TwoParameterBinarySubstitutionModel::d2Pij_dt2(), bpp::EquiprobableSubstitutionModel::d2Pij_dt2(), bpp::F81::d2Pij_dt2(), bpp::JCnuc::d2Pij_dt2(), bpp::K80::d2Pij_dt2(), bpp::T92::d2Pij_dt2(), bpp::TN93::d2Pij_dt2(), bpp::JCprot::d2Pij_dt2(), bpp::BinarySubstitutionModel::dPij_dt(), bpp::F84::dPij_dt(), bpp::HKY85::dPij_dt(), bpp::TwoParameterBinarySubstitutionModel::dPij_dt(), bpp::EquiprobableSubstitutionModel::dPij_dt(), bpp::F81::dPij_dt(), bpp::JCnuc::dPij_dt(), bpp::K80::dPij_dt(), bpp::T92::dPij_dt(), bpp::TN93::dPij_dt(), bpp::JCprot::dPij_dt(), bpp::AbstractTransitionModel::fireParameterChanged(), bpp::BinarySubstitutionModel::getd2Pij_dt2(), bpp::F84::getd2Pij_dt2(), bpp::HKY85::getd2Pij_dt2(), bpp::TwoParameterBinarySubstitutionModel::getd2Pij_dt2(), bpp::EquiprobableSubstitutionModel::getd2Pij_dt2(), bpp::F81::getd2Pij_dt2(), bpp::JCnuc::getd2Pij_dt2(), bpp::K80::getd2Pij_dt2(), bpp::T92::getd2Pij_dt2(), bpp::TN93::getd2Pij_dt2(), bpp::JCprot::getd2Pij_dt2(), bpp::WordSubstitutionModel::getd2Pij_dt2(), bpp::AbstractSubstitutionModel::getd2Pij_dt2(), bpp::BinarySubstitutionModel::getdPij_dt(), bpp::F84::getdPij_dt(), bpp::HKY85::getdPij_dt(), bpp::TwoParameterBinarySubstitutionModel::getdPij_dt(), bpp::EquiprobableSubstitutionModel::getdPij_dt(), bpp::F81::getdPij_dt(), bpp::JCnuc::getdPij_dt(), bpp::K80::getdPij_dt(), bpp::T92::getdPij_dt(), bpp::TN93::getdPij_dt(), bpp::JCprot::getdPij_dt(), bpp::WordSubstitutionModel::getdPij_dt(), bpp::AbstractSubstitutionModel::getdPij_dt(), bpp::BinarySubstitutionModel::getPij_t(), bpp::F84::getPij_t(), bpp::HKY85::getPij_t(), bpp::TwoParameterBinarySubstitutionModel::getPij_t(), bpp::EquiprobableSubstitutionModel::getPij_t(), bpp::F81::getPij_t(), bpp::JCnuc::getPij_t(), bpp::K80::getPij_t(), bpp::T92::getPij_t(), bpp::TN93::getPij_t(), bpp::JCprot::getPij_t(), bpp::WordSubstitutionModel::getPij_t(), bpp::AbstractSubstitutionModel::getPij_t(), bpp::AbstractTransitionModel::getRate(), bpp::AbstractMixedTransitionModel::normalizeVRates(), bpp::BinarySubstitutionModel::Pij_t(), bpp::F84::Pij_t(), bpp::HKY85::Pij_t(), bpp::TwoParameterBinarySubstitutionModel::Pij_t(), bpp::EquiprobableSubstitutionModel::Pij_t(), bpp::F81::Pij_t(), bpp::JCnuc::Pij_t(), bpp::K80::Pij_t(), bpp::T92::Pij_t(), bpp::TN93::Pij_t(), bpp::JCprot::Pij_t(), bpp::AbstractMixedTransitionModel::setRate(), bpp::AbstractTransitionModel::setRate(), bpp::BinarySubstitutionModel::updateMatrices_(), bpp::TwoParameterBinarySubstitutionModel::updateMatrices_(), and bpp::MixtureOfTransitionModels::updateMatrices_().
|
protectedinherited |
The matrix made of right eigen vectors (by column).
Definition at line 335 of file AbstractSubstitutionModel.h.
Referenced by bpp::AbstractSubstitutionModel::getColumnRightEigenVectors(), bpp::AbstractSubstitutionModel::getd2Pij_dt2(), bpp::AbstractSubstitutionModel::getdPij_dt(), bpp::AbstractSubstitutionModel::getPij_t(), bpp::AbstractSubstitutionModel::operator=(), bpp::RE08::RE08(), bpp::AbstractSubstitutionModel::updateMatrices_(), bpp::BinarySubstitutionModel::updateMatrices_(), bpp::F84::updateMatrices_(), bpp::HKY85::updateMatrices_(), bpp::TwoParameterBinarySubstitutionModel::updateMatrices_(), bpp::EquiprobableSubstitutionModel::updateMatrices_(), bpp::F81::updateMatrices_(), bpp::gBGC::updateMatrices_(), bpp::JCnuc::updateMatrices_(), bpp::K80::updateMatrices_(), bpp::RN95::updateMatrices_(), bpp::RN95s::updateMatrices_(), bpp::T92::updateMatrices_(), bpp::TN93::updateMatrices_(), bpp::JCprot::updateMatrices_(), and bpp::YpR::updateMatrices_().
|
protectedinherited |
The number of states.
Definition at line 131 of file AbstractSubstitutionModel.h.
Referenced by bpp::AbstractReversibleSubstitutionModel::AbstractReversibleSubstitutionModel(), bpp::AbstractTransitionModel::AbstractTransitionModel(), bpp::D1WalkSubstitutionModel::D1WalkSubstitutionModel(), bpp::EquiprobableSubstitutionModel::d2Pij_dt2(), bpp::RE08::d2Pij_dt2(), bpp::EquiprobableSubstitutionModel::dPij_dt(), bpp::RE08::dPij_dt(), bpp::EquiprobableSubstitutionModel::getd2Pij_dt2(), bpp::JCnuc::getd2Pij_dt2(), bpp::JCprot::getd2Pij_dt2(), bpp::RE08::getd2Pij_dt2(), bpp::AbstractSubstitutionModel::getd2Pij_dt2(), bpp::EquiprobableSubstitutionModel::getdPij_dt(), bpp::JCnuc::getdPij_dt(), bpp::JCprot::getdPij_dt(), bpp::RE08::getdPij_dt(), bpp::AbstractSubstitutionModel::getdPij_dt(), bpp::AbstractTransitionModel::getInitValue(), bpp::RE08::getInitValue(), bpp::EquiprobableSubstitutionModel::getPij_t(), bpp::JCnuc::getPij_t(), bpp::JCprot::getPij_t(), bpp::RE08::getPij_t(), bpp::AbstractSubstitutionModel::getPij_t(), bpp::EquiprobableSubstitutionModel::Pij_t(), bpp::RE08::Pij_t(), bpp::RE08::RE08(), bpp::AbstractSubstitutionModel::setDiagonal(), bpp::T92::T92(), bpp::TN93::TN93(), bpp::AbstractWordSubstitutionModel::updateMatrices_(), bpp::EquiprobableSubstitutionModel::updateMatrices_(), bpp::RN95::updateMatrices_(), bpp::RN95s::updateMatrices_(), bpp::RE08::updateMatrices_(), and bpp::YpR::updateMatrices_().
|
protectedinherited |
The map of model states with alphabet states.
Definition at line 126 of file AbstractSubstitutionModel.h.
Referenced by bpp::AbstractWordSubstitutionModel::AbstractWordSubstitutionModel(), bpp::CodonSameAARateSubstitutionModel::compute_(), bpp::AbstractTransitionModel::getAlphabetStateAsChar(), bpp::AbstractTransitionModel::getAlphabetStateAsInt(), bpp::AbstractTransitionModel::getAlphabetStates(), bpp::AbstractTransitionModel::getModelStates(), bpp::AbstractTransitionModel::getNumberOfStates(), bpp::AbstractTransitionModel::getStateMap(), and bpp::AbstractTransitionModel::stateMap().
|
mutableprotectedinherited |
For computational issues.
Definition at line 357 of file AbstractSubstitutionModel.h.
Referenced by bpp::AbstractSubstitutionModel::getd2Pij_dt2(), bpp::AbstractSubstitutionModel::getdPij_dt(), bpp::AbstractSubstitutionModel::getPij_t(), bpp::AbstractSubstitutionModel::operator=(), bpp::AbstractSubstitutionModel::updateMatrices_(), bpp::gBGC::updateMatrices_(), and bpp::YpR::updateMatrices_().
|
protectedinherited |
Definition at line 152 of file AbstractSubstitutionModel.h.
Referenced by bpp::AbstractTransitionModel::setVerboseLevel(), bpp::AbstractSubstitutionModel::updateMatrices_(), and bpp::AbstractTransitionModel::verboseLevel().
|
private |
Definition at line 28 of file CodonAdHocSubstitutionModel.h.
Referenced by CodonAdHocSubstitutionModel(), fireParameterChanged(), getCodonsMulRate(), getNumberOfModels(), layerModel(), operator=(), setFreq(), and setNamespace().
|
protectedinherited |
Definition at line 117 of file AbstractWordSubstitutionModel.h.
Referenced by bpp::AbstractCodonSubstitutionModel::AbstractCodonSubstitutionModel(), bpp::AbstractKroneckerCodonSubstitutionModel::AbstractKroneckerCodonSubstitutionModel(), bpp::AbstractWordSubstitutionModel::AbstractWordSubstitutionModel(), bpp::AbstractWordSubstitutionModel::operator=(), bpp::AbstractWordSubstitutionModel::setNamespace(), and bpp::TripletSubstitutionModel::TripletSubstitutionModel().
|
protectedinherited |
vector of the powers of generator_ for Taylor development (if rightEigenVectors_ is singular).
Definition at line 352 of file AbstractSubstitutionModel.h.
Referenced by bpp::AbstractSubstitutionModel::getd2Pij_dt2(), bpp::AbstractSubstitutionModel::getdPij_dt(), bpp::AbstractSubstitutionModel::getPij_t(), bpp::AbstractSubstitutionModel::operator=(), bpp::AbstractSubstitutionModel::updateMatrices_(), bpp::gBGC::updateMatrices_(), bpp::RN95::updateMatrices_(), bpp::RN95s::updateMatrices_(), and bpp::YpR::updateMatrices_().
|
protectedinherited |
Definition at line 119 of file AbstractWordSubstitutionModel.h.
Referenced by bpp::AbstractCodonSubstitutionModel::AbstractCodonSubstitutionModel(), bpp::AbstractWordSubstitutionModel::AbstractWordSubstitutionModel(), bpp::AbstractWordSubstitutionModel::fillBasicGenerator_(), bpp::WordSubstitutionModel::getd2Pij_dt2(), bpp::WordSubstitutionModel::getdPij_dt(), bpp::WordSubstitutionModel::getPij_t(), bpp::AbstractWordSubstitutionModel::operator=(), bpp::TripletSubstitutionModel::TripletSubstitutionModel(), bpp::AbstractCodonSubstitutionModel::updateMatrices_(), and bpp::WordSubstitutionModel::updateMatrices_().
|
protectedinherited |
Vector of shared_ptr, to allow multiple positions to share the same model.
Definition at line 115 of file AbstractWordSubstitutionModel.h.
Referenced by bpp::AbstractCodonSubstitutionModel::AbstractCodonSubstitutionModel(), bpp::AbstractKroneckerCodonSubstitutionModel::AbstractKroneckerCodonSubstitutionModel(), bpp::AbstractKroneckerWordSubstitutionModel::AbstractKroneckerWordSubstitutionModel(), bpp::AbstractWordSubstitutionModel::AbstractWordSubstitutionModel(), bpp::AbstractKroneckerWordSubstitutionModel::checkChangingPositions_(), bpp::WordSubstitutionModel::completeMatrices_(), bpp::AbstractKroneckerWordSubstitutionModel::fillBasicGenerator_(), bpp::AbstractWordSubstitutionModel::fillBasicGenerator_(), bpp::WordSubstitutionModel::getd2Pij_dt2(), bpp::WordSubstitutionModel::getdPij_dt(), bpp::TripletSubstitutionModel::getName(), bpp::AbstractWordSubstitutionModel::getNumberOfModels(), bpp::WordSubstitutionModel::getPij_t(), bpp::AbstractKroneckerWordSubstitutionModel::initGenerators_(), bpp::AbstractWordSubstitutionModel::nModel(), bpp::AbstractWordSubstitutionModel::operator=(), bpp::AbstractWordSubstitutionModel::setFreq(), bpp::AbstractWordSubstitutionModel::setNamespace(), bpp::TripletSubstitutionModel::TripletSubstitutionModel(), bpp::AbstractWordSubstitutionModel::updateMatrices_(), bpp::AbstractCodonSubstitutionModel::updateMatrices_(), bpp::WordSubstitutionModel::updateMatrices_(), and bpp::WordSubstitutionModel::WordSubstitutionModel().