|
bpp-phyl3 3.0.0
|
#include <Bpp/Phyl/Model/AbstractWrappedModel.h>
Inheritance diagram for bpp::AbstractTotallyWrappedSubstitutionModel:
Collaboration diagram for bpp::AbstractTotallyWrappedSubstitutionModel:Public Member Functions | |
| AbstractTotallyWrappedSubstitutionModel (const std::string &prefix) | |
| virtual | ~AbstractTotallyWrappedSubstitutionModel () |
| bool | isScalable () const |
| returns if model is scalable 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... | |
| void | normalize () |
| Normalize the generator. More... | |
| void | setDiagonal () |
| set the diagonal of the generator such that sum on each line equals 0. More... | |
| double | getScale () const |
| Get the scalar product of diagonal elements of the generator and the frequencies vector. If the generator is normalized, then scale=1. Otherwise each element must be multiplied by 1/scale. More... | |
| void | setScale (double scale) |
| Multiplies the current generator by the given scale. More... | |
| const FrequencySetInterface & | frequencySet () const override |
| const BranchModelInterface & | model () const override |
| virtual std::string | getName () const override |
| Get the name of the model. More... | |
| void | setNamespace (const std::string &prefix) |
| bool | hasIndependentParameter (const std::string &name) const |
| const ParameterList & | getIndependentParameters () const |
| size_t | getNumberOfIndependentParameters () const |
| void | aliasParameters (const std::string &p1, const std::string &p2) |
| void | aliasParameters (std::map< std::string, std::string > &unparsedParams, bool verbose) |
| void | unaliasParameters (const std::string &p1, const std::string &p2) |
| ParameterList | getAliasedParameters (const ParameterList &pl) const |
| ParameterList | getFromParameters (const ParameterList &pl) const |
| virtual std::vector< std::string > | getAlias (const std::string &name) const |
| virtual std::map< std::string, std::string > | getAliases () const |
| std::string | getFrom (const std::string &name) const |
| bool | hasParameter (const std::string &name) const override |
| const ParameterList & | getParameters () const override |
| const Parameter & | parameter (const std::string &name) const override |
| const std::shared_ptr< Parameter > & | getParameter (const std::string &name) const |
| double | getParameterValue (const std::string &name) const override |
| void | setAllParametersValues (const ParameterList ¶meters) override |
| void | setParameterValue (const std::string &name, double value) override |
| void | setParametersValues (const ParameterList ¶meters) override |
| bool | matchParametersValues (const ParameterList ¶meters) override |
| void | removeConstraint (const std::string &name) override |
| void | setConstraint (const std::string &name, std::shared_ptr< ConstraintInterface > constraint) override |
| size_t | getNumberOfParameters () const override |
| std::string | getNamespace () const override |
| std::string | getParameterNameWithoutNamespace (const std::string &name) const override |
| virtual void | fireParameterChanged (const ParameterList ¶meters) |
| virtual Clonable * | clone () const=0 |
| BranchModelInterface * | clone () const =0 |
| TransitionModelInterface * | clone () 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 | addRateParameter ()=0 |
| virtual const TransitionModelInterface & | transitionModel () const =0 |
| const TransitionModelInterface & | transitionModel () const |
| SubstitutionModelInterface * | clone () const override=0 |
| virtual const SubstitutionModelInterface & | substitutionModel () const =0 |
| double | Qij (size_t i, size_t j) const |
| Methods to supersede SubstitutionModel methods. More... | |
| const Matrix< double > & | generator () const |
| const Matrix< double > & | exchangeabilityMatrix () const |
| double | Sij (size_t i, size_t j) const |
| void | enableEigenDecomposition (bool yn) |
| Set if eigenValues and Vectors must be computed. More... | |
| bool | enableEigenDecomposition () |
| Tell if eigenValues and Vectors must be computed. More... | |
| bool | isDiagonalizable () const |
| bool | isNonSingular () const |
| const Vdouble & | getEigenValues () const |
| const Vdouble & | getIEigenValues () const |
| const Matrix< double > & | getRowLeftEigenVectors () const |
| const Matrix< double > & | getColumnRightEigenVectors () 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 |
| 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 > &frequencies) override |
| Set equilibrium frequencies. More... | |
| bool | computeFrequencies () const override |
| void | computeFrequencies (bool yn) override |
| Set if equilibrium frequencies should be computed from the generator. More... | |
| const std::vector< int > & | getAlphabetStates () const override |
| const StateMapInterface & | stateMap () const override |
| std::shared_ptr< const StateMapInterface > | getStateMap () const override |
| int | getAlphabetStateAsInt (size_t i) const override |
| std::string | getAlphabetStateAsChar (size_t i) 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... | |
| const Alphabet & | alphabet () const override |
| std::shared_ptr< const Alphabet > | getAlphabet () const override |
| size_t | getNumberOfStates () const override |
| Get the number of states. More... | |
Private Attributes | |
| ParameterList | independentParameters_ |
| std::map< std::string, std::shared_ptr< AliasParameterListener > > | aliasListenersRegister_ |
| ParameterList | parameters_ |
| std::string | prefix_ |
| Eigen::VectorXd | lik_ |
Definition at line 212 of file AbstractWrappedModel.h.
|
inline |
Definition at line 217 of file AbstractWrappedModel.h.
|
inlinevirtual |
Definition at line 222 of file AbstractWrappedModel.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_().
|
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().
|
pure virtualinherited |
Implements bpp::ParameterAliasable.
Implemented in bpp::BinarySubstitutionModel, bpp::CodonDistanceSubstitutionModel, bpp::F84, bpp::HKY85, bpp::LG10_EX_EHO::EmbeddedModel, bpp::LG10_EX_EHO, bpp::TwoParameterBinarySubstitutionModel, bpp::TransitionModelInterface, 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::MixtureOfASubstitutionModel, bpp::MixtureOfATransitionModel, bpp::MixtureOfSubstitutionModels, 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::RE08Nucleotide, bpp::RE08Protein, bpp::RE08Codon, bpp::RegisterRatesSubstitutionModel, bpp::TransitionFromTransitionModel, bpp::TS98, bpp::WordSubstitutionModel, bpp::AbstractMixedTransitionModel, bpp::AbstractReversibleSubstitutionModel, bpp::AbstractCodonSubstitutionModel, bpp::AbstractDFPSubstitutionModel, bpp::AbstractKroneckerCodonSubstitutionModel, bpp::CodonSubstitutionModelInterface, bpp::CodonReversibleSubstitutionModelInterface, bpp::YNGP_M, bpp::MarkovModulatedSubstitutionModel, bpp::MixedTransitionModelInterface, bpp::NucleotideSubstitutionModelInterface, bpp::NucleotideReversibleSubstitutionModelInterface, bpp::AbstractNucleotideSubstitutionModel, bpp::AbstractReversibleNucleotideSubstitutionModel, bpp::ProteinSubstitutionModelInterface, bpp::ProteinReversibleSubstitutionModelInterface, bpp::AbstractProteinSubstitutionModel, bpp::AbstractReversibleProteinSubstitutionModel, bpp::SubstitutionModelInterface, and bpp::ReversibleSubstitutionModelInterface.
Referenced by bpp::SubstitutionProcessCollection::addOnePerBranchSubstitutionProcess(), and bpp::NonHomogeneousSubstitutionProcess::createNonHomogeneousSubstitutionProcess().
|
pure virtualinherited |
Implements bpp::BranchModelInterface.
Implemented in bpp::BinarySubstitutionModel, bpp::CodonDistanceSubstitutionModel, bpp::F84, bpp::HKY85, bpp::LG10_EX_EHO::EmbeddedModel, bpp::LG10_EX_EHO, bpp::TwoParameterBinarySubstitutionModel, 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::MixtureOfASubstitutionModel, bpp::MixtureOfATransitionModel, bpp::MixtureOfSubstitutionModels, bpp::MixtureOfTransitionModels, 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::RE08Nucleotide, bpp::RE08Protein, bpp::RE08Codon, bpp::RegisterRatesSubstitutionModel, bpp::TS98, bpp::WordSubstitutionModel, bpp::AbstractMixedTransitionModel, bpp::AbstractReversibleSubstitutionModel, bpp::AbstractCodonSubstitutionModel, bpp::AbstractDFPSubstitutionModel, bpp::AbstractKroneckerCodonSubstitutionModel, bpp::CodonSubstitutionModelInterface, bpp::CodonReversibleSubstitutionModelInterface, bpp::YNGP_M, bpp::MarkovModulatedSubstitutionModel, bpp::MixedTransitionModelInterface, bpp::NucleotideSubstitutionModelInterface, bpp::NucleotideReversibleSubstitutionModelInterface, bpp::AbstractNucleotideSubstitutionModel, bpp::AbstractReversibleNucleotideSubstitutionModel, bpp::ProteinSubstitutionModelInterface, bpp::ProteinReversibleSubstitutionModelInterface, bpp::AbstractProteinSubstitutionModel, bpp::AbstractReversibleProteinSubstitutionModel, bpp::SubstitutionModelInterface, and bpp::ReversibleSubstitutionModelInterface.
Referenced by bpp::AbstractSinglePhyloSubstitutionMapping::addModel(), bpp::MixtureOfATransitionModel::MixtureOfATransitionModel(), and bpp::AbstractMixedTransitionModel::operator=().
|
overridepure virtualinherited |
Implements bpp::TransitionModelInterface.
Implemented in bpp::BinarySubstitutionModel, bpp::CodonDistanceSubstitutionModel, bpp::F84, bpp::HKY85, bpp::LG10_EX_EHO::EmbeddedModel, bpp::TwoParameterBinarySubstitutionModel, bpp::AnonymousSubstitutionModel, bpp::CodonAdHocSubstitutionModel, bpp::CodonDistanceFrequenciesSubstitutionModel, bpp::CodonDistancePhaseFrequenciesSubstitutionModel, bpp::CodonSameAARateSubstitutionModel, bpp::DFPDistanceFrequenciesSubstitutionModel, bpp::GY94, bpp::KCM, bpp::KroneckerCodonDistanceFrequenciesSubstitutionModel, bpp::KroneckerCodonDistanceSubstitutionModel, bpp::MG94, bpp::SENCA, bpp::TripletSubstitutionModel, bpp::YN98, bpp::D1WalkSubstitutionModel, bpp::EquiprobableSubstitutionModel, bpp::FromMixtureSubstitutionModel, bpp::G2001, bpp::InMixedSubstitutionModel, bpp::KroneckerWordSubstitutionModel, 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::POMO, bpp::Coala, bpp::DSO78, bpp::JCprot, bpp::JTT92, bpp::LG08, bpp::LGL08_CAT::EmbeddedModel, bpp::LLG08_EHO::EmbeddedModel, bpp::LLG08_EX2::EmbeddedModel, bpp::LLG08_EX3::EmbeddedModel, bpp::LLG08_UL2::EmbeddedModel, bpp::LLG08_UL3::EmbeddedModel, bpp::UserProteinSubstitutionModel, bpp::WAG01, bpp::RE08, bpp::RE08Nucleotide, bpp::RE08Protein, bpp::RE08Codon, bpp::RegisterRatesSubstitutionModel, bpp::TS98, bpp::WordSubstitutionModel, bpp::AbstractReversibleSubstitutionModel, bpp::AbstractCodonSubstitutionModel, bpp::AbstractDFPSubstitutionModel, bpp::AbstractKroneckerCodonSubstitutionModel, bpp::CodonSubstitutionModelInterface, bpp::CodonReversibleSubstitutionModelInterface, bpp::MarkovModulatedSubstitutionModel, bpp::NucleotideSubstitutionModelInterface, bpp::NucleotideReversibleSubstitutionModelInterface, bpp::AbstractNucleotideSubstitutionModel, bpp::AbstractReversibleNucleotideSubstitutionModel, bpp::ProteinSubstitutionModelInterface, bpp::ProteinReversibleSubstitutionModelInterface, bpp::AbstractProteinSubstitutionModel, bpp::AbstractReversibleProteinSubstitutionModel, and bpp::ReversibleSubstitutionModelInterface.
|
inlineoverridevirtualinherited |
Implements bpp::TransitionModelInterface.
Definition at line 161 of file AbstractWrappedModel.h.
References bpp::TransitionModelInterface::computeFrequencies(), and bpp::WrappedTransitionModelInterface::transitionModel().
Referenced by bpp::DFP07::DFP07(), and bpp::YN98::YN98().
|
inlineoverridevirtualinherited |
Set if equilibrium frequencies should be computed from the generator.
Implements bpp::TransitionModelInterface.
Definition at line 170 of file AbstractWrappedModel.h.
References bpp::TransitionModelInterface::computeFrequencies(), and bpp::AbstractWrappedTransitionModel::transitionModel_().
|
pure virtualinherited |
|
inlineoverridevirtualinherited |
Implements bpp::TransitionModelInterface.
Definition at line 64 of file AbstractSubstitutionModel.h.
References bpp::TransitionModelInterface::getd2Pij_dt2(), and bpp::AbstractLkTransitionModel::lik_.
|
inlineoverridevirtualinherited |
Implements bpp::TransitionModelInterface.
Definition at line 123 of file AbstractWrappedModel.h.
References bpp::TransitionModelInterface::d2Pij_dt2(), and bpp::WrappedTransitionModelInterface::transitionModel().
|
pure virtualinherited |
|
inlineoverridevirtualinherited |
Implements bpp::TransitionModelInterface.
Definition at line 47 of file AbstractSubstitutionModel.h.
References bpp::TransitionModelInterface::getdPij_dt(), and bpp::AbstractLkTransitionModel::lik_.
|
inlineoverridevirtualinherited |
Implements bpp::TransitionModelInterface.
Definition at line 122 of file AbstractWrappedModel.h.
References bpp::TransitionModelInterface::dPij_dt(), and bpp::WrappedTransitionModelInterface::transitionModel().
|
inlinevirtual |
Tell if eigenValues and Vectors must be computed.
Implements bpp::SubstitutionModelInterface.
Definition at line 239 of file AbstractWrappedModel.h.
References bpp::SubstitutionModelInterface::enableEigenDecomposition(), and bpp::AbstractWrappedSubstitutionModel::substitutionModel_().
|
inlinevirtual |
Set if eigenValues and Vectors must be computed.
Implements bpp::SubstitutionModelInterface.
Definition at line 237 of file AbstractWrappedModel.h.
References bpp::SubstitutionModelInterface::enableEigenDecomposition(), and bpp::AbstractWrappedSubstitutionModel::substitutionModel_().
|
inlinevirtual |
Implements bpp::SubstitutionModelInterface.
Definition at line 233 of file AbstractWrappedModel.h.
References bpp::SubstitutionModelInterface::exchangeabilityMatrix(), and bpp::WrappedSubstitutionModelInterface::substitutionModel().
|
inlineoverridevirtualinherited |
Methods to supersede TransitionModel methods.
Implements bpp::TransitionModelInterface.
Definition at line 119 of file AbstractWrappedModel.h.
References bpp::TransitionModelInterface::freq(), and bpp::WrappedTransitionModelInterface::transitionModel().
|
inlineoverridevirtualinherited |
| Exception | if no FrequenceSet is associated to this model. |
Reimplemented from bpp::AbstractWrappedModel.
Reimplemented in bpp::YN98, bpp::OneChangeRegisterTransitionModel, bpp::OneChangeTransitionModel, and bpp::RegisterRatesSubstitutionModel.
Definition at line 92 of file AbstractWrappedModel.h.
References bpp::BranchModelInterface::frequencySet(), and bpp::WrappedTransitionModelInterface::transitionModel().
Referenced by bpp::RegisterRatesSubstitutionModel::frequencySet().
|
inlinevirtual |
See Kosiol and Goldman (2005), Molecular Biology And Evolution 22(2) 193-9.
Implements bpp::SubstitutionModelInterface.
Definition at line 231 of file AbstractWrappedModel.h.
References bpp::SubstitutionModelInterface::generator(), and bpp::WrappedSubstitutionModelInterface::substitutionModel().
|
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().
|
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().
|
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().
|
inlinevirtual |
Implements bpp::SubstitutionModelInterface.
Definition at line 251 of file AbstractWrappedModel.h.
References bpp::SubstitutionModelInterface::getColumnRightEigenVectors(), and bpp::WrappedSubstitutionModelInterface::substitutionModel().
|
inlineoverridevirtualinherited |
Implements bpp::TransitionModelInterface.
Definition at line 131 of file AbstractWrappedModel.h.
References bpp::TransitionModelInterface::getd2Pij_dt2(), and bpp::WrappedTransitionModelInterface::transitionModel().
|
inlineoverridevirtualinherited |
Implements bpp::TransitionModelInterface.
Definition at line 129 of file AbstractWrappedModel.h.
References bpp::TransitionModelInterface::getdPij_dt(), and bpp::WrappedTransitionModelInterface::transitionModel().
|
inlinevirtual |
Implements bpp::SubstitutionModelInterface.
Definition at line 245 of file AbstractWrappedModel.h.
References bpp::SubstitutionModelInterface::getEigenValues(), and bpp::WrappedSubstitutionModelInterface::substitutionModel().
|
inlineoverridevirtualinherited |
Implements bpp::TransitionModelInterface.
Definition at line 125 of file AbstractWrappedModel.h.
References bpp::TransitionModelInterface::getFrequencies(), and bpp::WrappedTransitionModelInterface::transitionModel().
|
inlineoverrideprotectedvirtualinherited |
Implements bpp::TransitionModelInterface.
Definition at line 180 of file AbstractWrappedModel.h.
References bpp::TransitionModelInterface::getFrequencies_(), and bpp::AbstractWrappedTransitionModel::transitionModel_().
|
inlinevirtual |
Implements bpp::SubstitutionModelInterface.
Definition at line 247 of file AbstractWrappedModel.h.
References bpp::SubstitutionModelInterface::getIEigenValues(), and bpp::WrappedSubstitutionModelInterface::substitutionModel().
|
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 133 of file AbstractWrappedModel.h.
References bpp::BranchModelInterface::getInitValue(), and bpp::WrappedTransitionModelInterface::transitionModel().
|
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().
|
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().
|
inlineoverridevirtualinherited |
Get the name of the model.
Implements bpp::BranchModelInterface.
Reimplemented in bpp::LG10_EX_EHO, bpp::DFP07, bpp::GY94, bpp::KCM, bpp::MG94, bpp::RELAX, bpp::YN98, bpp::YNGP_M1, bpp::YNGP_M10, bpp::YNGP_M2, bpp::YNGP_M3, bpp::YNGP_M7, bpp::YNGP_M8, bpp::YNGP_M9, bpp::FromMixtureSubstitutionModel, bpp::InMixedSubstitutionModel, bpp::MultinomialFromTransitionModel, bpp::OneChangeRegisterTransitionModel, bpp::OneChangeTransitionModel, bpp::LGL08_CAT, bpp::LLG08_EHO, bpp::LLG08_EX2, bpp::LLG08_EX3, bpp::LLG08_UL2, bpp::LLG08_UL3, bpp::RegisterRatesSubstitutionModel, and bpp::TransitionFromTransitionModel.
Definition at line 67 of file AbstractWrappedModel.h.
References bpp::BranchModelInterface::getName(), and bpp::WrappedModelInterface::model().
Referenced by bpp::AbstractBiblioTransitionModel::updateMatrices_().
|
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().
|
inlineoverridevirtualinherited |
Implements bpp::TransitionModelInterface.
Definition at line 127 of file AbstractWrappedModel.h.
References bpp::TransitionModelInterface::getPij_t(), and bpp::WrappedTransitionModelInterface::transitionModel().
|
inlineoverridevirtualinherited |
Get the rate.
Implements bpp::BranchModelInterface.
Definition at line 138 of file AbstractWrappedModel.h.
References bpp::BranchModelInterface::getRate(), and bpp::WrappedTransitionModelInterface::transitionModel().
Referenced by bpp::AbstractBiblioTransitionModel::addRateParameter(), and bpp::FromMixtureSubstitutionModel::addRateParameter().
|
inlinevirtual |
Implements bpp::SubstitutionModelInterface.
Definition at line 249 of file AbstractWrappedModel.h.
References bpp::SubstitutionModelInterface::getRowLeftEigenVectors(), and bpp::WrappedSubstitutionModelInterface::substitutionModel().
|
inlinevirtual |
Get the scalar product of diagonal elements of the generator and the frequencies vector. If the generator is normalized, then scale=1. Otherwise each element must be multiplied by 1/scale.
Implements bpp::SubstitutionModelInterface.
Definition at line 277 of file AbstractWrappedModel.h.
References bpp::SubstitutionModelInterface::getScale(), and bpp::WrappedSubstitutionModelInterface::substitutionModel().
|
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().
|
inlinevirtual |
Implements bpp::SubstitutionModelInterface.
Definition at line 241 of file AbstractWrappedModel.h.
References bpp::SubstitutionModelInterface::isDiagonalizable(), and bpp::WrappedSubstitutionModelInterface::substitutionModel().
|
inlinevirtual |
Implements bpp::SubstitutionModelInterface.
Definition at line 243 of file AbstractWrappedModel.h.
References bpp::SubstitutionModelInterface::isNonSingular(), and bpp::WrappedSubstitutionModelInterface::substitutionModel().
|
inlinevirtual |
returns if model is scalable
Implements bpp::SubstitutionModelInterface.
Definition at line 257 of file AbstractWrappedModel.h.
References bpp::SubstitutionModelInterface::isScalable(), and bpp::WrappedSubstitutionModelInterface::substitutionModel().
|
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 | time |
| IndexOutOfBoundsException | if array position is out of range. |
| BadIntException | if states are not allowed in the associated alphabet. |
Implemented in bpp::MultinomialFromTransitionModel, bpp::TransitionFromTransitionModel, bpp::TransitionModelInterface, and 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_.
|
inlineoverridevirtualinherited |
Implements bpp::WrappedModelInterface.
Definition at line 97 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().
|
inlineprotectedinherited |
Definition at line 84 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_().
|
inlinevirtual |
Normalize the generator.
Implements bpp::SubstitutionModelInterface.
Definition at line 267 of file AbstractWrappedModel.h.
References bpp::SubstitutionModelInterface::normalize(), and bpp::AbstractWrappedSubstitutionModel::substitutionModel_().
|
inlineoverridevirtualinherited |
Implements bpp::TransitionModelInterface.
Definition at line 121 of file AbstractWrappedModel.h.
References bpp::TransitionModelInterface::Pij_t(), and bpp::WrappedTransitionModelInterface::transitionModel().
|
inlinevirtual |
Methods to supersede SubstitutionModel methods.
Implements bpp::SubstitutionModelInterface.
Definition at line 229 of file AbstractWrappedModel.h.
References bpp::SubstitutionModelInterface::Qij(), and bpp::WrappedSubstitutionModelInterface::substitutionModel().
|
inlinevirtual |
set the diagonal of the generator such that sum on each line equals 0.
Implements bpp::SubstitutionModelInterface.
Definition at line 272 of file AbstractWrappedModel.h.
References bpp::SubstitutionModelInterface::setDiagonal(), and bpp::AbstractWrappedSubstitutionModel::substitutionModel_().
|
inlineoverridevirtualinherited |
Set equilibrium frequencies.
| frequencies | The map of the frequencies to use. |
Implements bpp::TransitionModelInterface.
Reimplemented in bpp::KCM, bpp::MG94, and bpp::YN98.
Definition at line 156 of file AbstractWrappedModel.h.
References bpp::TransitionModelInterface::setFreq(), and bpp::AbstractWrappedTransitionModel::transitionModel_().
Referenced by bpp::AbstractBiblioTransitionModel::setFreq().
|
inlineoverridevirtualinherited |
Set equilibrium frequencies equal to the frequencies estimated from the data.
| data | The sequences to use. |
| pseudoCount | A quantity
|
Implements bpp::TransitionModelInterface.
Definition at line 148 of file AbstractWrappedModel.h.
References bpp::SequenceContainerTools::getFrequencies(), bpp::TransitionModelInterface::setFreq(), and bpp::AbstractWrappedTransitionModel::transitionModel_().
|
inlineoverridevirtualinherited |
Set the rate of the model (must be positive).
| rate | must be positive. |
Implements bpp::BranchModelInterface.
Definition at line 143 of file AbstractWrappedModel.h.
References bpp::BranchModelInterface::setRate(), and bpp::AbstractWrappedTransitionModel::transitionModel_().
|
inlinevirtual |
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 262 of file AbstractWrappedModel.h.
References bpp::SubstitutionModelInterface::setScalable(), and bpp::AbstractWrappedSubstitutionModel::substitutionModel_().
|
inlinevirtual |
Multiplies the current generator by the given scale.
| scale | the scale by which the generator is multiplied. |
Implements bpp::SubstitutionModelInterface.
Definition at line 282 of file AbstractWrappedModel.h.
References bpp::SubstitutionModelInterface::setScale(), and bpp::AbstractWrappedSubstitutionModel::substitutionModel_().
|
inlinevirtual |
By definition Sij(i,j) = Sij(j,i).
Implements bpp::SubstitutionModelInterface.
Definition at line 235 of file AbstractWrappedModel.h.
References bpp::SubstitutionModelInterface::Sij(), and bpp::WrappedSubstitutionModelInterface::substitutionModel().
|
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().
|
pure virtualinherited |
Implemented in bpp::GY94, bpp::KCM, bpp::MG94, bpp::YN98, bpp::FromMixtureSubstitutionModel, bpp::InMixedSubstitutionModel, and bpp::RegisterRatesSubstitutionModel.
Referenced by exchangeabilityMatrix(), generator(), getColumnRightEigenVectors(), getEigenValues(), getIEigenValues(), getRowLeftEigenVectors(), getScale(), isDiagonalizable(), isNonSingular(), isScalable(), Qij(), Sij(), and bpp::AbstractWrappedSubstitutionModel::transitionModel().
|
protectedpure virtualinherited |
Implemented in bpp::GY94, bpp::KCM, bpp::MG94, bpp::YN98, bpp::FromMixtureSubstitutionModel, bpp::InMixedSubstitutionModel, and bpp::RegisterRatesSubstitutionModel.
Referenced by enableEigenDecomposition(), normalize(), setDiagonal(), setScalable(), setScale(), and bpp::AbstractWrappedSubstitutionModel::transitionModel_().
|
inlinevirtualinherited |
Implements bpp::WrappedTransitionModelInterface.
Reimplemented in bpp::RegisterRatesSubstitutionModel.
Definition at line 198 of file AbstractWrappedModel.h.
References bpp::WrappedSubstitutionModelInterface::substitutionModel().
Referenced by bpp::InMixedSubstitutionModel::d2Pij_dt2(), bpp::InMixedSubstitutionModel::dPij_dt(), bpp::InMixedSubstitutionModel::freq(), bpp::InMixedSubstitutionModel::getd2Pij_dt2(), bpp::InMixedSubstitutionModel::getdPij_dt(), bpp::InMixedSubstitutionModel::getFrequencies(), bpp::InMixedSubstitutionModel::getPij_t(), bpp::InMixedSubstitutionModel::getRate(), and bpp::InMixedSubstitutionModel::Pij_t().
|
pure virtualinherited |
Implemented in bpp::AbstractWrappedSubstitutionModel, bpp::AbstractBiblioMixedTransitionModel, bpp::AbstractFromSubstitutionModelTransitionModel, and bpp::RegisterRatesSubstitutionModel.
Referenced by bpp::AbstractTotallyWrappedTransitionModel::computeFrequencies(), bpp::AbstractTotallyWrappedTransitionModel::d2Pij_dt2(), bpp::AbstractTotallyWrappedTransitionModel::dPij_dt(), bpp::AbstractTotallyWrappedTransitionModel::freq(), bpp::AbstractWrappedTransitionModel::frequencySet(), bpp::AbstractTotallyWrappedTransitionModel::getd2Pij_dt2(), bpp::AbstractTotallyWrappedTransitionModel::getdPij_dt(), bpp::AbstractTotallyWrappedTransitionModel::getFrequencies(), bpp::AbstractTotallyWrappedTransitionModel::getInitValue(), bpp::AbstractTotallyWrappedTransitionModel::getPij_t(), bpp::AbstractTotallyWrappedTransitionModel::getRate(), bpp::AbstractWrappedTransitionModel::model(), and bpp::AbstractTotallyWrappedTransitionModel::Pij_t().
|
inlineprotectedvirtualinherited |
Implements bpp::AbstractWrappedTransitionModel.
Reimplemented in bpp::RegisterRatesSubstitutionModel.
Definition at line 204 of file AbstractWrappedModel.h.
References bpp::AbstractWrappedSubstitutionModel::substitutionModel_().
|
protectedpure virtualinherited |
Implemented in bpp::AbstractWrappedSubstitutionModel, bpp::AbstractBiblioMixedTransitionModel, bpp::AbstractFromSubstitutionModelTransitionModel, and bpp::RegisterRatesSubstitutionModel.
Referenced by bpp::AbstractTotallyWrappedTransitionModel::computeFrequencies(), bpp::AbstractTotallyWrappedTransitionModel::getFrequencies_(), bpp::AbstractWrappedTransitionModel::model_(), bpp::AbstractTotallyWrappedTransitionModel::setFreq(), bpp::AbstractTotallyWrappedTransitionModel::setFreqFromData(), and bpp::AbstractTotallyWrappedTransitionModel::setRate().
|
mutableprivateinherited |
Definition at line 23 of file AbstractSubstitutionModel.h.
Referenced by bpp::AbstractLkTransitionModel::d2Lik_dt2(), bpp::AbstractLkTransitionModel::dLik_dt(), and bpp::AbstractLkTransitionModel::Lik_t().