bpp-phyl3
3.0.0
|
The SubstitutionRegister interface. More...
#include <Bpp/Phyl/Mapping/SubstitutionRegister.h>
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::GeneralSubstitutionRegister, bpp::VectorOfSubstitutionRegisters, bpp::CompleteSubstitutionRegister, bpp::TotalSubstitutionRegister, bpp::KrKcSubstitutionRegister, bpp::DnDsSubstitutionRegister, bpp::SWSubstitutionRegister, bpp::TsTvSubstitutionRegister, bpp::AAExteriorSubstitutionRegister, bpp::AAInteriorSubstitutionRegister, bpp::SelectedSubstitutionRegister, bpp::GCPositionSubstitutionRegister, bpp::GCSynonymousSubstitutionRegister, bpp::GCSubstitutionRegister, and bpp::ComprehensiveSubstitutionRegister.
|
pure virtual |
Implemented in bpp::AbstractSubstitutionRegister.
|
pure virtual |
Get the name of the register.
Implemented in bpp::AbstractSubstitutionRegister.
|
pure virtual |
Implemented in bpp::GeneralSubstitutionRegister, bpp::VectorOfSubstitutionRegisters, bpp::CompleteSubstitutionRegister, bpp::TotalSubstitutionRegister, bpp::KrKcSubstitutionRegister, bpp::DnDsSubstitutionRegister, bpp::SWSubstitutionRegister, bpp::TsTvSubstitutionRegister, and bpp::CategorySubstitutionRegister.
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::GeneralSubstitutionRegister, bpp::VectorOfSubstitutionRegisters, bpp::CompleteSubstitutionRegister, bpp::TotalSubstitutionRegister, bpp::KrKcSubstitutionRegister, bpp::DnDsSubstitutionRegister, bpp::SWSubstitutionRegister, bpp::TsTvSubstitutionRegister, bpp::GCPositionSubstitutionRegister, bpp::GCSynonymousSubstitutionRegister, and bpp::CategorySubstitutionRegister.
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::GeneralSubstitutionRegister, bpp::VectorOfSubstitutionRegisters, bpp::CompleteSubstitutionRegister, bpp::TotalSubstitutionRegister, bpp::KrKcSubstitutionRegister, bpp::DnDsSubstitutionRegister, bpp::SWSubstitutionRegister, bpp::TsTvSubstitutionRegister, bpp::AAExteriorSubstitutionRegister, bpp::AAInteriorSubstitutionRegister, bpp::SelectedSubstitutionRegister, bpp::GCPositionSubstitutionRegister, bpp::GCSynonymousSubstitutionRegister, and bpp::CategorySubstitutionRegister.
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.