|
bpp-phyl3 3.0.0
|
The SubstitutionRegister interface. More...
#include <Bpp/Phyl/Mapping/SubstitutionRegister.h>
Inheritance diagram for bpp::SubstitutionRegisterInterface:
Collaboration diagram for bpp::SubstitutionRegisterInterface:Public Member Functions | |
| SubstitutionRegisterInterface () | |
| virtual | ~SubstitutionRegisterInterface () |
| virtual SubstitutionRegisterInterface * | clone () const =0 |
| virtual const Alphabet & | alphabet () const =0 |
| virtual std::shared_ptr< const Alphabet > | getAlphabet () const =0 |
| virtual const StateMapInterface & | stateMap () const =0 |
| virtual std::shared_ptr< const StateMapInterface > | getStateMap () const =0 |
| virtual size_t | getNumberOfSubstitutionTypes () const =0 |
| virtual const std::string & | getName () const =0 |
| Get the name of the register. More... | |
| virtual size_t | getType (size_t fromState, size_t toState) const =0 |
| Get the substitution type far a given pair of model states. More... | |
| virtual std::string | getTypeName (size_t type) const =0 |
| Get the name of a given substitution type. More... | |
The SubstitutionRegister interface.
Substitution registers are simple classes that define categories of substitutions, and assign an index to them. Substitution registers are defined according to a given substitution state map.
Definition at line 38 of file SubstitutionRegister.h.
|
inline |
Definition at line 42 of file SubstitutionRegister.h.
|
inlinevirtual |
Definition at line 43 of file SubstitutionRegister.h.
|
pure virtual |
Implemented in bpp::AbstractSubstitutionRegister.
|
pure virtual |
Implements bpp::Clonable.
Implemented in bpp::ComprehensiveSubstitutionRegister, bpp::GCSubstitutionRegister, bpp::GCSynonymousSubstitutionRegister, bpp::GCPositionSubstitutionRegister, bpp::SelectedSubstitutionRegister, bpp::AAInteriorSubstitutionRegister, bpp::AAExteriorSubstitutionRegister, bpp::TsTvSubstitutionRegister, bpp::SWSubstitutionRegister, bpp::DnDsSubstitutionRegister, bpp::KrKcSubstitutionRegister, bpp::TotalSubstitutionRegister, bpp::CompleteSubstitutionRegister, bpp::VectorOfSubstitutionRegisters, and bpp::GeneralSubstitutionRegister.
|
pure virtual |
Implemented in bpp::AbstractSubstitutionRegister.
|
pure virtual |
Get the name of the register.
Implemented in bpp::AbstractSubstitutionRegister.
|
pure virtual |
Implemented in bpp::CategorySubstitutionRegister, bpp::TsTvSubstitutionRegister, bpp::SWSubstitutionRegister, bpp::DnDsSubstitutionRegister, bpp::KrKcSubstitutionRegister, bpp::TotalSubstitutionRegister, bpp::CompleteSubstitutionRegister, bpp::VectorOfSubstitutionRegisters, and bpp::GeneralSubstitutionRegister.
Referenced by bpp::MutationPath::getEventCounts(), bpp::LegacySubstitutionMappingTools::getNormalizationsPerBranch(), bpp::SiteSimulationResult::getSubstitutionVector(), and bpp::OneChangeRegisterTransitionModel::OneChangeRegisterTransitionModel().
|
pure virtual |
Implemented in bpp::AbstractSubstitutionRegister.
|
pure virtual |
Get the substitution type far a given pair of model states.
| fromState | Initial state (should be a state supported by the specified alphabet). |
| toState | Final state (should be a state supported by the specified alphabet). |
Implemented in bpp::CategorySubstitutionRegister, bpp::GCSynonymousSubstitutionRegister, bpp::GCPositionSubstitutionRegister, bpp::TsTvSubstitutionRegister, bpp::SWSubstitutionRegister, bpp::DnDsSubstitutionRegister, bpp::KrKcSubstitutionRegister, bpp::TotalSubstitutionRegister, bpp::CompleteSubstitutionRegister, bpp::VectorOfSubstitutionRegisters, and bpp::GeneralSubstitutionRegister.
Referenced by bpp::MutationPath::getEventCounts(), bpp::LegacySubstitutionMappingTools::getNormalizationsPerBranch(), bpp::OneChangeRegisterTransitionModel::OneChangeRegisterTransitionModel(), and bpp::RegisterRatesSubstitutionModel::RegisterRatesSubstitutionModel().
|
pure virtual |
Get the name of a given substitution type.
This method is only used for user-friendlyness purposes, not computational goal. I can therefore be left unimplemented in some cases.
| type | Index of the substitution (should be an size_t contained in the register). |
Implemented in bpp::CategorySubstitutionRegister, bpp::GCSynonymousSubstitutionRegister, bpp::GCPositionSubstitutionRegister, bpp::SelectedSubstitutionRegister, bpp::AAInteriorSubstitutionRegister, bpp::AAExteriorSubstitutionRegister, bpp::TsTvSubstitutionRegister, bpp::SWSubstitutionRegister, bpp::DnDsSubstitutionRegister, bpp::KrKcSubstitutionRegister, bpp::TotalSubstitutionRegister, bpp::CompleteSubstitutionRegister, bpp::VectorOfSubstitutionRegisters, and bpp::GeneralSubstitutionRegister.
Referenced by bpp::LegacySubstitutionMappingTools::getNormalizationsPerBranch(), bpp::LegacySubstitutionMappingTools::outputPerSitePerBranchPerType(), bpp::SubstitutionMappingTools::outputPerSitePerBranchPerType(), bpp::SubstitutionMappingTools::outputPerSitePerType(), bpp::LegacySubstitutionMappingTools::outputPerSitePerType(), bpp::SubstitutionMappingTools::outputPerType(), and bpp::RegisterRatesSubstitutionModel::RegisterRatesSubstitutionModel().
|
pure virtual |
Implemented in bpp::AbstractSubstitutionRegister.