|
bpp-phyl3 3.0.0
|
Parametrize a set of state frequencies for codons. More...
#include <Bpp/Phyl/Model/FrequencySet/CodonFrequencySet.h>
Inheritance diagram for bpp::CodonFrequencySetInterface:
Collaboration diagram for bpp::CodonFrequencySetInterface:Public Member Functions | |
| CodonFrequencySetInterface * | clone () const override=0 |
| virtual std::shared_ptr< const CodonAlphabet > | getCodonAlphabet () const =0 |
| virtual std::shared_ptr< const GeneticCode > | getGeneticCode () const =0 |
| virtual std::shared_ptr< const Alphabet > | getAlphabet () const =0 |
| virtual const Alphabet & | alphabet () const =0 |
| virtual const StateMapInterface & | stateMap () const =0 |
| virtual std::shared_ptr< const StateMapInterface > | getStateMap () const =0 |
| virtual const Vdouble & | getFrequencies () const =0 |
| virtual const std::map< int, double > | getAlphabetStatesFrequencies () const =0 |
| virtual void | setFrequencies (const std::vector< double > &frequencies)=0 |
| Set the parameters in order to match a given set of frequencies. More... | |
| virtual void | setFrequenciesFromAlphabetStatesFrequencies (const std::map< int, double > &frequencies)=0 |
| Set the Frequencies from the one of the map which keys match with a letter of the Alphabet. The frequencies are normalized so that the matching values sum 1. More... | |
| virtual std::string | getName () const =0 |
| virtual size_t | getNumberOfFrequencies () const =0 |
| virtual size_t | getNumberOfIndependentParameters () const=0 |
| virtual void | aliasParameters (const std::string &p1, const std::string &p2)=0 |
| virtual void | aliasParameters (std::map< std::string, std::string > &unparsedParams, bool verbose)=0 |
| virtual void | unaliasParameters (const std::string &p1, const std::string &p2)=0 |
| virtual const ParameterList & | getIndependentParameters () const=0 |
| virtual std::vector< std::string > | getAlias (const std::string &name) const=0 |
| virtual std::map< std::string, std::string > | getAliases () const=0 |
| virtual bool | hasParameter (const std::string &name) const=0 |
| virtual const ParameterList & | getParameters () const=0 |
| virtual const Parameter & | parameter (const std::string &name) const=0 |
| virtual double | getParameterValue (const std::string &name) const=0 |
| virtual void | setAllParametersValues (const ParameterList ¶meters)=0 |
| virtual void | setParameterValue (const std::string &name, double value)=0 |
| virtual void | setParametersValues (const ParameterList ¶meters)=0 |
| virtual bool | matchParametersValues (const ParameterList ¶meters)=0 |
| virtual void | removeConstraint (const std::string &name)=0 |
| virtual void | setConstraint (const std::string &name, std::shared_ptr< ConstraintInterface > constraint)=0 |
| virtual size_t | getNumberOfParameters () const=0 |
| virtual void | setNamespace (const std::string &prefix)=0 |
| virtual std::string | getNamespace () const=0 |
| virtual std::string | getParameterNameWithoutNamespace (const std::string &name) const=0 |
Static Public Member Functions | |
| static std::unique_ptr< CodonFrequencySetInterface > | getFrequencySetForCodons (short option, std::shared_ptr< const GeneticCode > gCode, const std::string &mgmtStopCodon="quadratic", unsigned short method=1) |
| A helper function that provide frequencies set for codon models according to PAML option. More... | |
Static Public Attributes | |
| static const short | F0 = 0 |
| static const short | F1X4 = 1 |
| static const short | F3X4 = 2 |
| static const short | F61 = 3 |
| static std::shared_ptr< IntervalConstraint > | FREQUENCE_CONSTRAINT_SMALL |
| static std::shared_ptr< IntervalConstraint > | FREQUENCE_CONSTRAINT_MILLI |
| static std::shared_ptr< IntervalConstraint > | FREQUENCE_CONSTRAINT_CENTI |
Protected Member Functions | |
| virtual ParameterList & | getParameters_ ()=0 |
Parametrize a set of state frequencies for codons.
Definition at line 21 of file CodonFrequencySet.h.
|
pure virtualinherited |
Implemented in bpp::AbstractFrequencySet.
|
overridepure virtual |
|
pure virtualinherited |
Implemented in bpp::AbstractFrequencySet.
Referenced by bpp::UserCodonFrequencySet::getCodonAlphabet(), bpp::FixedNucleotideFrequencySet::getNucleicAlphabet(), bpp::UserNucleotideFrequencySet::getNucleicAlphabet(), bpp::FullProteinFrequencySet::getProteicAlphabet(), bpp::FixedProteinFrequencySet::getProteicAlphabet(), and bpp::UserProteinFrequencySet::getProteicAlphabet().
|
pure virtualinherited |
Implemented in bpp::AbstractFrequencySet.
|
pure virtual |
|
pure virtualinherited |
Implemented in bpp::AbstractFrequencySet.
Referenced by bpp::CodonDistanceFrequenciesSubstitutionModel::fireParameterChanged(), bpp::CodonDistancePhaseFrequenciesSubstitutionModel::fireParameterChanged(), bpp::AbstractCodonPhaseFrequenciesSubstitutionModel::getCodonsMulRate(), bpp::NonHomogeneousSubstitutionProcess::getRootFrequencies(), bpp::SubstitutionProcessCollectionMember::getRootFrequencies(), bpp::CodonDistanceFrequenciesSubstitutionModel::setFreq(), bpp::CodonDistancePhaseFrequenciesSubstitutionModel::setFreq(), bpp::DFPDistanceFrequenciesSubstitutionModel::setFreq(), and bpp::BppOFrequencySetFormat::writeFrequencySet().
|
static |
A helper function that provide frequencies set for codon models according to PAML option.
| option | A code describing the option, one of F61, F1X4 or F3X4. |
| gCode | The genetic code to use. The underlying codon alphabet object will be passed to the FrequencySet instance. |
| mgmtStopCodon | the optional way the frequencies assigned to the stop codons are redistributed to the other codons, with F1X4 and F3X4 options. The available values are:
|
| method | The parametrization used for F61. Default method is 1 (ie global ratio). |
Definition at line 641 of file CodonFrequencySet.cpp.
References F0, F1X4, F3X4, and F61.
Referenced by bpp::BppOFrequencySetFormat::readFrequencySet().
|
pure virtual |
Implemented in bpp::FullCodonFrequencySet, bpp::FixedCodonFrequencySet, bpp::UserCodonFrequencySet, bpp::FullPerAACodonFrequencySet, bpp::CodonFromIndependentFrequencySet, and bpp::CodonFromUniqueFrequencySet.
|
pure virtualinherited |
Implemented in bpp::AbstractFrequencySet.
Referenced by bpp::BppOFrequencySetFormat::writeFrequencySet().
|
pure virtualinherited |
Implemented in bpp::AbstractFrequencySet.
|
pure virtualinherited |
Implemented in bpp::AbstractFrequencySet.
|
pure virtualinherited |
Set the parameters in order to match a given set of frequencies.
| frequencies | The set of frequencies to match. |
| DimensionException | If the number of frequencies does not match the size of the alphabet. |
| Exception | If the frequencies do not sum to 1. |
Implemented in bpp::FullCodonFrequencySet, bpp::FixedCodonFrequencySet, bpp::UserCodonFrequencySet, bpp::FullPerAACodonFrequencySet, bpp::FullFrequencySet, bpp::FromModelFrequencySet, bpp::MarkovModulatedFrequencySet, bpp::FixedFrequencySet, bpp::UserFrequencySet, bpp::MvaFrequencySet, bpp::GCFrequencySet, bpp::FullNucleotideFrequencySet, bpp::WordFromIndependentFrequencySet, and bpp::WordFromUniqueFrequencySet.
Referenced by bpp::BppOFrequencySetFormat::initialize_(), and bpp::AbstractFrequencySet::setFrequenciesFromAlphabetStatesFrequencies().
|
pure virtualinherited |
Set the Frequencies from the one of the map which keys match with a letter of the Alphabet. The frequencies are normalized so that the matching values sum 1.
| frequencies | The set of frequencies to match. |
Implemented in bpp::AbstractFrequencySet.
Referenced by bpp::BppOFrequencySetFormat::initialize_().
|
pure virtualinherited |
Implemented in bpp::AbstractFrequencySet.
|
static |
Definition at line 62 of file CodonFrequencySet.h.
Referenced by getFrequencySetForCodons(), and bpp::BppOFrequencySetFormat::readFrequencySet().
|
static |
Definition at line 63 of file CodonFrequencySet.h.
Referenced by getFrequencySetForCodons(), and bpp::BppOFrequencySetFormat::readFrequencySet().
|
static |
Definition at line 64 of file CodonFrequencySet.h.
Referenced by getFrequencySetForCodons(), and bpp::BppOFrequencySetFormat::readFrequencySet().
|
static |
Definition at line 65 of file CodonFrequencySet.h.
Referenced by getFrequencySetForCodons(), and bpp::BppOFrequencySetFormat::readFrequencySet().
|
staticinherited |
Definition at line 92 of file FrequencySet.h.
Referenced by bpp::FullNucleotideFrequencySet::FullNucleotideFrequencySet().
|
staticinherited |
Definition at line 91 of file FrequencySet.h.
|
staticinherited |
Definition at line 90 of file FrequencySet.h.
Referenced by bpp::F81::F81(), bpp::F84::F84(), bpp::GTR::GTR(), bpp::HKY85::HKY85(), bpp::T92::T92(), and bpp::TN93::TN93().