|
bpp-phyl
2.1.0
|
Abstract Class for substitution models on codons parametrized by a frequency. More...
#include <Bpp/Phyl/Model/Codon/AbstractCodonPhaseFrequenciesSubstitutionModel.h>
Inheritance diagram for bpp::AbstractCodonPhaseFrequenciesSubstitutionModel:
Collaboration diagram for bpp::AbstractCodonPhaseFrequenciesSubstitutionModel:Public Member Functions | |
| AbstractCodonPhaseFrequenciesSubstitutionModel (FrequenciesSet *pfreq, const std::string &prefix) | |
| Build a AbstractCodonPhaseFrequenciesSubstitutionModel instance. More... | |
| AbstractCodonPhaseFrequenciesSubstitutionModel (const AbstractCodonPhaseFrequenciesSubstitutionModel &model) | |
| AbstractCodonPhaseFrequenciesSubstitutionModel & | operator= (const AbstractCodonPhaseFrequenciesSubstitutionModel &model) |
| virtual | ~AbstractCodonPhaseFrequenciesSubstitutionModel () |
| void | fireParameterChanged (const ParameterList ¶meters) |
| void | setFreq (std::map< int, double > &frequencies) |
| Set equilibrium frequencies. More... | |
| const FrequenciesSet * | getFrequenciesSet () const |
| If the model owns a FrequenciesSet, returns a pointer to it, otherwise return 0. More... | |
| void | setNamespace (const std::string &prefix) |
| double | getCodonsMulRate (size_t, size_t) const |
| Returns the multiplicative rate specific to two codons specified by their number. The respective generator rate is this rate multiplied by the rate defined by the model defined on nucleotides. More... | |
| virtual CodonSubstitutionModel * | clone () const =0 |
| virtual std::string | getName () const =0 |
| Get the name of the model. More... | |
| virtual const std::vector< int > & | getAlphabetChars () const =0 |
| virtual int | getAlphabetChar (size_t i) const =0 |
| Get the char in the alphabet corresponding to a given state in the model. More... | |
| virtual std::vector< size_t > | getModelStates (int i) const =0 |
| Get the state in the model corresponding to a particular char in the alphabet. More... | |
| virtual double | freq (size_t i) const =0 |
| virtual double | Qij (size_t i, size_t j) 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 const Matrix< double > & | getGenerator () const =0 |
| virtual const Matrix< double > & | getExchangeabilityMatrix () const =0 |
| virtual double | Sij (size_t i, size_t j) const =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 void | enableEigenDecomposition (bool yn)=0 |
| Set if eigenValues and Vectors must be computed. More... | |
| virtual bool | enableEigenDecomposition ()=0 |
| Tell if eigenValues and Vectors must be computed. More... | |
| virtual const Vdouble & | getEigenValues () const =0 |
| virtual const Vdouble & | getIEigenValues () const =0 |
| virtual bool | isDiagonalizable () const =0 |
| virtual bool | isNonSingular () const =0 |
| virtual const Matrix< double > & | getRowLeftEigenVectors () const =0 |
| virtual const Matrix< double > & | getColumnRightEigenVectors () const =0 |
| virtual 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 throw (IndexOutOfBoundsException, BadIntException) |
| virtual double | getScale () const =0 |
| Get the scalar product of diagonal elements of the generator and the frequencies vector. If the generator is normalized, then scale=1. Otherwise each element must be multiplied by 1/scale. More... | |
| virtual void | setScale (double scale)=0 |
| Set the rate of the generator, defined as the scalar product of diagonal elements of the generator and the frequencies vector. More... | |
| 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 void | setFreqFromData (const SequenceContainer &data, double pseudoCount=0)=0 |
| Set equilibrium frequencies equal to the frequencies estimated from the data. More... | |
| virtual size_t | getNumberOfIndependentParameters () const =0 |
| virtual void | aliasParameters (const std::string &p1, const std::string &p2)=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 |
| const ParameterList & | getIndependentParameters () const |
| size_t | getNumberOfIndependentParameters () const |
| void | aliasParameters (const std::string &p1, const std::string &p2) |
| void | unaliasParameters (const std::string &p1, const std::string &p2) |
| std::vector< std::string > | getAlias (const std::string &name) const |
| bool | hasParameter (const std::string &name) const |
| const ParameterList & | getParameters () const |
| const Parameter & | getParameter (const std::string &name) const |
| double | getParameterValue (const std::string &name) const |
| void | setAllParametersValues (const ParameterList ¶meters) |
| void | setParameterValue (const std::string &name, double value) |
| void | setParametersValues (const ParameterList ¶meters) |
| bool | matchParametersValues (const ParameterList ¶meters) |
| size_t | getNumberOfParameters () const |
| std::string | getNamespace () const |
| std::string | getParameterNameWithoutNamespace (const std::string &name) const |
Protected Member Functions | |
| void | addParameter_ (Parameter *parameter) |
| void | addParameters_ (const ParameterList ¶meters) |
| void | deleteParameter_ (size_t index) |
| void | resetParameters_ () |
| Parameter & | getParameter_ (const std::string &name) |
| Parameter & | getParameter_ (size_t index) |
| const Parameter & | getParameter_ (size_t index) const |
| Parameter & | getParameterWithNamespace_ (const std::string &name) |
| const Parameter & | getParameterWithNamespace_ (const std::string &name) const |
| ParameterList & | getParameters_ () |
Private Attributes | |
| WordFrequenciesSet * | posfreqset_ |
| std::string | freqName_ |
Abstract Class for substitution models on codons parametrized by a frequency.
This class should be used with models which equilibrium distribution is fixed, ans does not depend on the parameters. Otherwise there may be problems of identifiability of the parameters.
If we denote
the given frequencies for codons,
is the frequency of letter
in phase
.
For codons
and
, the generator term defined from inherited and inheriting classes,
, is multiplied by the product of the
for each
such that
.
Definition at line 69 of file AbstractCodonPhaseFrequenciesSubstitutionModel.h.
| AbstractCodonPhaseFrequenciesSubstitutionModel::AbstractCodonPhaseFrequenciesSubstitutionModel | ( | FrequenciesSet * | pfreq, |
| const std::string & | prefix | ||
| ) |
Build a AbstractCodonPhaseFrequenciesSubstitutionModel instance.
| pfreq | pointer to the AbstractFrequenciesSet equilibrium frequencies. It is owned by the instance. |
| prefix | the Namespace |
Definition at line 49 of file AbstractCodonPhaseFrequenciesSubstitutionModel.cpp.
References bpp::AbstractParameterAliasable::addParameters_(), bpp::WordFrequenciesSet::clone(), freqName_, bpp::CodonFrequenciesSet::getAlphabet(), bpp::CodonFrequenciesSet::getAlphabet(), bpp::CodonFrequenciesSet::getAlphabet(), bpp::CodonFrequenciesSet::getAlphabet(), bpp::FrequenciesSet::getFrequencies(), bpp::FrequenciesSet::getName(), posfreqset_, posfreqset_, posfreqset_, and posfreqset_.
|
inline |
Definition at line 94 of file AbstractCodonPhaseFrequenciesSubstitutionModel.h.
|
virtual |
Definition at line 92 of file AbstractCodonPhaseFrequenciesSubstitutionModel.cpp.
References posfreqset_, and posfreqset_.
|
pure virtualinherited |
Implemented in bpp::AbstractSubstitutionModel, bpp::G2001, bpp::AbstractBiblioSubstitutionModel, and bpp::TS98.
Referenced by bpp::AbstractBiblioSubstitutionModel::addRateParameter().
|
pure virtualinherited |
Implements bpp::SubstitutionModel.
Implemented in bpp::CodonDistanceFrequenciesSubstitutionModel, bpp::AbstractCodonSubstitutionModel, bpp::CodonDistancePhaseFrequenciesSubstitutionModel, bpp::CodonDistanceFitnessPhaseFrequenciesSubstitutionModel, bpp::CodonDistanceSubstitutionModel, bpp::CodonRateFrequenciesSubstitutionModel, and bpp::CodonRateSubstitutionModel.
|
pure virtualinherited |
Implemented in bpp::AbstractSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, bpp::RE08, bpp::JCnuc, bpp::BinarySubstitutionModel, and bpp::AbstractBiblioSubstitutionModel.
Referenced by bpp::AbstractBiblioSubstitutionModel::d2Pij_dt2(), and bpp::RE08::d2Pij_dt2().
|
pure virtualinherited |
Implemented in bpp::AbstractSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, bpp::RE08, bpp::JCnuc, bpp::BinarySubstitutionModel, and bpp::AbstractBiblioSubstitutionModel.
Referenced by bpp::RE08::d2Pij_dt2(), bpp::AbstractBiblioSubstitutionModel::dPij_dt(), and bpp::RE08::dPij_dt().
|
pure virtualinherited |
Set if eigenValues and Vectors must be computed.
Implemented in bpp::AbstractSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, and bpp::AbstractBiblioSubstitutionModel.
Referenced by bpp::AbstractCodonSubstitutionModel::AbstractCodonSubstitutionModel(), bpp::AbstractCodonSubstitutionModel::AbstractCodonSubstitutionModel(), bpp::AbstractBiblioSubstitutionModel::enableEigenDecomposition(), bpp::AbstractBiblioSubstitutionModel::enableEigenDecomposition(), bpp::gBGC::gBGC(), and bpp::YpR::YpR().
|
pure virtualinherited |
Tell if eigenValues and Vectors must be computed.
Implemented in bpp::AbstractSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, and bpp::AbstractBiblioSubstitutionModel.
|
virtual |
Reimplemented from bpp::AbstractParameterAliasable.
Reimplemented in bpp::CodonDistancePhaseFrequenciesSubstitutionModel, and bpp::CodonDistanceFitnessPhaseFrequenciesSubstitutionModel.
Definition at line 98 of file AbstractCodonPhaseFrequenciesSubstitutionModel.cpp.
References posfreqset_.
Referenced by bpp::CodonDistanceFitnessPhaseFrequenciesSubstitutionModel::fireParameterChanged(), and bpp::CodonDistancePhaseFrequenciesSubstitutionModel::fireParameterChanged().
|
pure virtualinherited |
Implemented in bpp::AbstractSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, and bpp::AbstractBiblioSubstitutionModel.
Referenced by bpp::TwoTreeLikelihood::computeTreeD2Likelihood(), bpp::TwoTreeLikelihood::computeTreeDLikelihood(), bpp::RE08::d2Pij_dt2(), bpp::RE08::d2Pij_dt2(), bpp::RE08::dPij_dt(), bpp::RE08::dPij_dt(), bpp::AbstractBiblioSubstitutionModel::freq(), bpp::RE08::getd2Pij_dt2(), bpp::RE08::getd2Pij_dt2(), bpp::RE08::getdPij_dt(), bpp::RE08::getdPij_dt(), bpp::RE08::getPij_t(), bpp::RE08::getPij_t(), bpp::RE08::Pij_t(), bpp::RE08::Pij_t(), bpp::RE08::updateMatrices(), bpp::RE08::updateMatrices(), and bpp::RE08::updateMatrices().
|
pure virtualinherited |
Implemented in bpp::AbstractSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, and bpp::AbstractBiblioSubstitutionModel.
Referenced by bpp::DecompositionSubstitutionCount::DecompositionSubstitutionCount(), bpp::AbstractMutationProcess::detailedEvolve(), bpp::LaplaceSubstitutionCount::getAllNumbersOfSubstitutions(), bpp::AbstractBiblioSubstitutionModel::getAlphabet(), bpp::MarkovModulatedSubstitutionModel::getAlphabet(), bpp::NonHomogeneousSequenceSimulator::NonHomogeneousSequenceSimulator(), bpp::LaplaceSubstitutionCount::setSubstitutionModel(), bpp::UniformizationSubstitutionCount::setSubstitutionModel(), bpp::UniformizationSubstitutionCount::setSubstitutionModel(), bpp::DecompositionSubstitutionCount::setSubstitutionModel(), bpp::DecompositionSubstitutionCount::setSubstitutionModel(), bpp::UniformizationSubstitutionCount::substitutionRegisterHasChanged(), bpp::DecompositionSubstitutionCount::substitutionRegisterHasChanged(), bpp::UniformizationSubstitutionCount::UniformizationSubstitutionCount(), bpp::YpR::updateMatrices(), bpp::BppOSubstitutionModelFormat::writeMixed_(), and bpp::BppOSubstitutionModelFormat::writeMixed_().
|
pure virtualinherited |
Get the char in the alphabet corresponding to a given state in the model.
In most cases, this method will return i.
| i | The index of the state. |
Implemented in bpp::AbstractSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, and bpp::AbstractBiblioSubstitutionModel.
Referenced by bpp::AbstractBiblioSubstitutionModel::getAlphabetChar(), bpp::MarginalAncestralStateReconstruction::getAncestralSequenceForNode(), bpp::MarginalAncestralStateReconstruction::getAncestralSequenceForNode(), and bpp::NonHomogeneousSequenceSimulator::multipleEvolve().
|
pure virtualinherited |
Implemented in bpp::AbstractSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, and bpp::AbstractBiblioSubstitutionModel.
Referenced by bpp::AbstractBiblioSubstitutionModel::getAlphabetChars(), and bpp::MarkovModulatedSubstitutionModel::updateMatrices().
|
virtual |
Returns the multiplicative rate specific to two codons specified by their number. The respective generator rate is this rate multiplied by the rate defined by the model defined on nucleotides.
Implements bpp::CodonSubstitutionModel.
Reimplemented in bpp::CodonDistancePhaseFrequenciesSubstitutionModel, and bpp::CodonDistanceFitnessPhaseFrequenciesSubstitutionModel.
Definition at line 110 of file AbstractCodonPhaseFrequenciesSubstitutionModel.cpp.
References bpp::FrequenciesSet::getFrequencies(), and posfreqset_.
Referenced by bpp::CodonDistanceFitnessPhaseFrequenciesSubstitutionModel::getCodonsMulRate(), and bpp::CodonDistancePhaseFrequenciesSubstitutionModel::getCodonsMulRate().
|
pure virtualinherited |
Implemented in bpp::AbstractSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, and bpp::AbstractBiblioSubstitutionModel.
Referenced by bpp::DecompositionSubstitutionCount::computeEigen_(), bpp::AbstractBiblioSubstitutionModel::getColumnRightEigenVectors(), and bpp::MarkovModulatedSubstitutionModel::updateMatrices().
|
pure virtualinherited |
Implemented in bpp::AbstractSubstitutionModel, bpp::AbstractMixedSubstitutionModel, bpp::F84, bpp::HKY85, bpp::MarkovModulatedSubstitutionModel, bpp::JCprot, bpp::T92, bpp::K80, bpp::RN95, bpp::TN93, bpp::RE08, bpp::JCnuc, bpp::RN95s, bpp::BinarySubstitutionModel, bpp::WordSubstitutionModel, and bpp::AbstractBiblioSubstitutionModel.
Referenced by bpp::AbstractHomogeneousTreeLikelihood::computeTransitionProbabilitiesForNode(), bpp::AbstractNonHomogeneousTreeLikelihood::computeTransitionProbabilitiesForNode(), bpp::TwoTreeLikelihood::fireParameterChanged(), bpp::AbstractBiblioSubstitutionModel::getd2Pij_dt2(), and bpp::RE08::getd2Pij_dt2().
|
pure virtualinherited |
Implemented in bpp::AbstractSubstitutionModel, bpp::AbstractMixedSubstitutionModel, bpp::F84, bpp::HKY85, bpp::MarkovModulatedSubstitutionModel, bpp::JCprot, bpp::T92, bpp::K80, bpp::RN95, bpp::TN93, bpp::RE08, bpp::JCnuc, bpp::RN95s, bpp::BinarySubstitutionModel, bpp::WordSubstitutionModel, and bpp::AbstractBiblioSubstitutionModel.
Referenced by bpp::AbstractHomogeneousTreeLikelihood::computeTransitionProbabilitiesForNode(), bpp::AbstractNonHomogeneousTreeLikelihood::computeTransitionProbabilitiesForNode(), bpp::TwoTreeLikelihood::fireParameterChanged(), bpp::RE08::getd2Pij_dt2(), bpp::AbstractBiblioSubstitutionModel::getdPij_dt(), and bpp::RE08::getdPij_dt().
|
pure virtualinherited |
Implemented in bpp::AbstractSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, and bpp::AbstractBiblioSubstitutionModel.
Referenced by bpp::DecompositionSubstitutionCount::computeEigen_(), bpp::AbstractBiblioSubstitutionModel::getEigenValues(), and bpp::MarkovModulatedSubstitutionModel::updateMatrices().
|
pure virtualinherited |
. Implemented in bpp::AbstractSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, and bpp::AbstractBiblioSubstitutionModel.
Referenced by bpp::AbstractBiblioSubstitutionModel::getExchangeabilityMatrix(), bpp::RE08::updateMatrices(), and bpp::MarkovModulatedSubstitutionModel::updateMatrices().
|
pure virtualinherited |
Implemented in bpp::AbstractSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, and bpp::AbstractBiblioSubstitutionModel.
Referenced by bpp::AbstractHomogeneousTreeLikelihood::applyParameters(), bpp::AbstractHomogeneousTreeLikelihood::computeAllTransitionProbabilities(), bpp::TwoTreeLikelihood::computeTreeLikelihood(), bpp::RHomogeneousTreeLikelihood::fireParameterChanged(), bpp::AbstractBiblioSubstitutionModel::getFrequencies(), bpp::TwoTreeLikelihood::getRootFrequencies(), bpp::AbstractHomogeneousTreeLikelihood::getRootFrequencies(), bpp::NonHomogeneousSequenceSimulator::NonHomogeneousSequenceSimulator(), bpp::MarkovModulatedSubstitutionModel::updateMatrices(), and bpp::MarkovModulatedSubstitutionModel::updateMatrices().
|
inlinevirtual |
If the model owns a FrequenciesSet, returns a pointer to it, otherwise return 0.
Reimplemented from bpp::SubstitutionModel.
Definition at line 117 of file AbstractCodonPhaseFrequenciesSubstitutionModel.h.
References posfreqset_.
|
pure virtualinherited |
, meaning that $
, and (ii)
. This means that, under normalization, the mean rate of replacement at equilibrium is 1 and that time
are measured in units of expected number of changes per site. Additionnaly, the rate_ attibute provides the possibility to increase or decrease this mean rate.See Kosiol and Goldman (2005), Molecular Biology And Evolution 22(2) 193-9.
Implemented in bpp::AbstractSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, and bpp::AbstractBiblioSubstitutionModel.
Referenced by bpp::LaplaceSubstitutionCount::computeCounts(), bpp::UniformizationSubstitutionCount::computeCounts_(), bpp::AbstractBiblioSubstitutionModel::getGenerator(), bpp::SimpleMutationProcess::SimpleMutationProcess(), bpp::RE08::updateMatrices(), and bpp::MarkovModulatedSubstitutionModel::updateMatrices().
|
pure virtualinherited |
Implemented in bpp::AbstractSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, and bpp::AbstractBiblioSubstitutionModel.
Referenced by bpp::AbstractBiblioSubstitutionModel::getIEigenValues().
|
pure virtualinherited |
This method is used to initialize likelihoods in reccursions. It typically sends 1 if i = state, 0 otherwise, where i is one of the possible states of the alphabet allowed in the model and state is the observed state in the considered sequence/site.
| i | the index of the state in the model. |
| state | An observed state in the sequence/site. |
| IndexOutOfBoundsException | if array position is out of range. |
| BadIntException | if states are not allowed in the associated alphabet. |
Implemented in bpp::AbstractSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, bpp::RE08, and bpp::AbstractBiblioSubstitutionModel.
Referenced by bpp::AbstractBiblioSubstitutionModel::getInitValue().
|
pure virtualinherited |
Get the state in the model corresponding to a particular char in the alphabet.
| i | The alphabet char to check. |
Implemented in bpp::AbstractSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, and bpp::AbstractBiblioSubstitutionModel.
Referenced by bpp::AbstractBiblioSubstitutionModel::getModelStates(), bpp::MarkovModulatedSubstitutionModel::getModelStates(), and bpp::MarginalAncestralStateReconstruction::recursiveMarginalAncestralStates().
|
pure virtualinherited |
Get the name of the model.
Implemented in bpp::YpR_Gen, bpp::YpR_Sym, bpp::F84, bpp::HKY85, bpp::JCprot, bpp::T92, bpp::K80, bpp::RN95, bpp::CodonDistanceFrequenciesSubstitutionModel, bpp::GTR, bpp::TN93, bpp::RE08, bpp::MixtureOfSubstitutionModels, bpp::JCnuc, bpp::CodonDistancePhaseFrequenciesSubstitutionModel, bpp::CodonDistanceFitnessPhaseFrequenciesSubstitutionModel, bpp::RN95s, bpp::BinarySubstitutionModel, bpp::CodonDistanceSubstitutionModel, bpp::UserProteinSubstitutionModel, bpp::MixtureOfASubstitutionModel, bpp::LLG08_EX3, bpp::WordSubstitutionModel, bpp::LLG08_EHO, bpp::LLG08_UL3, bpp::WAG01, bpp::SSR, bpp::L95, bpp::LGL08_CAT, bpp::LLG08_EX2, bpp::LLG08_UL2, bpp::DSO78, bpp::JTT92, bpp::gBGC, bpp::CodonRateFrequenciesSubstitutionModel, bpp::G2001, bpp::LG08, bpp::YNGKP_M1, bpp::YNGKP_M8, bpp::TS98, bpp::YNGKP_M7, bpp::GY94, bpp::YNGKP_M2, bpp::YNGKP_M3, bpp::TripletSubstitutionModel, bpp::YN98, bpp::CodonRateSubstitutionModel, bpp::MG94, bpp::Coala, bpp::LLG08_EX3::EmbeddedModel, bpp::LLG08_EHO::EmbeddedModel, bpp::LLG08_UL3::EmbeddedModel, bpp::LGL08_CAT::EmbeddedModel, bpp::LLG08_EX2::EmbeddedModel, and bpp::LLG08_UL2::EmbeddedModel.
Referenced by bpp::AbstractCodonFitnessSubstitutionModel::AbstractCodonFitnessSubstitutionModel(), bpp::AbstractSubstitutionModel::fireParameterChanged(), bpp::gBGC::getName(), bpp::MixtureOfSubstitutionModels::getSubmodelNumbers(), bpp::BppOSubstitutionModelFormat::readMixed_(), bpp::AbstractWordSubstitutionModel::updateMatrices(), bpp::AbstractBiblioSubstitutionModel::updateMatrices(), and bpp::BppOSubstitutionModelFormat::write().
|
pure virtualinherited |
Get the number of states.
For most models, this equals the size of the alphabet.
Implemented in bpp::AbstractMixedSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, bpp::RE08, bpp::YpR, bpp::AbstractBiblioSubstitutionModel, bpp::AbstractWordSubstitutionModel, bpp::BinarySubstitutionModel, bpp::gBGC, bpp::NucleotideSubstitutionModel, and bpp::ProteinSubstitutionModel.
Referenced by bpp::OneJumpSubstitutionCount::getAllNumbersOfSubstitutions(), bpp::AbstractBiblioSubstitutionModel::getNumberOfStates(), bpp::BranchLikelihood::initModel(), bpp::RE08::RE08(), bpp::SimpleMutationProcess::SimpleMutationProcess(), and bpp::MarkovModulatedSubstitutionModel::updateMatrices().
|
pure virtualinherited |
Implemented in bpp::AbstractSubstitutionModel, bpp::AbstractMixedSubstitutionModel, bpp::F84, bpp::HKY85, bpp::MarkovModulatedSubstitutionModel, bpp::JCprot, bpp::T92, bpp::K80, bpp::RN95, bpp::TN93, bpp::RE08, bpp::JCnuc, bpp::RN95s, bpp::BinarySubstitutionModel, bpp::WordSubstitutionModel, and bpp::AbstractBiblioSubstitutionModel.
Referenced by bpp::LaplaceSubstitutionCount::computeCounts(), bpp::UniformizationSubstitutionCount::computeCounts_(), bpp::DecompositionSubstitutionCount::computeCounts_(), bpp::AbstractHomogeneousTreeLikelihood::computeTransitionProbabilitiesForNode(), bpp::AbstractNonHomogeneousTreeLikelihood::computeTransitionProbabilitiesForNode(), bpp::NonHomogeneousSequenceSimulator::evolve(), bpp::TwoTreeLikelihood::fireParameterChanged(), bpp::OneJumpSubstitutionCount::getAllNumbersOfSubstitutions(), bpp::RE08::getd2Pij_dt2(), bpp::RE08::getdPij_dt(), bpp::AbstractBiblioSubstitutionModel::getPij_t(), and bpp::RE08::getPij_t().
|
pure virtualinherited |
Get the rate.
Implemented in bpp::AbstractSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, bpp::G2001, bpp::AbstractBiblioSubstitutionModel, and bpp::TS98.
Referenced by bpp::AbstractBiblioSubstitutionModel::getRate(), and bpp::MarkovModulatedSubstitutionModel::getRate().
|
pure virtualinherited |
Implemented in bpp::AbstractSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, and bpp::AbstractBiblioSubstitutionModel.
Referenced by bpp::DecompositionSubstitutionCount::computeEigen_(), and bpp::AbstractBiblioSubstitutionModel::getRowLeftEigenVectors().
|
pure virtualinherited |
Get the scalar product of diagonal elements of the generator and the frequencies vector. If the generator is normalized, then scale=1. Otherwise each element must be multiplied by 1/scale.
Implemented in bpp::AbstractSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, and bpp::AbstractBiblioSubstitutionModel.
Referenced by bpp::AbstractBiblioSubstitutionModel::getScale().
|
pure virtualinherited |
Implemented in bpp::AbstractSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, and bpp::AbstractBiblioSubstitutionModel.
Referenced by bpp::AbstractBiblioSubstitutionModel::isDiagonalizable().
|
pure virtualinherited |
Implemented in bpp::AbstractSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, and bpp::AbstractBiblioSubstitutionModel.
Referenced by bpp::AbstractBiblioSubstitutionModel::isNonSingular().
|
inline |
Definition at line 100 of file AbstractCodonPhaseFrequenciesSubstitutionModel.h.
References freqName_, freqName_, bpp::AbstractParameterAliasable::operator=(), posfreqset_, posfreqset_, posfreqset_, and posfreqset_.
Referenced by bpp::CodonDistanceFitnessPhaseFrequenciesSubstitutionModel::operator=(), and bpp::CodonDistancePhaseFrequenciesSubstitutionModel::operator=().
|
pure virtualinherited |
Implemented in bpp::AbstractSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, bpp::RE08, bpp::JCnuc, bpp::BinarySubstitutionModel, and bpp::AbstractBiblioSubstitutionModel.
Referenced by bpp::RE08::d2Pij_dt2(), bpp::RE08::dPij_dt(), bpp::NonHomogeneousSequenceSimulator::evolve(), bpp::SimpleMutationProcess::evolve(), bpp::SimpleMutationProcess::evolve(), bpp::OneJumpSubstitutionCount::getNumberOfSubstitutions(), bpp::AbstractBiblioSubstitutionModel::Pij_t(), and bpp::RE08::Pij_t().
|
pure virtualinherited |
Implemented in bpp::AbstractSubstitutionModel, bpp::AbstractMixedSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, and bpp::AbstractBiblioSubstitutionModel.
Referenced by bpp::UniformizationSubstitutionCount::fillBMatrices_(), bpp::DecompositionSubstitutionCount::fillBMatrices_(), bpp::AbstractMutationProcess::getTimeBeforeNextMutationEvent(), bpp::AbstractBiblioSubstitutionModel::Qij(), bpp::UniformizationSubstitutionCount::setSubstitutionModel(), bpp::SimpleMutationProcess::SimpleMutationProcess(), bpp::UniformizationSubstitutionCount::UniformizationSubstitutionCount(), bpp::gBGC::updateMatrices(), bpp::YpR::updateMatrices(), bpp::YpR::updateMatrices(), bpp::YpR::updateMatrices(), and bpp::YpR::updateMatrices().
|
virtual |
Set equilibrium frequencies.
| frequencies | The map of the frequencies to use. |
Reimplemented from bpp::SubstitutionModel.
Reimplemented in bpp::CodonDistancePhaseFrequenciesSubstitutionModel, and bpp::CodonDistanceFitnessPhaseFrequenciesSubstitutionModel.
Definition at line 104 of file AbstractCodonPhaseFrequenciesSubstitutionModel.cpp.
References bpp::AbstractParameterAliasable::matchParametersValues(), and posfreqset_.
Referenced by bpp::CodonDistanceFitnessPhaseFrequenciesSubstitutionModel::setFreq(), and bpp::CodonDistancePhaseFrequenciesSubstitutionModel::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::AbstractSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, and bpp::AbstractBiblioSubstitutionModel.
Referenced by bpp::AbstractBiblioSubstitutionModel::setFreqFromData(), and bpp::MarkovModulatedSubstitutionModel::setFreqFromData().
|
inline |
Definition at line 119 of file AbstractCodonPhaseFrequenciesSubstitutionModel.h.
References freqName_, and posfreqset_.
Referenced by bpp::CodonDistanceFitnessPhaseFrequenciesSubstitutionModel::setNamespace(), and bpp::CodonDistancePhaseFrequenciesSubstitutionModel::setNamespace().
|
pure virtualinherited |
Set the rate of the model (must be positive).
| rate | must be positive. |
Implemented in bpp::AbstractSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, bpp::AbstractMixedSubstitutionModel, bpp::G2001, bpp::AbstractBiblioSubstitutionModel, and bpp::TS98.
Referenced by bpp::AbstractBiblioSubstitutionModel::setRate(), and bpp::MarkovModulatedSubstitutionModel::setRate().
|
pure virtualinherited |
Set the rate of the generator, defined as the scalar product of diagonal elements of the generator and the frequencies vector.
When the generator is normalized, scale=1. Otherwise each element is multiplied such that the correct scale is set.
Implemented in bpp::AbstractSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, and bpp::AbstractBiblioSubstitutionModel.
Referenced by bpp::AbstractBiblioSubstitutionModel::setScale(), and bpp::MarkovModulatedSubstitutionModel::setScale().
|
pure virtualinherited |
By definition Sij(i,j) = Sij(j,i).
Implemented in bpp::AbstractSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, and bpp::AbstractBiblioSubstitutionModel.
Referenced by bpp::AbstractBiblioSubstitutionModel::Sij().
|
private |
Definition at line 80 of file AbstractCodonPhaseFrequenciesSubstitutionModel.h.
Referenced by AbstractCodonPhaseFrequenciesSubstitutionModel(), operator=(), operator=(), and setNamespace().
|
private |
Definition at line 79 of file AbstractCodonPhaseFrequenciesSubstitutionModel.h.
Referenced by AbstractCodonPhaseFrequenciesSubstitutionModel(), AbstractCodonPhaseFrequenciesSubstitutionModel(), AbstractCodonPhaseFrequenciesSubstitutionModel(), AbstractCodonPhaseFrequenciesSubstitutionModel(), AbstractCodonPhaseFrequenciesSubstitutionModel(), fireParameterChanged(), getCodonsMulRate(), getFrequenciesSet(), operator=(), operator=(), operator=(), operator=(), setFreq(), setFreq(), setNamespace(), ~AbstractCodonPhaseFrequenciesSubstitutionModel(), and ~AbstractCodonPhaseFrequenciesSubstitutionModel().