bpp-phyl3
3.0.0
|
The Yang et al (2000) M1 substitution model for codons, with the more realistic modification in Wong & al (2004). More...
#include <Bpp/Phyl/Model/Codon/YNGP_M1.h>
Public Member Functions | |
YNGP_M1 (std::shared_ptr< const GeneticCode > gc, std::unique_ptr< CodonFrequencySetInterface > codonFreqs) | |
YNGP_M1 * | clone () const override |
std::string | getName () const override |
Get the name of the model. More... | |
const TransitionModelInterface & | nModel (size_t i) const override |
Returns the submodel from the mixture. More... | |
std::shared_ptr< const TransitionModelInterface > | getNModel (size_t i) const override |
double | getNProbability (size_t i) const override |
Returns the probability of a specific model from the mixture. More... | |
const std::vector< double > & | getProbabilities () const override |
Returns the vector of the probabilities of the submodels of the mixture. More... | |
void | setNProbability (size_t i, double prob) override |
Sets the probabilities of the submodels of the mixture. More... | |
size_t | getNumberOfModels () const override |
Returns the number of submodels. More... | |
void | setVRates (const Vdouble &vd) override |
sets the rates of the submodels. More... | |
void | normalizeVRates () override |
normalizes the rates of the submodels. More... | |
const std::vector< double > & | getVRates () const override |
Returns the vector of all the rates of the mixture. More... | |
double | getNRate (size_t i) const override |
Returns the rate of a specific model from the mixture. More... | |
const TransitionModelInterface & | model (const std::string &name) const override |
Access the submodel with the given name. More... | |
const BranchModelInterface & | model () const override |
Vuint | getSubmodelNumbers (const std::string &desc) const override |
Returns the vector of numbers of the submodels in the mixture that match a description. More... | |
const TransitionModelInterface & | transitionModel () const override |
const MixedTransitionModelInterface & | mixedModel () const |
const FrequencySetInterface & | frequencySet () const override |
virtual double | freq (size_t i) const =0 |
virtual double | Pij_t (size_t i, size_t j, double t) const =0 |
virtual double | dPij_dt (size_t i, size_t j, double t) const =0 |
virtual double | d2Pij_dt2 (size_t i, size_t j, double t) const =0 |
virtual const Vdouble & | getFrequencies () const =0 |
virtual bool | computeFrequencies () const =0 |
virtual void | computeFrequencies (bool yn)=0 |
virtual const Matrix< double > & | getPij_t (double t) const =0 |
virtual const Matrix< double > & | getdPij_dt (double t) const =0 |
virtual const Matrix< double > & | getd2Pij_dt2 (double t) const =0 |
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... | |
virtual void | setFreq (std::map< int, double > &frequencies)=0 |
Set equilibrium frequencies. More... | |
virtual const std::vector< int > & | getAlphabetStates () const =0 |
virtual const StateMapInterface & | stateMap () const =0 |
virtual std::shared_ptr< const StateMapInterface > | getStateMap () const =0 |
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... | |
virtual int | getAlphabetStateAsInt (size_t index) const =0 |
virtual std::string | getAlphabetStateAsChar (size_t index) const =0 |
virtual const Alphabet & | alphabet () const =0 |
virtual std::shared_ptr< const Alphabet > | getAlphabet () const =0 |
virtual size_t | getNumberOfStates () const =0 |
Get the number of states. More... | |
virtual double | getInitValue (size_t i, int state) const =0 |
virtual double | getRate () const =0 |
Get the rate. More... | |
virtual void | setRate (double rate)=0 |
Set the rate of the model (must be positive). More... | |
virtual void | addRateParameter ()=0 |
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 void | setNamespace (const std::string &prefix)=0 |
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 |
std::string | getParNameFromPmodel (const std::string &name) const |
get the name of a parameter from its name in a submodel More... | |
std::string | getPmodelParName (const std::string &name) const |
get the name of a parameter in the submodel from its apparent name More... | |
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 |
double | freq (size_t i) const override |
Methods to supersede TransitionModel methods. More... | |
double | Pij_t (size_t i, size_t j, double t) const override |
double | dPij_dt (size_t i, size_t j, double t) const override |
double | d2Pij_dt2 (size_t i, size_t j, double t) const override |
const Vdouble & | getFrequencies () const override |
bool | computeFrequencies () const override |
void | computeFrequencies (bool yn) override |
const Matrix< double > & | getPij_t (double t) const override |
const Matrix< double > & | getdPij_dt (double t) const override |
const Matrix< double > & | getd2Pij_dt2 (double t) const override |
double | getInitValue (size_t i, int state) const override |
double | getRate () const override |
Get the rate. More... | |
void | setRate (double rate) override |
Set the rate of the model (must be positive). More... | |
void | setFreqFromData (const SequenceDataInterface &data, double pseudoCount=0) override |
Set equilibrium frequencies equal to the frequencies estimated from the data. More... | |
void | setFreq (std::map< int, double > &frequ) override |
Set equilibrium frequencies. More... | |
void | addRateParameter () override |
Methods to supersede TransitionModel methods. More... | |
void | setNamespace (const std::string &name) override |
virtual void | fireParameterChanged (const ParameterList ¶meters) override |
Methods to supersede AbstractTransitionModel methods. More... | |
const std::vector< int > & | getAlphabetStates () const override |
const StateMapInterface & | stateMap () const override |
std::shared_ptr< const StateMapInterface > | getStateMap () const override |
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... | |
int | getAlphabetStateAsInt (size_t i) const override |
std::string | getAlphabetStateAsChar (size_t i) const override |
const Alphabet & | alphabet () const override |
std::shared_ptr< const Alphabet > | getAlphabet () const override |
size_t | getNumberOfStates () const override |
Get the number of states. More... | |
Protected Attributes | |
const MixtureOfASubstitutionModel * | mixedSubModelPtr_ |
size_t | synfrom_ |
indexes of 2 codons states between which the substitution is synonymous, to set a basis to the homogeneization of the rates. More... | |
size_t | synto_ |
std::unique_ptr< MixedTransitionModelInterface > | mixedModelPtr_ |
std::map< std::string, std::string > | mapParNamesFromPmodel_ |
Tools to make the link between the Parameters of the object and those of pmixmodel_. More... | |
ParameterList | lParPmodel_ |
Private Attributes | |
ParameterList | independentParameters_ |
std::map< std::string, std::shared_ptr< AliasParameterListener > > | aliasListenersRegister_ |
ParameterList | parameters_ |
std::string | prefix_ |
Eigen::VectorXd | lik_ |
The Yang et al (2000) M1 substitution model for codons, with the more realistic modification in Wong & al (2004).
This model is a mixture of models as described in YN98 class, the mixture being defined on the selection parameter to allow it to vary among sites. A site is either negatively selected (with probability ), or neutral ( ) with probability .
The synonymous rates must be the same between both models, so the overall rates of the models are modified to respect this constraint and such that the mean rate of the mixed model equals one.
This model includes 3 parameters ( , and ). The codon frequencies are either observed or inferred.
References:
Yang, Z., R. Nielsen, N. Goldman, and A.-M. K. Pedersen (2000) Genetics 155:431-449.
Wong, W. S. W., Z. Yang, N. Goldman, and R. Nielsen. (2004) Genetics 168:1041–1051.
YNGP_M1::YNGP_M1 | ( | std::shared_ptr< const GeneticCode > | gc, |
std::unique_ptr< CodonFrequencySetInterface > | codonFreqs | ||
) |
Definition at line 17 of file YNGP_M1.cpp.
References bpp::AbstractParameterAliasable::addParameter_(), bpp::ParameterList::addParameters(), bpp::TransitionModelInterface::computeFrequencies(), bpp::AbstractBiblioMixedTransitionModel::frequencySet(), bpp::ParameterList::getParameterNames(), bpp::ParameterAliasable::getParameters(), bpp::AbstractBiblioTransitionModel::lParPmodel_, bpp::AbstractBiblioTransitionModel::mapParNamesFromPmodel_, bpp::AbstractBiblioMixedTransitionModel::mixedModel(), bpp::AbstractBiblioMixedTransitionModel::mixedModelPtr_, bpp::YNGP_M::mixedSubModelPtr_, bpp::SubstitutionModelInterface::Qij(), bpp::MixtureOfASubstitutionModel::subNModel(), bpp::YNGP_M::synfrom_, bpp::YNGP_M::synto_, and updateMatrices_().
Referenced by clone().
|
overridevirtualinherited |
Methods to supersede TransitionModel methods.
Implements bpp::BranchModelInterface.
Definition at line 76 of file AbstractBiblioSubstitutionModel.cpp.
References bpp::AbstractParameterAliasable::addParameter_(), bpp::ParameterList::addParameters(), bpp::BranchModelInterface::addRateParameter(), bpp::AbstractParameterAliasable::getNamespace(), bpp::AbstractParameterAliasable::getParameters(), bpp::AbstractTotallyWrappedTransitionModel::getRate(), bpp::AbstractBiblioTransitionModel::lParPmodel_, bpp::AbstractBiblioTransitionModel::mapParNamesFromPmodel_, bpp::AbstractWrappedTransitionModel::model(), bpp::AbstractWrappedTransitionModel::model_(), bpp::Parameter::R_PLUS_STAR, and bpp::ParameterList::reset().
|
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 53 of file AbstractWrappedModel.h.
References bpp::BranchModelInterface::alphabet(), and bpp::WrappedModelInterface::model().
Referenced by bpp::RegisterRatesSubstitutionModel::alphabet(), and bpp::OneChangeRegisterTransitionModel::OneChangeRegisterTransitionModel().
|
inlineoverridevirtual |
|
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(), 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().
|
inlineoverridevirtualinherited |
Implements bpp::TransitionModelInterface.
Definition at line 162 of file AbstractWrappedModel.h.
References bpp::TransitionModelInterface::computeFrequencies(), and bpp::WrappedTransitionModelInterface::transitionModel().
Referenced by bpp::DFP07::DFP07(), and bpp::YN98::YN98().
|
inlineoverridevirtualinherited |
Implements bpp::TransitionModelInterface.
Definition at line 171 of file AbstractWrappedModel.h.
References bpp::TransitionModelInterface::computeFrequencies(), and bpp::AbstractWrappedTransitionModel::transitionModel_().
|
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.
Definition at line 124 of file AbstractWrappedModel.h.
References bpp::TransitionModelInterface::d2Pij_dt2(), and bpp::WrappedTransitionModelInterface::transitionModel().
|
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.
Definition at line 123 of file AbstractWrappedModel.h.
References bpp::TransitionModelInterface::dPij_dt(), and bpp::WrappedTransitionModelInterface::transitionModel().
|
inlineoverridevirtualinherited |
Methods to supersede AbstractTransitionModel methods.
Tells the model that a parameter value has changed.
This updates the matrices consequently.
Reimplemented from bpp::AbstractParameterAliasable.
Definition at line 86 of file AbstractBiblioSubstitutionModel.h.
References bpp::AbstractParameterAliasable::getNamespace(), bpp::ParameterList::getParameterValue(), bpp::ParameterList::hasParameter(), bpp::AbstractWrappedTransitionModel::model_(), bpp::BranchModelInterface::setRate(), bpp::ParameterList::size(), and bpp::AbstractBiblioTransitionModel::updateMatrices_().
|
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 |
Methods to supersede TransitionModel methods.
Implements bpp::TransitionModelInterface.
Definition at line 120 of file AbstractWrappedModel.h.
References bpp::TransitionModelInterface::freq(), and bpp::WrappedTransitionModelInterface::transitionModel().
|
inlineoverridevirtualinherited |
Exception | if no FrequenceSet is associated to this model. |
Implements bpp::BranchModelInterface.
Definition at line 138 of file AbstractBiblioMixedTransitionModel.h.
References bpp::AbstractBiblioMixedTransitionModel::mixedModelPtr_.
Referenced by bpp::RELAX::RELAX(), 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().
|
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 55 of file AbstractWrappedModel.h.
References bpp::BranchModelInterface::getAlphabet(), and bpp::WrappedModelInterface::model().
Referenced by bpp::RegisterRatesSubstitutionModel::getAlphabet(), and bpp::OneChangeRegisterTransitionModel::OneChangeRegisterTransitionModel().
|
inlineoverridevirtualinherited |
index | The model state. |
Implements bpp::BranchModelInterface.
Reimplemented in bpp::RegisterRatesSubstitutionModel.
Definition at line 46 of file AbstractWrappedModel.h.
References bpp::BranchModelInterface::getAlphabetStateAsChar(), and bpp::WrappedModelInterface::model().
Referenced by bpp::RegisterRatesSubstitutionModel::getAlphabetStateAsChar().
|
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 44 of file AbstractWrappedModel.h.
References bpp::BranchModelInterface::getAlphabetStateAsInt(), and bpp::WrappedModelInterface::model().
Referenced by bpp::RegisterRatesSubstitutionModel::getAlphabetStateAsInt().
|
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().
|
pure virtualinherited |
Implemented in bpp::RegisterRatesSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, bpp::AbstractWrappedModel, and bpp::AbstractTransitionModel.
Referenced by bpp::SubstitutionModelSet::getAlphabetStates(), and bpp::AbstractWrappedModel::getAlphabetStates().
|
inlineoverridevirtualinherited |
@ brief Methods to supersede TransitionModel methods.
Implements bpp::BranchModelInterface.
Reimplemented in bpp::RegisterRatesSubstitutionModel.
Definition at line 38 of file AbstractWrappedModel.h.
References bpp::BranchModelInterface::getAlphabetStates(), and bpp::WrappedModelInterface::model().
Referenced by bpp::RegisterRatesSubstitutionModel::getAlphabetStates().
|
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().
|
inlineoverridevirtualinherited |
Implements bpp::TransitionModelInterface.
Definition at line 132 of file AbstractWrappedModel.h.
References bpp::TransitionModelInterface::getd2Pij_dt2(), and bpp::WrappedTransitionModelInterface::transitionModel().
|
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().
|
inlineoverridevirtualinherited |
Implements bpp::TransitionModelInterface.
Definition at line 130 of file AbstractWrappedModel.h.
References bpp::TransitionModelInterface::getdPij_dt(), and bpp::WrappedTransitionModelInterface::transitionModel().
|
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 126 of file AbstractWrappedModel.h.
References bpp::TransitionModelInterface::getFrequencies(), and bpp::WrappedTransitionModelInterface::transitionModel().
|
inlineoverrideprotectedvirtualinherited |
Implements bpp::TransitionModelInterface.
Definition at line 181 of file AbstractWrappedModel.h.
References bpp::TransitionModelInterface::getFrequencies_(), and bpp::AbstractWrappedTransitionModel::transitionModel_().
|
protectedpure virtualinherited |
Implemented in bpp::MarkovModulatedSubstitutionModel, bpp::InMixedSubstitutionModel, bpp::AbstractTotallyWrappedTransitionModel, bpp::AbstractTransitionModel, and bpp::AbstractFromSubstitutionModelTransitionModel.
Referenced by bpp::AbstractTotallyWrappedTransitionModel::getFrequencies_(), and bpp::InMixedSubstitutionModel::getFrequencies_().
|
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().
|
inlineoverridevirtualinherited |
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.
Definition at line 134 of file AbstractWrappedModel.h.
References bpp::BranchModelInterface::getInitValue(), and bpp::WrappedTransitionModelInterface::transitionModel().
|
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 50 of file AbstractWrappedModel.h.
References bpp::BranchModelInterface::getModelStates(), and bpp::WrappedModelInterface::model().
|
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 48 of file AbstractWrappedModel.h.
References bpp::BranchModelInterface::getModelStates(), and bpp::WrappedModelInterface::model().
Referenced by bpp::RegisterRatesSubstitutionModel::getModelStates().
|
inlineoverridevirtual |
|
inlineoverridevirtualinherited |
Implements bpp::MixedTransitionModelInterface.
Definition at line 43 of file AbstractBiblioMixedTransitionModel.h.
References bpp::MixedTransitionModelInterface::getNModel(), and bpp::AbstractBiblioMixedTransitionModel::mixedModel().
|
inlineoverridevirtualinherited |
Returns the probability of a specific model from the mixture.
Implements bpp::MixedTransitionModelInterface.
Definition at line 51 of file AbstractBiblioMixedTransitionModel.h.
References bpp::MixedTransitionModelInterface::getNProbability(), and bpp::AbstractBiblioMixedTransitionModel::mixedModel().
|
inlineoverridevirtualinherited |
Returns the rate of a specific model from the mixture.
Implements bpp::MixedTransitionModelInterface.
Definition at line 112 of file AbstractBiblioMixedTransitionModel.h.
References bpp::MixedTransitionModelInterface::getNRate(), and bpp::AbstractBiblioMixedTransitionModel::mixedModel().
|
inlineoverridevirtualinherited |
Returns the number of submodels.
Implements bpp::MixedTransitionModelInterface.
Definition at line 78 of file AbstractBiblioMixedTransitionModel.h.
References bpp::MixedTransitionModelInterface::getNumberOfModels(), and bpp::AbstractBiblioMixedTransitionModel::mixedModel().
|
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.
Definition at line 57 of file AbstractWrappedModel.h.
References bpp::BranchModelInterface::getNumberOfStates(), and bpp::WrappedModelInterface::model().
|
inherited |
get the name of a parameter from its name in a submodel
name | the name of the parameter in the submodel |
Definition at line 37 of file AbstractBiblioSubstitutionModel.cpp.
References bpp::AbstractBiblioTransitionModel::mapParNamesFromPmodel_.
|
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().
|
inlineoverridevirtualinherited |
Implements bpp::TransitionModelInterface.
Definition at line 128 of file AbstractWrappedModel.h.
References bpp::TransitionModelInterface::getPij_t(), and bpp::WrappedTransitionModelInterface::transitionModel().
|
inherited |
get the name of a parameter in the submodel from its apparent name
name | the name of the parameter |
Definition at line 47 of file AbstractBiblioSubstitutionModel.cpp.
References bpp::AbstractBiblioTransitionModel::mapParNamesFromPmodel_.
|
inlineoverridevirtualinherited |
Returns the vector of the probabilities of the submodels of the mixture.
Implements bpp::MixedTransitionModelInterface.
Definition at line 61 of file AbstractBiblioMixedTransitionModel.h.
References bpp::MixedTransitionModelInterface::getProbabilities(), and bpp::AbstractBiblioMixedTransitionModel::mixedModel().
|
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().
|
inlineoverridevirtualinherited |
Get the rate.
Implements bpp::BranchModelInterface.
Definition at line 139 of file AbstractWrappedModel.h.
References bpp::BranchModelInterface::getRate(), and bpp::WrappedTransitionModelInterface::transitionModel().
Referenced by bpp::AbstractBiblioTransitionModel::addRateParameter(), and bpp::FromMixtureSubstitutionModel::addRateParameter().
|
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 42 of file AbstractWrappedModel.h.
References bpp::BranchModelInterface::getStateMap(), and bpp::WrappedModelInterface::model().
Referenced by bpp::RegisterRatesSubstitutionModel::getStateMap().
|
overridevirtualinherited |
Returns the vector of numbers of the submodels in the mixture that match a description.
Implements bpp::MixedTransitionModelInterface.
Definition at line 32 of file AbstractBiblioMixedTransitionModel.cpp.
References bpp::ParameterAliasable::getParameterNameWithoutNamespace(), bpp::MixedTransitionModelInterface::getSubmodelNumbers(), bpp::StringTokenizer::hasMoreToken(), bpp::AbstractBiblioMixedTransitionModel::mixedModel(), and bpp::StringTokenizer::nextToken().
|
inlineoverridevirtualinherited |
Returns the vector of all the rates of the mixture.
Implements bpp::MixedTransitionModelInterface.
Definition at line 104 of file AbstractBiblioMixedTransitionModel.h.
References bpp::MixedTransitionModelInterface::getVRates(), and bpp::AbstractBiblioMixedTransitionModel::mixedModel().
|
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 |
Definition at line 136 of file AbstractBiblioMixedTransitionModel.h.
References bpp::AbstractBiblioMixedTransitionModel::mixedModelPtr_.
Referenced by bpp::DFP07::DFP07(), bpp::AbstractBiblioMixedTransitionModel::getNModel(), bpp::AbstractBiblioMixedTransitionModel::getNProbability(), bpp::AbstractBiblioMixedTransitionModel::getNRate(), bpp::AbstractBiblioMixedTransitionModel::getNumberOfModels(), bpp::AbstractBiblioMixedTransitionModel::getProbabilities(), bpp::AbstractBiblioMixedTransitionModel::getSubmodelNumbers(), bpp::AbstractBiblioMixedTransitionModel::getVRates(), bpp::AbstractBiblioMixedTransitionModel::model(), bpp::AbstractBiblioMixedTransitionModel::nModel(), bpp::YNGP_M::operator=(), bpp::RELAX::RELAX(), bpp::YNGP_M::YNGP_M(), 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().
|
inlineprotectedinherited |
Definition at line 149 of file AbstractBiblioMixedTransitionModel.h.
References bpp::AbstractBiblioMixedTransitionModel::mixedModelPtr_.
Referenced by bpp::AbstractBiblioMixedTransitionModel::nModel_(), bpp::AbstractBiblioMixedTransitionModel::normalizeVRates(), bpp::AbstractBiblioMixedTransitionModel::setNProbability(), and bpp::AbstractBiblioMixedTransitionModel::setVRates().
|
inlineoverridevirtualinherited |
Implements bpp::WrappedModelInterface.
Definition at line 98 of file AbstractWrappedModel.h.
References bpp::WrappedTransitionModelInterface::transitionModel().
Referenced by bpp::AbstractBiblioTransitionModel::addRateParameter(), bpp::FromMixtureSubstitutionModel::addRateParameter(), bpp::InMixedSubstitutionModel::getInitValue(), bpp::FromMixtureSubstitutionModel::getName(), bpp::RegisterRatesSubstitutionModel::getRate(), bpp::AbstractBiblioSubstitutionModel::operator=(), bpp::AbstractBiblioTransitionModel::operator=(), bpp::RegisterRatesSubstitutionModel::RegisterRatesSubstitutionModel(), bpp::AbstractBiblioTransitionModel::setFreq(), bpp::AbstractBiblioTransitionModel::setNamespace(), and bpp::BppOSubstitutionModelFormat::write().
|
inlineoverridevirtualinherited |
Access the submodel with the given name.
NullPointerException | if no model with the given name is found. |
Implements bpp::MixedTransitionModelInterface.
Definition at line 123 of file AbstractBiblioMixedTransitionModel.h.
References bpp::AbstractBiblioMixedTransitionModel::mixedModel(), and bpp::MixedTransitionModelInterface::model().
|
inlineprotectedinherited |
Definition at line 85 of file AbstractWrappedModel.h.
References bpp::AbstractWrappedTransitionModel::transitionModel_().
Referenced by bpp::AbstractBiblioTransitionModel::addRateParameter(), bpp::FromMixtureSubstitutionModel::addRateParameter(), bpp::AbstractBiblioTransitionModel::fireParameterChanged(), bpp::FromMixtureSubstitutionModel::fireParameterChanged(), bpp::RegisterRatesSubstitutionModel::RegisterRatesSubstitutionModel(), bpp::AbstractBiblioTransitionModel::setNamespace(), bpp::FromMixtureSubstitutionModel::setNamespace(), bpp::RegisterRatesSubstitutionModel::setRate(), and bpp::AbstractBiblioTransitionModel::updateMatrices_().
|
inlineoverridevirtualinherited |
Returns the submodel from the mixture.
Implements bpp::MixedTransitionModelInterface.
Definition at line 38 of file AbstractBiblioMixedTransitionModel.h.
References bpp::AbstractBiblioMixedTransitionModel::mixedModel(), and bpp::MixedTransitionModelInterface::nModel().
Referenced by bpp::DFP07::proteinModel().
|
inlineoverrideprotectedvirtualinherited |
Implements bpp::MixedTransitionModelInterface.
Definition at line 151 of file AbstractBiblioMixedTransitionModel.h.
References bpp::AbstractBiblioMixedTransitionModel::mixedModel_(), and bpp::MixedTransitionModelInterface::nModel_().
|
inlineoverridevirtualinherited |
normalizes the rates of the submodels.
Implements bpp::MixedTransitionModelInterface.
Definition at line 96 of file AbstractBiblioMixedTransitionModel.h.
References bpp::AbstractBiblioMixedTransitionModel::mixedModel_(), and bpp::MixedTransitionModelInterface::normalizeVRates().
|
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.
Definition at line 122 of file AbstractWrappedModel.h.
References bpp::TransitionModelInterface::Pij_t(), and bpp::WrappedTransitionModelInterface::transitionModel().
|
overridevirtualinherited |
Set equilibrium frequencies.
frequencies | The map of the frequencies to use. |
Implements bpp::TransitionModelInterface.
Reimplemented in bpp::YN98, bpp::MG94, and bpp::KCM.
Definition at line 111 of file AbstractBiblioSubstitutionModel.cpp.
References bpp::ParameterList::addParameter(), bpp::AbstractParameterAliasable::getNamespace(), bpp::AbstractParameterAliasable::getParameterNameWithoutNamespace(), bpp::AbstractParameterAliasable::getParameterValue(), bpp::AbstractBiblioTransitionModel::mapParNamesFromPmodel_, bpp::AbstractParameterAliasable::matchParametersValues(), bpp::AbstractWrappedTransitionModel::model(), and bpp::AbstractTotallyWrappedTransitionModel::setFreq().
Referenced by bpp::KCM::setFreq(), bpp::MG94::setFreq(), bpp::YN98::setFreq(), and bpp::AbstractBiblioTransitionModel::setFreqFromData().
|
pure virtualinherited |
Set equilibrium frequencies.
frequencies | The map of the frequencies to use. |
Implemented in bpp::OneChangeTransitionModel, bpp::OneChangeRegisterTransitionModel, bpp::RE08Codon, bpp::RE08, bpp::POMO, bpp::MarkovModulatedSubstitutionModel, bpp::InMixedSubstitutionModel, bpp::YN98, bpp::SENCA, bpp::MG94, bpp::KroneckerCodonDistanceFrequenciesSubstitutionModel, bpp::KCM, bpp::DFPDistanceFrequenciesSubstitutionModel, bpp::CodonSameAARateSubstitutionModel, bpp::CodonDistancePhaseFrequenciesSubstitutionModel, bpp::CodonDistanceFrequenciesSubstitutionModel, bpp::CodonAdHocSubstitutionModel, bpp::AbstractTotallyWrappedTransitionModel, bpp::AbstractMixedTransitionModel, bpp::AbstractBiblioTransitionModel, bpp::TN93, bpp::T92, bpp::GTR, bpp::F81, bpp::AbstractTransitionModel, bpp::HKY85, bpp::BinarySubstitutionModel, bpp::AbstractWordSubstitutionModel, bpp::EquiprobableSubstitutionModel, bpp::D1WalkSubstitutionModel, bpp::SSR, bpp::RN95s, bpp::RN95, bpp::L95, bpp::MixtureOfTransitionModels, bpp::MixtureOfATransitionModel, and bpp::F84.
Referenced by bpp::AbstractTotallyWrappedTransitionModel::setFreq(), bpp::InMixedSubstitutionModel::setFreq(), bpp::RE08Codon::setFreq(), bpp::MultinomialFromTransitionModel::setFreq(), bpp::TransitionFromTransitionModel::setFreq(), bpp::OneChangeRegisterTransitionModel::setFreq(), bpp::OneChangeTransitionModel::setFreq(), and bpp::AbstractTotallyWrappedTransitionModel::setFreqFromData().
|
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.
Definition at line 125 of file AbstractBiblioSubstitutionModel.cpp.
References bpp::SequenceContainerTools::getFrequencies(), and bpp::AbstractBiblioTransitionModel::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().
|
overridevirtualinherited |
Reimplemented from bpp::AbstractParameterAliasable.
Definition at line 88 of file AbstractBiblioSubstitutionModel.cpp.
References bpp::ParameterList::addParameters(), bpp::ParameterAliasable::getParameterNameWithoutNamespace(), bpp::AbstractParameterAliasable::getParameters(), bpp::AbstractBiblioTransitionModel::lParPmodel_, bpp::AbstractBiblioTransitionModel::mapParNamesFromPmodel_, bpp::AbstractWrappedTransitionModel::model(), bpp::AbstractWrappedTransitionModel::model_(), bpp::ParameterList::reset(), bpp::AbstractParameterAliasable::setNamespace(), and bpp::ParameterAliasable::setNamespace().
|
inlineoverridevirtualinherited |
Sets the probabilities of the submodels of the mixture.
Implements bpp::MixedTransitionModelInterface.
Definition at line 70 of file AbstractBiblioMixedTransitionModel.h.
References bpp::AbstractBiblioMixedTransitionModel::mixedModel_(), and bpp::MixedTransitionModelInterface::setNProbability().
|
inlineoverridevirtualinherited |
Set the rate of the model (must be positive).
rate | must be positive. |
Implements bpp::BranchModelInterface.
Definition at line 144 of file AbstractWrappedModel.h.
References bpp::BranchModelInterface::setRate(), and bpp::AbstractWrappedTransitionModel::transitionModel_().
|
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().
|
inlineoverridevirtualinherited |
sets the rates of the submodels.
Implements bpp::MixedTransitionModelInterface.
Definition at line 87 of file AbstractBiblioMixedTransitionModel.h.
References bpp::AbstractBiblioMixedTransitionModel::mixedModel_(), and bpp::MixedTransitionModelInterface::setVRates().
|
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 40 of file AbstractWrappedModel.h.
References bpp::WrappedModelInterface::model(), and bpp::BranchModelInterface::stateMap().
Referenced by bpp::RegisterRatesSubstitutionModel::stateMap().
|
inlineoverridevirtualinherited |
Implements bpp::WrappedTransitionModelInterface.
Definition at line 134 of file AbstractBiblioMixedTransitionModel.h.
References bpp::AbstractBiblioMixedTransitionModel::mixedModelPtr_.
|
inlineoverrideprotectedvirtualinherited |
Implements bpp::AbstractWrappedTransitionModel.
Definition at line 144 of file AbstractBiblioMixedTransitionModel.h.
References bpp::AbstractBiblioMixedTransitionModel::mixedModelPtr_.
|
overrideprotectedvirtual |
Reimplemented from bpp::AbstractBiblioTransitionModel.
Definition at line 97 of file YNGP_M1.cpp.
References bpp::AbstractBiblioMixedTransitionModel::mixedModelPtr_, bpp::YNGP_M::mixedSubModelPtr_, bpp::SubstitutionModelInterface::Qij(), bpp::MixtureOfASubstitutionModel::subNModel(), bpp::YNGP_M::synfrom_, bpp::YNGP_M::synto_, and bpp::AbstractBiblioTransitionModel::updateMatrices_().
Referenced by YNGP_M1().
|
mutableprivateinherited |
Definition at line 23 of file AbstractSubstitutionModel.h.
Referenced by bpp::AbstractLkTransitionModel::d2Lik_dt2(), bpp::AbstractLkTransitionModel::dLik_dt(), and bpp::AbstractLkTransitionModel::Lik_t().
|
protectedinherited |
Definition at line 30 of file AbstractBiblioSubstitutionModel.h.
Referenced by bpp::AbstractBiblioTransitionModel::addRateParameter(), bpp::DFP07::DFP07(), bpp::GY94::GY94(), bpp::KCM::KCM(), bpp::LG10_EX_EHO::LG10_EX_EHO(), bpp::LGL08_CAT::LGL08_CAT(), bpp::LLG08_EHO::LLG08_EHO(), bpp::LLG08_EX2::LLG08_EX2(), bpp::LLG08_EX3::LLG08_EX3(), bpp::LLG08_UL2::LLG08_UL2(), bpp::LLG08_UL3::LLG08_UL3(), bpp::MG94::MG94(), bpp::AbstractBiblioTransitionModel::operator=(), bpp::RELAX::RELAX(), bpp::AbstractBiblioTransitionModel::setNamespace(), bpp::AbstractBiblioTransitionModel::updateMatrices_(), bpp::RELAX::updateMatrices_(), bpp::YNGP_M3::updateMatrices_(), bpp::YN98::YN98(), 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().
|
protectedinherited |
Tools to make the link between the Parameters of the object and those of pmixmodel_.
Definition at line 28 of file AbstractBiblioSubstitutionModel.h.
Referenced by bpp::AbstractBiblioTransitionModel::addRateParameter(), bpp::DFP07::DFP07(), bpp::AbstractBiblioTransitionModel::getParNameFromPmodel(), bpp::AbstractBiblioTransitionModel::getPmodelParName(), bpp::GY94::GY94(), bpp::KCM::KCM(), bpp::LG10_EX_EHO::LG10_EX_EHO(), bpp::LGL08_CAT::LGL08_CAT(), bpp::LLG08_EHO::LLG08_EHO(), bpp::LLG08_EX2::LLG08_EX2(), bpp::LLG08_EX3::LLG08_EX3(), bpp::LLG08_UL2::LLG08_UL2(), bpp::LLG08_UL3::LLG08_UL3(), bpp::MG94::MG94(), bpp::AbstractBiblioTransitionModel::operator=(), bpp::RELAX::RELAX(), bpp::AbstractBiblioTransitionModel::setFreq(), bpp::AbstractBiblioTransitionModel::setNamespace(), bpp::AbstractBiblioTransitionModel::updateMatrices_(), bpp::RELAX::updateMatrices_(), bpp::YNGP_M3::updateMatrices_(), bpp::YN98::YN98(), 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().
|
protectedinherited |
Definition at line 23 of file AbstractBiblioMixedTransitionModel.h.
Referenced by bpp::DFP07::DFP07(), bpp::AbstractBiblioMixedTransitionModel::frequencySet(), bpp::LGL08_CAT::getNumberOfCategories(), bpp::LG10_EX_EHO::LG10_EX_EHO(), bpp::LGL08_CAT::LGL08_CAT(), bpp::LLG08_EHO::LLG08_EHO(), bpp::LLG08_EX2::LLG08_EX2(), bpp::LLG08_EX3::LLG08_EX3(), bpp::LLG08_UL2::LLG08_UL2(), bpp::LLG08_UL3::LLG08_UL3(), bpp::AbstractBiblioMixedTransitionModel::mixedModel(), bpp::AbstractBiblioMixedTransitionModel::mixedModel_(), bpp::AbstractBiblioMixedTransitionModel::operator=(), bpp::RELAX::RELAX(), bpp::AbstractBiblioMixedTransitionModel::transitionModel(), bpp::AbstractBiblioMixedTransitionModel::transitionModel_(), bpp::DFP07::updateMatrices_(), bpp::RELAX::updateMatrices_(), 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_(), 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().
|
protectedinherited |
redefined mixed model pointer
Definition at line 37 of file YNGP_M.h.
Referenced by bpp::YNGP_M::operator=(), bpp::RELAX::RELAX(), bpp::RELAX::updateMatrices_(), 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_M::YNGP_M(), 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().
|
protectedinherited |
indexes of 2 codons states between which the substitution is synonymous, to set a basis to the homogeneization of the rates.
Definition at line 43 of file YNGP_M.h.
Referenced by bpp::YNGP_M::operator=(), bpp::RELAX::RELAX(), bpp::RELAX::updateMatrices_(), 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_(), 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().
|
protectedinherited |
Definition at line 43 of file YNGP_M.h.
Referenced by bpp::YNGP_M::operator=(), bpp::RELAX::RELAX(), bpp::RELAX::updateMatrices_(), 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_(), 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().