bpp-phyl
2.2.0
|
Abstract class for modelling of non-synonymous abd synonymous substitution rates in codon models. More...
#include <Bpp/Phyl/Model/Codon/AbstractCodonDistanceSubstitutionModel.h>
Public Member Functions | |
AbstractCodonDistanceSubstitutionModel (const AlphabetIndex2 *pdist, const std::string &prefix, bool paramSynRate=false) | |
Build a new AbstractCodonDistanceSubstitutionModel object from a pointer to NucleotideSubstitutionModel. More... | |
AbstractCodonDistanceSubstitutionModel (const AbstractCodonDistanceSubstitutionModel &model) | |
AbstractCodonDistanceSubstitutionModel & | operator= (const AbstractCodonDistanceSubstitutionModel &model) |
virtual | ~AbstractCodonDistanceSubstitutionModel () |
void | fireParameterChanged (const ParameterList ¶meters) |
double | getCodonsMulRate (size_t i, size_t j) 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 const GeneticCode * | getGeneticCode () const =0 |
virtual std::string | getName () const =0 |
Get the name of the model. More... | |
virtual const std::vector< int > & | getAlphabetStates () const =0 |
virtual const StateMap & | 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 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 |
Multiplies the current generator by the given scale. 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 void | setFreq (std::map< int, double > &frequencies) |
Set equilibrium frequencies. More... | |
virtual const FrequenciesSet * | getFrequenciesSet () const |
If the model owns a FrequenciesSet, returns a pointer to it, otherwise return 0. More... | |
Private Attributes | |
const AlphabetIndex2 * | pdistance_ |
double | alpha_ |
double | beta_ |
double | gamma_ |
Abstract class for modelling of non-synonymous abd synonymous substitution rates in codon models.
If a distance between amino-acids is defined, the non-synonymous rate is multiplied with, if the coded amino-acids are
and
,
with non-negative parameter
"alpha"
and positive parameter "beta"
.
If such a distance is not defined, the non-synonymous substitution rate is multiplied with with positive parameter
"beta"
(ie ).
If paramSynRate is true, the synonymous substitution rate is multiplied with (with optional positive parameter
"gamma"
), else it is multiplied with 1.
References:
Definition at line 81 of file AbstractCodonDistanceSubstitutionModel.h.
AbstractCodonDistanceSubstitutionModel::AbstractCodonDistanceSubstitutionModel | ( | const AlphabetIndex2 * | pdist, |
const std::string & | prefix, | ||
bool | paramSynRate = false |
||
) |
Build a new AbstractCodonDistanceSubstitutionModel object from a pointer to NucleotideSubstitutionModel.
pdist | optional pointer to a distance between amino-acids |
prefix | the Namespace |
paramSynRate | is true iff synonymous rate is parametrised (default=false). |
Definition at line 48 of file AbstractCodonDistanceSubstitutionModel.cpp.
References pdistance_.
|
inline |
Definition at line 106 of file AbstractCodonDistanceSubstitutionModel.h.
|
inlinevirtual |
Definition at line 125 of file AbstractCodonDistanceSubstitutionModel.h.
|
pure virtualinherited |
Implemented in bpp::AbstractSubstitutionModel, bpp::AbstractBiblioSubstitutionModel, bpp::G2001, and bpp::TS98.
Referenced by bpp::AbstractBiblioSubstitutionModel::addRateParameter().
|
pure virtualinherited |
Implements bpp::SubstitutionModel.
Implemented in bpp::AbstractCodonSubstitutionModel, bpp::CodonDistanceFrequenciesSubstitutionModel, bpp::CodonDistancePhaseFrequenciesSubstitutionModel, bpp::CodonDistanceFitnessPhaseFrequenciesSubstitutionModel, bpp::CodonRateFrequenciesSubstitutionModel, bpp::CodonDistanceSubstitutionModel, bpp::YN98, and bpp::CodonRateSubstitutionModel.
Referenced by bpp::AbstractCodonPhaseFrequenciesSubstitutionModel::AbstractCodonPhaseFrequenciesSubstitutionModel().
|
pure virtualinherited |
Implemented in bpp::AbstractSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, bpp::F84, bpp::HKY85, bpp::JCprot, bpp::T92, bpp::K80, bpp::RN95, bpp::TN93, bpp::RE08, bpp::JCnuc, bpp::RN95s, bpp::BinarySubstitutionModel, and bpp::AbstractBiblioSubstitutionModel.
Referenced by bpp::AbstractBiblioSubstitutionModel::d2Pij_dt2().
|
pure virtualinherited |
Implemented in bpp::AbstractSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, bpp::F84, bpp::HKY85, bpp::JCprot, bpp::T92, bpp::K80, bpp::RN95, bpp::TN93, bpp::RE08, bpp::JCnuc, bpp::RN95s, bpp::BinarySubstitutionModel, and bpp::AbstractBiblioSubstitutionModel.
Referenced by bpp::AbstractBiblioSubstitutionModel::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::AbstractBiblioSubstitutionModel::enableEigenDecomposition(), and bpp::YpR::YpR().
|
pure virtualinherited |
Tell if eigenValues and Vectors must be computed.
Implemented in bpp::AbstractSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, and bpp::AbstractBiblioSubstitutionModel.
void AbstractCodonDistanceSubstitutionModel::fireParameterChanged | ( | const ParameterList & | parameters | ) |
Definition at line 68 of file AbstractCodonDistanceSubstitutionModel.cpp.
References alpha_, beta_, gamma_, and pdistance_.
Referenced by bpp::CodonDistanceSubstitutionModel::fireParameterChanged(), bpp::CodonDistanceFitnessPhaseFrequenciesSubstitutionModel::fireParameterChanged(), bpp::CodonDistancePhaseFrequenciesSubstitutionModel::fireParameterChanged(), and bpp::CodonDistanceFrequenciesSubstitutionModel::fireParameterChanged().
|
pure virtualinherited |
Implemented in bpp::AbstractSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, and bpp::AbstractBiblioSubstitutionModel.
Referenced by bpp::TwoTreeLikelihood::computeTreeD2Likelihood(), bpp::TwoTreeLikelihood::computeTreeDLikelihood(), and bpp::AbstractBiblioSubstitutionModel::freq().
|
pure virtualinherited |
Implemented in bpp::AbstractSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, and bpp::AbstractBiblioSubstitutionModel.
Referenced by bpp::AAExteriorSubstitutionRegister::AAExteriorSubstitutionRegister(), bpp::AAInteriorSubstitutionRegister::AAInteriorSubstitutionRegister(), bpp::SubstitutionModelSet::addModel(), bpp::DecompositionReward::alphabetIndexHasChanged(), bpp::ComprehensiveSubstitutionRegister::ComprehensiveSubstitutionRegister(), bpp::DecompositionReward::DecompositionReward(), bpp::DecompositionSubstitutionCount::DecompositionSubstitutionCount(), bpp::AbstractMutationProcess::detailedEvolve(), bpp::LaplaceSubstitutionCount::getAllNumbersOfSubstitutions(), bpp::AbstractSubstitutionRegister::getAlphabet(), bpp::AbstractBiblioSubstitutionModel::getAlphabet(), bpp::MarkovModulatedSubstitutionModel::getAlphabet(), bpp::SubstitutionMappingTools::getNormalizationsPerBranch(), bpp::DnDsSubstitutionRegister::getType(), bpp::SelectedSubstitutionRegister::SelectedSubstitutionRegister(), bpp::CategorySubstitutionRegister::setCategories(), bpp::LaplaceSubstitutionCount::setSubstitutionModel(), bpp::UniformizationSubstitutionCount::setSubstitutionModel(), bpp::DecompositionSubstitutionCount::setSubstitutionModel(), bpp::DecompositionReward::setSubstitutionModel(), bpp::UniformizationSubstitutionCount::substitutionRegisterHasChanged(), bpp::DecompositionSubstitutionCount::substitutionRegisterHasChanged(), bpp::UniformizationSubstitutionCount::UniformizationSubstitutionCount(), bpp::YpR::updateMatrices(), and bpp::BppOSubstitutionModelFormat::writeMixed_().
|
pure virtualinherited |
index | The model state. |
Implemented in bpp::AbstractSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, and bpp::AbstractBiblioSubstitutionModel.
Referenced by bpp::AbstractBiblioSubstitutionModel::getAlphabetStateAsChar(), bpp::TwoTreeLikelihood::getAlphabetStateAsChar(), bpp::AbstractHomogeneousTreeLikelihood::getAlphabetStateAsChar(), and bpp::SubstitutionModelSet::getAlphabetStateAsChar().
|
pure virtualinherited |
index | The model state. |
Implemented in bpp::AbstractSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, and bpp::AbstractBiblioSubstitutionModel.
Referenced by bpp::AbstractBiblioSubstitutionModel::getAlphabetStateAsInt(), bpp::TwoTreeLikelihood::getAlphabetStateAsInt(), bpp::AbstractHomogeneousTreeLikelihood::getAlphabetStateAsInt(), bpp::SubstitutionModelSet::getAlphabetStateAsInt(), bpp::MarginalAncestralStateReconstruction::getAncestralSequenceForNode(), bpp::CategorySubstitutionRegister::getCategory(), bpp::SiteSimulationResult::getSite(), bpp::CategorySubstitutionRegister::getType(), bpp::TsTvSubstitutionRegister::getType(), bpp::DnDsSubstitutionRegister::getType(), bpp::GCSynonymousSubstitutionRegister::getType(), and bpp::NonHomogeneousSequenceSimulator::multipleEvolve().
|
pure virtualinherited |
Implemented in bpp::AbstractSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, and bpp::AbstractBiblioSubstitutionModel.
Referenced by bpp::DecompositionReward::computeBMatrice_(), bpp::UniformizationSubstitutionCount::computeCounts_(), bpp::DecompositionSubstitutionCount::computeCounts_(), bpp::DecompositionSubstitutionCount::fillBMatrices_(), bpp::AbstractBiblioSubstitutionModel::getAlphabetStates(), bpp::TwoTreeLikelihood::getAlphabetStates(), bpp::AbstractHomogeneousTreeLikelihood::getAlphabetStates(), bpp::SubstitutionModelSet::getAlphabetStates(), bpp::SubstitutionMappingTools::getNormalizationsPerBranch(), bpp::CategorySubstitutionRegister::setCategories(), bpp::NaiveSubstitutionCount::setSubstitutionModel(), and bpp::LabelSubstitutionCount::setSubstitutionModel().
|
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::CodonDistanceFrequenciesSubstitutionModel, bpp::CodonDistancePhaseFrequenciesSubstitutionModel, bpp::CodonDistanceFitnessPhaseFrequenciesSubstitutionModel, and bpp::CodonDistanceSubstitutionModel.
Definition at line 78 of file AbstractCodonDistanceSubstitutionModel.cpp.
References alpha_, beta_, gamma_, bpp::CodonSubstitutionModel::getGeneticCode(), and pdistance_.
Referenced by bpp::CodonDistanceSubstitutionModel::getCodonsMulRate(), bpp::CodonDistanceFitnessPhaseFrequenciesSubstitutionModel::getCodonsMulRate(), bpp::CodonDistancePhaseFrequenciesSubstitutionModel::getCodonsMulRate(), and bpp::CodonDistanceFrequenciesSubstitutionModel::getCodonsMulRate().
|
pure virtualinherited |
Implemented in bpp::AbstractSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, and bpp::AbstractBiblioSubstitutionModel.
Referenced by bpp::DecompositionSubstitutionCount::computeEigen_(), bpp::DecompositionReward::computeEigen_(), bpp::AbstractBiblioSubstitutionModel::getColumnRightEigenVectors(), and bpp::MarkovModulatedSubstitutionModel::updateMatrices().
|
pure virtualinherited |
Implemented in bpp::AbstractSubstitutionModel, bpp::AbstractMixedSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, bpp::F84, bpp::HKY85, bpp::JCprot, bpp::T92, bpp::K80, bpp::RN95, bpp::TN93, bpp::RE08, bpp::JCnuc, bpp::RN95s, bpp::BinarySubstitutionModel, bpp::AbstractBiblioSubstitutionModel, and bpp::WordSubstitutionModel.
Referenced by bpp::AbstractHomogeneousTreeLikelihood::computeTransitionProbabilitiesForNode(), bpp::AbstractNonHomogeneousTreeLikelihood::computeTransitionProbabilitiesForNode(), bpp::TwoTreeLikelihood::fireParameterChanged(), and bpp::AbstractBiblioSubstitutionModel::getd2Pij_dt2().
|
pure virtualinherited |
Implemented in bpp::AbstractSubstitutionModel, bpp::AbstractMixedSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, bpp::F84, bpp::HKY85, bpp::JCprot, bpp::T92, bpp::K80, bpp::RN95, bpp::TN93, bpp::RE08, bpp::JCnuc, bpp::RN95s, bpp::BinarySubstitutionModel, bpp::AbstractBiblioSubstitutionModel, and bpp::WordSubstitutionModel.
Referenced by bpp::AbstractHomogeneousTreeLikelihood::computeTransitionProbabilitiesForNode(), bpp::AbstractNonHomogeneousTreeLikelihood::computeTransitionProbabilitiesForNode(), bpp::TwoTreeLikelihood::fireParameterChanged(), and bpp::AbstractBiblioSubstitutionModel::getdPij_dt().
|
pure virtualinherited |
Implemented in bpp::AbstractSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, and bpp::AbstractBiblioSubstitutionModel.
Referenced by bpp::DecompositionSubstitutionCount::computeEigen_(), bpp::DecompositionReward::computeEigen_(), bpp::AbstractBiblioSubstitutionModel::getEigenValues(), and bpp::MarkovModulatedSubstitutionModel::updateMatrices().
|
pure virtualinherited |
Implemented in bpp::AbstractSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, and bpp::AbstractBiblioSubstitutionModel.
Referenced by bpp::Coala::Coala(), bpp::AbstractBiblioSubstitutionModel::getExchangeabilityMatrix(), 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(), and bpp::MarkovModulatedSubstitutionModel::updateMatrices().
|
inlinevirtualinherited |
If the model owns a FrequenciesSet, returns a pointer to it, otherwise return 0.
Reimplemented in bpp::JCprot, bpp::AbstractBiblioSubstitutionModel, bpp::UserProteinSubstitutionModel, bpp::WAG01, bpp::DSO78, bpp::JTT92, bpp::LG08, bpp::YNGKP_M1, bpp::YNGKP_M8, bpp::YNGKP_M7, bpp::AbstractCodonPhaseFrequenciesSubstitutionModel, bpp::YNGKP_M3, bpp::YNGKP_M2, and bpp::AbstractCodonFrequenciesSubstitutionModel.
Definition at line 479 of file SubstitutionModel.h.
Referenced by bpp::AbstractBiblioSubstitutionModel::getFrequenciesSet(), and bpp::BppOSubstitutionModelFormat::write().
|
pure virtualinherited |
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(), and bpp::MarkovModulatedSubstitutionModel::updateMatrices().
|
pure virtualinherited |
|
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 state in the alphabet.
code | The alphabet state to check. |
Implemented in bpp::AbstractSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, and bpp::AbstractBiblioSubstitutionModel.
Referenced by bpp::AbstractBiblioSubstitutionModel::getModelStates(), bpp::SubstitutionModelSet::getModelStates(), and bpp::MarginalAncestralStateReconstruction::recursiveMarginalAncestralStates().
|
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::AbstractSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, and bpp::AbstractBiblioSubstitutionModel.
|
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::GTR, bpp::TN93, bpp::RE08, bpp::MixtureOfSubstitutionModels, bpp::JCnuc, bpp::RN95s, bpp::CodonDistanceFrequenciesSubstitutionModel, bpp::BinarySubstitutionModel, bpp::CodonDistancePhaseFrequenciesSubstitutionModel, bpp::UserProteinSubstitutionModel, bpp::CodonDistanceFitnessPhaseFrequenciesSubstitutionModel, bpp::MixtureOfASubstitutionModel, bpp::LLG08_EX3, bpp::WordSubstitutionModel, bpp::LLG08_EHO, bpp::LLG08_UL3, bpp::WAG01, bpp::SSR, bpp::LG10_EX_EHO, bpp::CodonDistanceSubstitutionModel, bpp::L95, bpp::LGL08_CAT, bpp::LLG08_EX2, bpp::LLG08_UL2, bpp::DSO78, bpp::JTT92, bpp::CodonRateFrequenciesSubstitutionModel, bpp::LG08, bpp::YNGKP_M1, bpp::G2001, bpp::gBGC, bpp::YNGKP_M8, bpp::GY94, bpp::YNGKP_M7, bpp::YN98, bpp::YNGKP_M3, bpp::TS98, bpp::TripletSubstitutionModel, bpp::YNGKP_M2, bpp::MG94, bpp::CodonRateSubstitutionModel, bpp::Coala, bpp::LLG08_EX3::EmbeddedModel, bpp::LLG08_EHO::EmbeddedModel, bpp::LLG08_UL3::EmbeddedModel, bpp::LG10_EX_EHO::EmbeddedModel, bpp::LGL08_CAT::EmbeddedModel, bpp::LLG08_EX2::EmbeddedModel, and bpp::LLG08_UL2::EmbeddedModel.
Referenced by bpp::AbstractCodonFitnessSubstitutionModel::AbstractCodonFitnessSubstitutionModel(), bpp::AbstractSubstitutionModel::fireParameterChanged(), bpp::MixtureOfSubstitutionModels::getSubmodelNumbers(), bpp::BppOSubstitutionModelFormat::readMixed_(), 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::SubstitutionModelSet::addModel(), bpp::OneJumpSubstitutionCount::getAllNumbersOfSubstitutions(), bpp::TwoTreeLikelihood::getNumberOfStates(), bpp::AbstractBiblioSubstitutionModel::getNumberOfStates(), bpp::AbstractHomogeneousTreeLikelihood::getNumberOfStates(), bpp::BranchLikelihood::initModel(), bpp::RE08::RE08(), bpp::SimpleMutationProcess::SimpleMutationProcess(), and bpp::MarkovModulatedSubstitutionModel::updateMatrices().
|
pure virtualinherited |
Implemented in bpp::AbstractSubstitutionModel, bpp::AbstractMixedSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, bpp::F84, bpp::HKY85, bpp::JCprot, bpp::T92, bpp::K80, bpp::RN95, bpp::TN93, bpp::RE08, bpp::JCnuc, bpp::RN95s, bpp::BinarySubstitutionModel, bpp::AbstractBiblioSubstitutionModel, and bpp::WordSubstitutionModel.
Referenced by bpp::LaplaceSubstitutionCount::computeCounts(), bpp::UniformizationSubstitutionCount::computeCounts_(), bpp::DecompositionSubstitutionCount::computeCounts_(), bpp::DecompositionReward::computeRewards_(), bpp::AbstractHomogeneousTreeLikelihood::computeTransitionProbabilitiesForNode(), bpp::AbstractNonHomogeneousTreeLikelihood::computeTransitionProbabilitiesForNode(), bpp::NonHomogeneousSequenceSimulator::evolve(), bpp::TwoTreeLikelihood::fireParameterChanged(), bpp::OneJumpSubstitutionCount::getAllNumbersOfSubstitutions(), and bpp::AbstractBiblioSubstitutionModel::getPij_t().
|
pure virtualinherited |
Get the rate.
Implemented in bpp::AbstractSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, bpp::AbstractBiblioSubstitutionModel, bpp::G2001, 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_(), bpp::DecompositionReward::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::getStateMap(), bpp::SubstitutionModelSet::getStateMap(), and bpp::NonHomogeneousSequenceSimulator::NonHomogeneousSequenceSimulator().
|
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 114 of file AbstractCodonDistanceSubstitutionModel.h.
References alpha_, beta_, gamma_, and pdistance_.
|
pure virtualinherited |
Implemented in bpp::AbstractSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, bpp::F84, bpp::HKY85, bpp::JCprot, bpp::T92, bpp::K80, bpp::RN95, bpp::TN93, bpp::RE08, bpp::JCnuc, bpp::RN95s, bpp::BinarySubstitutionModel, and bpp::AbstractBiblioSubstitutionModel.
Referenced by bpp::NonHomogeneousSequenceSimulator::evolve(), bpp::SimpleMutationProcess::evolve(), bpp::OneJumpSubstitutionCount::getNumberOfSubstitutions(), and bpp::AbstractBiblioSubstitutionModel::Pij_t().
|
pure virtualinherited |
Implemented in bpp::AbstractSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, bpp::AbstractMixedSubstitutionModel, and bpp::AbstractBiblioSubstitutionModel.
Referenced by bpp::UniformizationSubstitutionCount::fillBMatrices_(), bpp::DecompositionSubstitutionCount::fillBMatrices_(), bpp::SubstitutionMappingTools::getNormalizationsPerBranch(), bpp::AbstractMutationProcess::getTimeBeforeNextMutationEvent(), bpp::AbstractBiblioSubstitutionModel::Qij(), bpp::UniformizationSubstitutionCount::setSubstitutionModel(), bpp::SimpleMutationProcess::SimpleMutationProcess(), bpp::UniformizationSubstitutionCount::UniformizationSubstitutionCount(), and bpp::YpR::updateMatrices().
|
inlinevirtualinherited |
Set equilibrium frequencies.
frequencies | The map of the frequencies to use. |
Reimplemented in bpp::AbstractSubstitutionModel, bpp::F84, bpp::HKY85, bpp::T92, bpp::MixtureOfSubstitutionModels, bpp::AbstractWordSubstitutionModel, bpp::GTR, bpp::RN95, bpp::TN93, bpp::RN95s, bpp::CodonDistanceFrequenciesSubstitutionModel, bpp::AbstractBiblioSubstitutionModel, bpp::MixtureOfASubstitutionModel, bpp::CodonDistanceFitnessPhaseFrequenciesSubstitutionModel, bpp::BinarySubstitutionModel, bpp::CodonDistancePhaseFrequenciesSubstitutionModel, bpp::SSR, bpp::L95, bpp::CodonRateFrequenciesSubstitutionModel, bpp::AbstractCodonPhaseFrequenciesSubstitutionModel, bpp::AbstractCodonFrequenciesSubstitutionModel, and bpp::AbstractCodonFitnessSubstitutionModel.
Definition at line 473 of file SubstitutionModel.h.
Referenced by bpp::AbstractBiblioSubstitutionModel::setFreq().
|
pure virtualinherited |
Set equilibrium frequencies equal to the frequencies estimated from the data.
data | The sequences to use. |
pseudoCount | A quantity ![]()
|
Implemented in bpp::AbstractSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, bpp::JCprot, bpp::K80, bpp::RE08, bpp::JCnuc, bpp::UserProteinSubstitutionModel, bpp::AbstractBiblioSubstitutionModel, bpp::WAG01, bpp::DSO78, bpp::JTT92, bpp::LG08, and bpp::Coala.
Referenced by bpp::BppOSubstitutionModelFormat::read(), bpp::AbstractBiblioSubstitutionModel::setFreqFromData(), and bpp::MarkovModulatedSubstitutionModel::setFreqFromData().
|
pure virtualinherited |
Set the rate of the model (must be positive).
rate | must be positive. |
Implemented in bpp::AbstractSubstitutionModel, bpp::MarkovModulatedSubstitutionModel, bpp::AbstractBiblioSubstitutionModel, bpp::AbstractMixedSubstitutionModel, bpp::G2001, and bpp::TS98.
Referenced by bpp::AbstractBiblioSubstitutionModel::setRate(), and bpp::MarkovModulatedSubstitutionModel::setRate().
|
pure virtualinherited |
Multiplies the current generator by the given scale.
scale | the scale by which the generator is multiplied. |
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 88 of file AbstractCodonDistanceSubstitutionModel.h.
Referenced by fireParameterChanged(), getCodonsMulRate(), and operator=().
|
private |
Definition at line 88 of file AbstractCodonDistanceSubstitutionModel.h.
Referenced by fireParameterChanged(), getCodonsMulRate(), and operator=().
|
private |
Definition at line 90 of file AbstractCodonDistanceSubstitutionModel.h.
Referenced by fireParameterChanged(), getCodonsMulRate(), and operator=().
|
private |
Definition at line 86 of file AbstractCodonDistanceSubstitutionModel.h.
Referenced by AbstractCodonDistanceSubstitutionModel(), fireParameterChanged(), getCodonsMulRate(), and operator=().