|
bpp-phyl3 3.0.0
|
Interface for Transition models, defined as a mixture of "simple" transition models. More...
#include <Bpp/Phyl/Model/MixedTransitionModel.h>
Inheritance diagram for bpp::MixedTransitionModelInterface:
Collaboration diagram for bpp::MixedTransitionModelInterface:Public Member Functions | |
| MixedTransitionModelInterface () | |
| virtual | ~MixedTransitionModelInterface () |
| virtual MixedTransitionModelInterface * | clone () const override=0 |
| virtual const TransitionModelInterface & | nModel (size_t i) const =0 |
| Returns a specific model from the mixture. More... | |
| virtual std::shared_ptr< const TransitionModelInterface > | getNModel (size_t i) const =0 |
| virtual double | getNProbability (size_t i) const =0 |
| Returns the probability of a specific model from the mixture. More... | |
| virtual const std::vector< double > & | getProbabilities () const =0 |
| virtual void | setNProbability (size_t i, double prob)=0 |
| Sets the probability of a specific model from the mixture. More... | |
| virtual size_t | getNumberOfModels () const =0 |
| virtual const std::vector< double > & | getVRates () const =0 |
| Returns the rates of the submodels. More... | |
| virtual double | getNRate (size_t i) const =0 |
| Returns the rate of a specific submodel. More... | |
| virtual void | setVRates (const Vdouble &vd)=0 |
| Sets the rates of the submodels to be proportional to a given vector, and normalizes them so that the mean rate of the mixture equals rate_. More... | |
| virtual void | normalizeVRates ()=0 |
| Normalizes the rates of the submodels so that the mean rate of the mixture equals rate_. More... | |
| virtual const TransitionModelInterface & | model (const std::string &name) const =0 |
| Access the submodel with the given name. More... | |
| virtual Vuint | getSubmodelNumbers (const std::string &desc) const =0 |
| Returns the vector of numbers of the submodels in the mixture that match a description. More... | |
| 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 |
| Set if equilibrium frequencies should be computed. More... | |
| 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 |
| virtual const Eigen::VectorXd & | dLik_dt (const Eigen::VectorXd &values, double t) const =0 |
| virtual const Eigen::VectorXd & | d2Lik_dt2 (const Eigen::VectorXd &values, double t) const =0 |
| 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 std::string | getName () const =0 |
| Get the name of the model. 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 const FrequencySetInterface & | frequencySet () 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 |
| 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 |
| virtual void | unaliasParameters (const std::string &p1, const std::string &p2)=0 |
| virtual const ParameterList & | getIndependentParameters () const=0 |
| virtual std::vector< std::string > | getAlias (const std::string &name) const=0 |
| virtual std::map< std::string, std::string > | getAliases () const=0 |
| virtual bool | hasParameter (const std::string &name) const=0 |
| virtual const ParameterList & | getParameters () const=0 |
| virtual const Parameter & | parameter (const std::string &name) const=0 |
| virtual double | getParameterValue (const std::string &name) const=0 |
| virtual void | setAllParametersValues (const ParameterList ¶meters)=0 |
| virtual void | setParameterValue (const std::string &name, double value)=0 |
| virtual void | setParametersValues (const ParameterList ¶meters)=0 |
| virtual bool | matchParametersValues (const ParameterList ¶meters)=0 |
| virtual void | removeConstraint (const std::string &name)=0 |
| virtual void | setConstraint (const std::string &name, std::shared_ptr< ConstraintInterface > constraint)=0 |
| virtual size_t | getNumberOfParameters () const=0 |
| virtual void | setNamespace (const std::string &prefix)=0 |
| virtual std::string | getNamespace () const=0 |
| virtual std::string | getParameterNameWithoutNamespace (const std::string &name) const=0 |
Protected Member Functions | |
| virtual TransitionModelInterface & | nModel_ (size_t i)=0 |
| virtual Vdouble & | getFrequencies_ ()=0 |
| virtual ParameterList & | getParameters_ ()=0 |
Friends | |
| class | AbstractBiblioMixedTransitionModel |
| class | InMixedSubstitutionModel |
Interface for Transition models, defined as a mixture of "simple" transition models.
Definition at line 22 of file MixedTransitionModel.h.
|
inline |
Definition at line 26 of file MixedTransitionModel.h.
|
inlinevirtual |
Definition at line 28 of file MixedTransitionModel.h.
|
pure virtualinherited |
Implemented in bpp::AbstractBiblioTransitionModel, bpp::AbstractFromSubstitutionModelTransitionModel, bpp::AbstractTransitionModel, bpp::FromMixtureSubstitutionModel, bpp::G2001, bpp::InMixedSubstitutionModel, bpp::MultinomialFromTransitionModel, bpp::RegisterRatesSubstitutionModel, bpp::TransitionFromTransitionModel, and bpp::TS98.
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::AbstractTransitionModel, bpp::AbstractWrappedModel, bpp::MarkovModulatedSubstitutionModel, and bpp::RegisterRatesSubstitutionModel.
Referenced by bpp::SubstitutionModelSet::addModel(), bpp::AbstractWrappedModel::alphabet(), bpp::NonHomogeneousSubstitutionProcess::createHomogeneousSubstitutionProcess(), bpp::NonHomogeneousSubstitutionProcess::createNonHomogeneousSubstitutionProcess(), and bpp::SENCA::setFreq().
|
overridepure virtual |
Implements bpp::TransitionModelInterface.
Implemented in bpp::LG10_EX_EHO, bpp::DFP07, bpp::RELAX, bpp::YNGP_M1, bpp::YNGP_M10, bpp::YNGP_M2, bpp::YNGP_M3, bpp::YNGP_M7, bpp::YNGP_M8, bpp::YNGP_M9, bpp::MixtureOfASubstitutionModel, bpp::MixtureOfATransitionModel, bpp::MixtureOfSubstitutionModels, bpp::MixtureOfTransitionModels, bpp::LGL08_CAT, bpp::LLG08_EHO, bpp::LLG08_EX2, bpp::LLG08_EX3, bpp::LLG08_UL2, bpp::LLG08_UL3, bpp::AbstractMixedTransitionModel, and bpp::YNGP_M.
|
pure virtualinherited |
Implemented in bpp::AbstractSubstitutionModel, bpp::AbstractFromSubstitutionModelTransitionModel, bpp::AbstractMixedTransitionModel, bpp::AbstractTransitionModel, bpp::AbstractTotallyWrappedTransitionModel, bpp::InMixedSubstitutionModel, and bpp::MarkovModulatedSubstitutionModel.
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().
|
pure virtualinherited |
Set if equilibrium frequencies should be computed.
Implemented in bpp::AbstractSubstitutionModel, bpp::AbstractFromSubstitutionModelTransitionModel, bpp::AbstractMixedTransitionModel, bpp::AbstractTotallyWrappedTransitionModel, bpp::InMixedSubstitutionModel, and bpp::MarkovModulatedSubstitutionModel.
|
pure virtualinherited |
Implements bpp::BranchModelInterface.
Implemented in bpp::AbstractLkTransitionModel.
|
pure virtualinherited |
Implemented in bpp::BinarySubstitutionModel, bpp::F84, bpp::HKY85, bpp::TwoParameterBinarySubstitutionModel, bpp::EquiprobableSubstitutionModel, bpp::F81, bpp::JCnuc, bpp::K80, bpp::T92, bpp::TN93, bpp::JCprot, bpp::RE08, bpp::AbstractTransitionModel, bpp::AbstractTotallyWrappedTransitionModel, bpp::InMixedSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, bpp::OneChangeRegisterTransitionModel, and bpp::OneChangeTransitionModel.
Referenced by bpp::AbstractTotallyWrappedTransitionModel::d2Pij_dt2(), bpp::InMixedSubstitutionModel::d2Pij_dt2(), bpp::OneChangeRegisterTransitionModel::d2Pij_dt2(), and bpp::OneChangeTransitionModel::d2Pij_dt2().
|
pure virtualinherited |
Implements bpp::BranchModelInterface.
Implemented in bpp::AbstractLkTransitionModel.
|
pure virtualinherited |
Implemented in bpp::BinarySubstitutionModel, bpp::F84, bpp::HKY85, bpp::TwoParameterBinarySubstitutionModel, bpp::EquiprobableSubstitutionModel, bpp::F81, bpp::JCnuc, bpp::K80, bpp::T92, bpp::TN93, bpp::JCprot, bpp::RE08, bpp::AbstractTransitionModel, bpp::AbstractTotallyWrappedTransitionModel, bpp::InMixedSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, bpp::OneChangeRegisterTransitionModel, and bpp::OneChangeTransitionModel.
Referenced by bpp::OneChangeRegisterTransitionModel::d2Pij_dt2(), bpp::OneChangeTransitionModel::d2Pij_dt2(), bpp::AbstractTotallyWrappedTransitionModel::dPij_dt(), and bpp::InMixedSubstitutionModel::dPij_dt().
|
pure virtualinherited |
Implemented in bpp::AbstractTransitionModel, bpp::AbstractTotallyWrappedTransitionModel, bpp::InMixedSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, bpp::OneChangeRegisterTransitionModel, and bpp::OneChangeTransitionModel.
Referenced by bpp::AbstractTotallyWrappedTransitionModel::freq(), bpp::InMixedSubstitutionModel::freq(), bpp::OneChangeRegisterTransitionModel::freq(), and bpp::OneChangeTransitionModel::freq().
|
pure virtualinherited |
| Exception | if no FrequenceSet is associated to this model. |
Implemented in bpp::CodonDistancePhaseFrequenciesSubstitutionModel, bpp::AbstractBiblioMixedTransitionModel, bpp::AbstractTransitionModel, bpp::AbstractWrappedModel, bpp::AbstractWrappedTransitionModel, bpp::CodonDistanceFrequenciesSubstitutionModel, bpp::YN98, bpp::D1WalkSubstitutionModel, bpp::EquiprobableSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, bpp::OneChangeRegisterTransitionModel, bpp::OneChangeTransitionModel, bpp::DSO78, bpp::JCprot, bpp::JTT92, bpp::LG08, bpp::UserProteinSubstitutionModel, bpp::WAG01, and bpp::RegisterRatesSubstitutionModel.
Referenced by bpp::RE08Codon::codonFrequencySet(), bpp::AbstractWrappedModel::frequencySet(), bpp::AbstractWrappedTransitionModel::frequencySet(), bpp::OneChangeRegisterTransitionModel::frequencySet(), bpp::OneChangeTransitionModel::frequencySet(), and bpp::BppOSubstitutionModelFormat::write().
|
pure virtualinherited |
Implemented in bpp::AbstractTransitionModel, bpp::AbstractWrappedModel, bpp::MarkovModulatedSubstitutionModel, and bpp::RegisterRatesSubstitutionModel.
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_().
|
pure virtualinherited |
| index | The model state. |
Implemented in bpp::AbstractWrappedModel, bpp::AbstractTransitionModel, bpp::MarkovModulatedSubstitutionModel, and bpp::RegisterRatesSubstitutionModel.
Referenced by bpp::AbstractWrappedModel::getAlphabetStateAsChar(), and bpp::SubstitutionModelSet::getAlphabetStateAsChar().
|
pure virtualinherited |
| index | The model state. |
Implemented in bpp::AbstractWrappedModel, bpp::RegisterRatesSubstitutionModel, bpp::AbstractTransitionModel, and bpp::MarkovModulatedSubstitutionModel.
Referenced by bpp::AbstractWrappedModel::getAlphabetStateAsInt(), bpp::SubstitutionModelSet::getAlphabetStateAsInt(), bpp::DRASRTreeLikelihoodData::initLikelihoods(), bpp::DRASDRTreeLikelihoodData::initLikelihoods(), and bpp::DRASRTreeLikelihoodData::initLikelihoodsWithPatterns().
|
pure virtualinherited |
Implemented in bpp::AbstractTransitionModel, bpp::AbstractWrappedModel, bpp::MarkovModulatedSubstitutionModel, and bpp::RegisterRatesSubstitutionModel.
Referenced by bpp::SubstitutionModelSet::getAlphabetStates(), and bpp::AbstractWrappedModel::getAlphabetStates().
|
pure virtualinherited |
Implemented in bpp::BinarySubstitutionModel, bpp::F84, bpp::HKY85, bpp::TwoParameterBinarySubstitutionModel, bpp::EquiprobableSubstitutionModel, bpp::F81, bpp::JCnuc, bpp::K80, bpp::T92, bpp::TN93, bpp::JCprot, bpp::RE08, bpp::WordSubstitutionModel, bpp::AbstractSubstitutionModel, bpp::AbstractMixedTransitionModel, bpp::AbstractTotallyWrappedTransitionModel, bpp::InMixedSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, bpp::OneChangeRegisterTransitionModel, bpp::OneChangeTransitionModel, and bpp::AbstractTransitionModel.
Referenced by bpp::MultinomialFromTransitionModel::d2Lik_dt2(), bpp::TransitionFromTransitionModel::d2Lik_dt2(), bpp::AbstractLkTransitionModel::d2Lik_dt2(), bpp::AbstractTotallyWrappedTransitionModel::getd2Pij_dt2(), bpp::InMixedSubstitutionModel::getd2Pij_dt2(), bpp::OneChangeRegisterTransitionModel::getd2Pij_dt2(), and bpp::OneChangeTransitionModel::getd2Pij_dt2().
|
pure virtualinherited |
Implemented in bpp::BinarySubstitutionModel, bpp::F84, bpp::HKY85, bpp::TwoParameterBinarySubstitutionModel, bpp::EquiprobableSubstitutionModel, bpp::F81, bpp::JCnuc, bpp::K80, bpp::T92, bpp::TN93, bpp::JCprot, bpp::RE08, bpp::WordSubstitutionModel, bpp::AbstractSubstitutionModel, bpp::AbstractMixedTransitionModel, bpp::AbstractTotallyWrappedTransitionModel, bpp::InMixedSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, bpp::OneChangeRegisterTransitionModel, bpp::OneChangeTransitionModel, and bpp::AbstractTransitionModel.
Referenced by bpp::MultinomialFromTransitionModel::dLik_dt(), bpp::TransitionFromTransitionModel::dLik_dt(), bpp::AbstractLkTransitionModel::dLik_dt(), bpp::OneChangeRegisterTransitionModel::getd2Pij_dt2(), bpp::OneChangeTransitionModel::getd2Pij_dt2(), bpp::AbstractTotallyWrappedTransitionModel::getdPij_dt(), bpp::InMixedSubstitutionModel::getdPij_dt(), bpp::OneChangeRegisterTransitionModel::getdPij_dt(), and bpp::OneChangeTransitionModel::getdPij_dt().
|
pure virtualinherited |
Implemented in bpp::AbstractTransitionModel, bpp::AbstractTotallyWrappedTransitionModel, bpp::InMixedSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, bpp::OneChangeRegisterTransitionModel, and bpp::OneChangeTransitionModel.
Referenced by bpp::EquilibriumFrequenciesFromModel::compute(), bpp::AbstractTotallyWrappedTransitionModel::getFrequencies(), bpp::InMixedSubstitutionModel::getFrequencies(), bpp::OneChangeRegisterTransitionModel::getFrequencies(), and bpp::OneChangeTransitionModel::getFrequencies().
|
protectedpure virtualinherited |
Implemented in bpp::AbstractFromSubstitutionModelTransitionModel, bpp::AbstractTransitionModel, bpp::AbstractTotallyWrappedTransitionModel, bpp::InMixedSubstitutionModel, and bpp::MarkovModulatedSubstitutionModel.
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::AbstractTransitionModel, bpp::AbstractTotallyWrappedTransitionModel, bpp::InMixedSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, bpp::MultinomialFromTransitionModel, bpp::OneChangeRegisterTransitionModel, bpp::OneChangeTransitionModel, bpp::RE08, and bpp::TransitionFromTransitionModel.
Referenced by bpp::AbstractTotallyWrappedTransitionModel::getInitValue(), bpp::InMixedSubstitutionModel::getInitValue(), bpp::MultinomialFromTransitionModel::getInitValue(), bpp::OneChangeRegisterTransitionModel::getInitValue(), bpp::OneChangeTransitionModel::getInitValue(), and bpp::TransitionFromTransitionModel::getInitValue().
|
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::AbstractTransitionModel, bpp::AbstractWrappedModel, bpp::MarkovModulatedSubstitutionModel, and bpp::RegisterRatesSubstitutionModel.
|
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::AbstractTransitionModel, bpp::AbstractWrappedModel, bpp::MarkovModulatedSubstitutionModel, and bpp::RegisterRatesSubstitutionModel.
Referenced by bpp::SubstitutionModelSet::getModelStates(), and bpp::AbstractWrappedModel::getModelStates().
|
pure virtualinherited |
Get the name of the model.
Implemented in bpp::BinarySubstitutionModel, bpp::CodonDistanceSubstitutionModel, bpp::F84, bpp::HKY85, bpp::LG10_EX_EHO::EmbeddedModel, bpp::LG10_EX_EHO, bpp::TwoParameterBinarySubstitutionModel, bpp::AbstractWrappedModel, bpp::AnonymousSubstitutionModel, bpp::CodonAdHocSubstitutionModel, bpp::CodonDistanceFrequenciesSubstitutionModel, bpp::CodonDistancePhaseFrequenciesSubstitutionModel, bpp::CodonSameAARateSubstitutionModel, bpp::DFP07, bpp::DFPDistanceFrequenciesSubstitutionModel, bpp::GY94, bpp::KCM, bpp::KroneckerCodonDistanceFrequenciesSubstitutionModel, bpp::KroneckerCodonDistanceSubstitutionModel, bpp::MG94, bpp::RELAX, bpp::SENCA, bpp::TripletSubstitutionModel, bpp::YN98, bpp::YNGP_M1, bpp::YNGP_M10, bpp::YNGP_M2, bpp::YNGP_M3, bpp::YNGP_M7, bpp::YNGP_M8, bpp::YNGP_M9, bpp::D1WalkSubstitutionModel, bpp::EquiprobableSubstitutionModel, bpp::FromMixtureSubstitutionModel, bpp::G2001, bpp::InMixedSubstitutionModel, bpp::KroneckerWordSubstitutionModel, bpp::MixtureOfATransitionModel, bpp::MixtureOfTransitionModels, bpp::MultinomialFromTransitionModel, bpp::F81, bpp::gBGC, bpp::GTR, bpp::JCnuc, bpp::K80, bpp::L95, bpp::RN95, bpp::RN95s, bpp::SSR, bpp::T92, bpp::TN93, bpp::YpR_Sym, bpp::YpR_Gen, bpp::OneChangeRegisterTransitionModel, bpp::OneChangeTransitionModel, bpp::POMO, bpp::Coala, bpp::DSO78, bpp::JCprot, bpp::JTT92, bpp::LG08, bpp::LGL08_CAT::EmbeddedModel, bpp::LGL08_CAT, bpp::LLG08_EHO::EmbeddedModel, bpp::LLG08_EHO, bpp::LLG08_EX2::EmbeddedModel, bpp::LLG08_EX2, bpp::LLG08_EX3::EmbeddedModel, bpp::LLG08_EX3, bpp::LLG08_UL2::EmbeddedModel, bpp::LLG08_UL2, bpp::LLG08_UL3::EmbeddedModel, bpp::LLG08_UL3, bpp::UserProteinSubstitutionModel, bpp::WAG01, bpp::RE08, bpp::RegisterRatesSubstitutionModel, bpp::TransitionFromTransitionModel, bpp::TS98, and bpp::WordSubstitutionModel.
Referenced by bpp::YpR::checkModel(), bpp::TransitionMatrixFromModel::compute(), bpp::AbstractWrappedModel::getName(), bpp::FromMixtureSubstitutionModel::getName(), bpp::AbstractSubstitutionModel::getPij_t(), bpp::BppOSubstitutionModelFormat::initialize_(), bpp::MixtureOfSubstitutionModels::MixtureOfSubstitutionModels(), bpp::MixtureOfATransitionModel::model(), bpp::SubstitutionProcessCollectionMember::setModelScenario(), bpp::LegacyPhylogeneticsApplicationTools::setSubstitutionModelParametersInitialValuesWithAliases(), bpp::ModelPath::toString(), and bpp::BppOSubstitutionModelFormat::write().
|
pure virtual |
Implemented in bpp::AbstractBiblioMixedTransitionModel, and bpp::AbstractMixedTransitionModel.
Referenced by bpp::AbstractBiblioMixedTransitionModel::getNModel().
|
pure virtual |
Returns the probability of a specific model from the mixture.
Implemented in bpp::AbstractBiblioMixedTransitionModel, and bpp::AbstractMixedTransitionModel.
Referenced by bpp::MixedSubstitutionModelSet::computeHyperNodesProbabilities(), bpp::MixedSubstitutionModelSet::getHyperNodeProbability(), and bpp::AbstractBiblioMixedTransitionModel::getNProbability().
|
pure virtual |
Returns the rate of a specific submodel.
Implemented in bpp::AbstractBiblioMixedTransitionModel, and bpp::AbstractMixedTransitionModel.
Referenced by bpp::AbstractBiblioMixedTransitionModel::getNRate().
|
pure virtual |
|
pure virtualinherited |
Get the number of states.
For most models, this equals the size of the alphabet.
Implemented in bpp::BinarySubstitutionModel, bpp::TwoParameterBinarySubstitutionModel, bpp::AbstractTransitionModel, bpp::AbstractWrappedModel, bpp::DFPDistanceFrequenciesSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, bpp::gBGC, bpp::YpR, bpp::RE08Nucleotide, bpp::RE08Protein, bpp::RE08Codon, bpp::RegisterRatesSubstitutionModel, and bpp::AbstractDFPSubstitutionModel.
Referenced by bpp::NonHomogeneousSubstitutionProcess::addModel(), bpp::SubstitutionModelSet::addModel(), bpp::AbstractWrappedModel::getNumberOfStates(), bpp::DRASDRTreeLikelihoodData::initLikelihoods(), bpp::DRASRTreeLikelihoodData::initLikelihoods(), and bpp::NonHomogeneousSubstitutionProcess::setModel().
|
pure virtualinherited |
Implemented in bpp::BinarySubstitutionModel, bpp::F84, bpp::HKY85, bpp::TwoParameterBinarySubstitutionModel, bpp::EquiprobableSubstitutionModel, bpp::F81, bpp::JCnuc, bpp::K80, bpp::T92, bpp::TN93, bpp::JCprot, bpp::RE08, bpp::WordSubstitutionModel, bpp::AbstractSubstitutionModel, bpp::AbstractMixedTransitionModel, bpp::AbstractTotallyWrappedTransitionModel, bpp::InMixedSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, bpp::OneChangeRegisterTransitionModel, bpp::OneChangeTransitionModel, and bpp::AbstractTransitionModel.
Referenced by bpp::MultinomialFromTransitionModel::d2Lik_dt2(), bpp::MultinomialFromTransitionModel::dLik_dt(), bpp::OneChangeRegisterTransitionModel::getd2Pij_dt2(), bpp::OneChangeTransitionModel::getd2Pij_dt2(), bpp::OneChangeRegisterTransitionModel::getdPij_dt(), bpp::OneChangeTransitionModel::getdPij_dt(), bpp::AbstractTotallyWrappedTransitionModel::getPij_t(), bpp::InMixedSubstitutionModel::getPij_t(), bpp::OneChangeRegisterTransitionModel::getPij_t(), bpp::OneChangeTransitionModel::getPij_t(), bpp::MultinomialFromTransitionModel::Lik_t(), bpp::TransitionFromTransitionModel::Lik_t(), and bpp::AbstractLkTransitionModel::Lik_t().
|
pure virtual |
Implemented in bpp::AbstractBiblioMixedTransitionModel, and bpp::AbstractMixedTransitionModel.
Referenced by bpp::ProbabilitiesFromMixedModel::compute(), and bpp::AbstractBiblioMixedTransitionModel::getProbabilities().
|
pure virtualinherited |
Get the rate.
Implemented in bpp::AbstractTransitionModel, bpp::AbstractTotallyWrappedTransitionModel, bpp::G2001, bpp::InMixedSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, bpp::MultinomialFromTransitionModel, bpp::OneChangeRegisterTransitionModel, bpp::OneChangeTransitionModel, bpp::RegisterRatesSubstitutionModel, bpp::TransitionFromTransitionModel, and bpp::TS98.
Referenced by bpp::AbstractFromSubstitutionModelTransitionModel::addRateParameter(), bpp::OneChangeRegisterTransitionModel::d2Pij_dt2(), bpp::OneChangeTransitionModel::d2Pij_dt2(), bpp::OneChangeRegisterTransitionModel::dPij_dt(), bpp::OneChangeTransitionModel::dPij_dt(), bpp::OneChangeRegisterTransitionModel::getd2Pij_dt2(), bpp::OneChangeTransitionModel::getd2Pij_dt2(), bpp::OneChangeRegisterTransitionModel::getdPij_dt(), bpp::OneChangeTransitionModel::getdPij_dt(), bpp::OneChangeRegisterTransitionModel::getPij_t(), bpp::OneChangeTransitionModel::getPij_t(), bpp::AbstractTotallyWrappedTransitionModel::getRate(), bpp::InMixedSubstitutionModel::getRate(), bpp::MultinomialFromTransitionModel::getRate(), bpp::OneChangeRegisterTransitionModel::getRate(), bpp::OneChangeTransitionModel::getRate(), bpp::RegisterRatesSubstitutionModel::getRate(), bpp::TransitionFromTransitionModel::getRate(), and bpp::OneChangeTransitionModel::Pij_t().
|
pure virtualinherited |
Implemented in bpp::AbstractTransitionModel, bpp::AbstractWrappedModel, bpp::MarkovModulatedSubstitutionModel, and bpp::RegisterRatesSubstitutionModel.
Referenced by bpp::SubstitutionModelSet::getStateMap(), bpp::SubstitutionProcessCollectionMember::getStateMap(), and bpp::AbstractWrappedModel::getStateMap().
|
pure virtual |
Returns the vector of numbers of the submodels in the mixture that match a description.
Implemented in bpp::AbstractBiblioMixedTransitionModel, bpp::MixtureOfATransitionModel, and bpp::MixtureOfTransitionModels.
Referenced by bpp::AbstractBiblioMixedTransitionModel::getSubmodelNumbers().
|
pure virtual |
Returns the rates of the submodels.
Implemented in bpp::AbstractBiblioMixedTransitionModel, and bpp::AbstractMixedTransitionModel.
Referenced by bpp::AbstractBiblioMixedTransitionModel::getVRates().
|
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.
|
pure virtual |
Access the submodel with the given name.
| NullPointerException | if no model with the given name is found. |
Implemented in bpp::AbstractBiblioMixedTransitionModel, bpp::MixtureOfATransitionModel, and bpp::MixtureOfTransitionModels.
Referenced by bpp::FromMixtureSubstitutionModel::FromMixtureSubstitutionModel(), bpp::AbstractBiblioMixedTransitionModel::model(), and bpp::AbstractMixedTransitionModel::operator=().
|
pure virtual |
Returns a specific model from the mixture.
Implemented in bpp::AbstractBiblioMixedTransitionModel, and bpp::AbstractMixedTransitionModel.
Referenced by bpp::FromMixtureSubstitutionModel::FromMixtureSubstitutionModel(), and bpp::AbstractBiblioMixedTransitionModel::nModel().
|
protectedpure virtual |
Implemented in bpp::AbstractBiblioMixedTransitionModel, and bpp::AbstractMixedTransitionModel.
Referenced by bpp::AbstractBiblioMixedTransitionModel::nModel_(), and bpp::InMixedSubstitutionModel::substitutionModel_().
|
pure virtual |
Normalizes the rates of the submodels so that the mean rate of the mixture equals rate_.
Implemented in bpp::AbstractBiblioMixedTransitionModel, and bpp::AbstractMixedTransitionModel.
Referenced by bpp::MixedSubstitutionModelSet::computeHyperNodesProbabilities(), and bpp::AbstractBiblioMixedTransitionModel::normalizeVRates().
|
pure virtualinherited |
Implemented in bpp::BinarySubstitutionModel, bpp::F84, bpp::HKY85, bpp::TwoParameterBinarySubstitutionModel, bpp::EquiprobableSubstitutionModel, bpp::F81, bpp::JCnuc, bpp::K80, bpp::T92, bpp::TN93, bpp::JCprot, bpp::RE08, bpp::AbstractTransitionModel, bpp::AbstractTotallyWrappedTransitionModel, bpp::InMixedSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, bpp::OneChangeRegisterTransitionModel, and bpp::OneChangeTransitionModel.
Referenced by bpp::OneChangeRegisterTransitionModel::d2Pij_dt2(), bpp::OneChangeTransitionModel::d2Pij_dt2(), bpp::AbstractTotallyWrappedTransitionModel::Pij_t(), bpp::InMixedSubstitutionModel::Pij_t(), and bpp::OneChangeRegisterTransitionModel::Pij_t().
|
pure virtualinherited |
Set equilibrium frequencies.
| frequencies | The map of the frequencies to use. |
Implemented in bpp::F84, bpp::MixtureOfATransitionModel, bpp::MixtureOfTransitionModels, bpp::L95, bpp::RN95, bpp::RN95s, bpp::SSR, bpp::D1WalkSubstitutionModel, bpp::EquiprobableSubstitutionModel, bpp::AbstractWordSubstitutionModel, bpp::BinarySubstitutionModel, bpp::HKY85, bpp::AbstractTransitionModel, bpp::F81, bpp::GTR, bpp::T92, bpp::TN93, bpp::AbstractBiblioTransitionModel, bpp::AbstractMixedTransitionModel, bpp::AbstractTotallyWrappedTransitionModel, bpp::CodonAdHocSubstitutionModel, bpp::CodonDistanceFrequenciesSubstitutionModel, bpp::CodonDistancePhaseFrequenciesSubstitutionModel, bpp::CodonSameAARateSubstitutionModel, bpp::DFPDistanceFrequenciesSubstitutionModel, bpp::KCM, bpp::KroneckerCodonDistanceFrequenciesSubstitutionModel, bpp::MG94, bpp::SENCA, bpp::YN98, bpp::InMixedSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, bpp::POMO, bpp::RE08, bpp::RE08Codon, bpp::OneChangeRegisterTransitionModel, and bpp::OneChangeTransitionModel.
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().
|
pure virtualinherited |
Set equilibrium frequencies equal to the frequencies estimated from the data.
| data | The sequences to use. |
| pseudoCount | A quantity
|
Implemented in bpp::AbstractMixedTransitionModel, bpp::OneChangeRegisterTransitionModel, bpp::OneChangeTransitionModel, bpp::AbstractBiblioTransitionModel, bpp::AbstractTransitionModel, bpp::AbstractTotallyWrappedTransitionModel, bpp::InMixedSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, bpp::JCnuc, bpp::K80, bpp::Coala, bpp::DSO78, bpp::JCprot, bpp::JTT92, bpp::LG08, bpp::UserProteinSubstitutionModel, bpp::WAG01, and bpp::RE08.
Referenced by bpp::TransitionFromTransitionModel::setFreqFromData(), bpp::OneChangeRegisterTransitionModel::setFreqFromData(), bpp::OneChangeTransitionModel::setFreqFromData(), bpp::MultinomialFromTransitionModel::setFreqFromData(), and bpp::InMixedSubstitutionModel::setFreqFromData().
|
pure virtual |
Sets the probability of a specific model from the mixture.
Implemented in bpp::AbstractBiblioMixedTransitionModel, and bpp::AbstractMixedTransitionModel.
Referenced by bpp::MixedSubstitutionModelSet::computeHyperNodesProbabilities(), and bpp::AbstractBiblioMixedTransitionModel::setNProbability().
|
pure virtualinherited |
Set the rate of the model (must be positive).
| rate | must be positive. |
Implemented in bpp::AbstractMixedTransitionModel, bpp::AbstractTransitionModel, bpp::AbstractTotallyWrappedTransitionModel, bpp::G2001, bpp::InMixedSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, bpp::MultinomialFromTransitionModel, bpp::OneChangeRegisterTransitionModel, bpp::OneChangeTransitionModel, bpp::RegisterRatesSubstitutionModel, bpp::TransitionFromTransitionModel, and bpp::TS98.
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().
|
pure virtual |
Sets the rates of the submodels to be proportional to a given vector, and normalizes them so that the mean rate of the mixture equals rate_.
| vd | a vector of positive values such that the rates of the respective submodels are in the same proportions (ie this vector does not need to be normalized). |
Implemented in bpp::AbstractBiblioMixedTransitionModel, bpp::AbstractMixedTransitionModel, and bpp::MixtureOfTransitionModels.
Referenced by bpp::AbstractBiblioMixedTransitionModel::setVRates().
|
pure virtualinherited |
Implemented in bpp::AbstractTransitionModel, bpp::AbstractWrappedModel, bpp::MarkovModulatedSubstitutionModel, and bpp::RegisterRatesSubstitutionModel.
Referenced by bpp::SubstitutionModelSet::stateMap(), bpp::SubstitutionProcessCollectionMember::stateMap(), and bpp::AbstractWrappedModel::stateMap().
|
friend |
Definition at line 96 of file MixedTransitionModel.h.
|
friend |
Definition at line 97 of file MixedTransitionModel.h.