bpp-phyl3
3.0.0
|
#include <Bpp/Phyl/Mapping/SubstitutionRegister.h>
Public Member Functions | |
AbstractSubstitutionRegister (std::shared_ptr< const StateMapInterface > stateMap, const std::string &name) | |
AbstractSubstitutionRegister (const AbstractSubstitutionRegister &asr) | |
AbstractSubstitutionRegister & | operator= (const AbstractSubstitutionRegister &asr) |
virtual | ~AbstractSubstitutionRegister () |
const StateMapInterface & | stateMap () const override |
std::shared_ptr< const StateMapInterface > | getStateMap () const override |
const Alphabet & | alphabet () const override |
std::shared_ptr< const Alphabet > | getAlphabet () const override |
const std::string & | getName () const override |
Get the name of the register. More... | |
virtual SubstitutionRegisterInterface * | clone () const =0 |
virtual size_t | getNumberOfSubstitutionTypes () const =0 |
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... | |
Protected Attributes | |
std::shared_ptr< const StateMapInterface > | stateMap_ |
std::string | name_ |
Definition at line 103 of file SubstitutionRegister.h.
|
inline |
Definition at line 111 of file SubstitutionRegister.h.
|
inline |
Definition at line 115 of file SubstitutionRegister.h.
|
inlinevirtual |
Definition at line 126 of file SubstitutionRegister.h.
|
inlineoverridevirtual |
Implements bpp::SubstitutionRegisterInterface.
Definition at line 133 of file SubstitutionRegister.h.
References stateMap_.
|
pure virtualinherited |
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.
|
inlineoverridevirtual |
Implements bpp::SubstitutionRegisterInterface.
Definition at line 135 of file SubstitutionRegister.h.
References stateMap_.
|
inlineoverridevirtual |
Get the name of the register.
Implements bpp::SubstitutionRegisterInterface.
Definition at line 137 of file SubstitutionRegister.h.
References name_.
|
pure virtualinherited |
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().
|
inlineoverridevirtual |
Implements bpp::SubstitutionRegisterInterface.
Definition at line 131 of file SubstitutionRegister.h.
References stateMap_.
|
pure virtualinherited |
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 virtualinherited |
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().
|
inline |
Definition at line 119 of file SubstitutionRegister.h.
References name_, and stateMap_.
Referenced by bpp::CompleteSubstitutionRegister::operator=(), bpp::DnDsSubstitutionRegister::operator=(), bpp::GCPositionSubstitutionRegister::operator=(), bpp::GCSynonymousSubstitutionRegister::operator=(), bpp::GeneralSubstitutionRegister::operator=(), bpp::KrKcSubstitutionRegister::operator=(), bpp::SWSubstitutionRegister::operator=(), and bpp::TsTvSubstitutionRegister::operator=().
|
inlineoverridevirtual |
Implements bpp::SubstitutionRegisterInterface.
Definition at line 129 of file SubstitutionRegister.h.
References stateMap_.
Referenced by bpp::VectorOfSubstitutionRegisters::addRegister(), bpp::ComprehensiveSubstitutionRegister::ComprehensiveSubstitutionRegister(), bpp::GCSynonymousSubstitutionRegister::getType(), bpp::GCPositionSubstitutionRegister::getType(), bpp::TsTvSubstitutionRegister::getType(), bpp::SWSubstitutionRegister::getType(), bpp::DnDsSubstitutionRegister::getType(), bpp::KrKcSubstitutionRegister::getType(), bpp::SelectedSubstitutionRegister::SelectedSubstitutionRegister(), bpp::CategorySubstitutionRegister::setAlphabetCategories(), bpp::CategorySubstitutionRegister::setModelCategories(), bpp::AAInteriorSubstitutionRegister::updateMatrix_(), and bpp::AAExteriorSubstitutionRegister::updateMatrix_().
|
protected |
Definition at line 108 of file SubstitutionRegister.h.
Referenced by getName(), and operator=().
|
protected |
Definition at line 107 of file SubstitutionRegister.h.
Referenced by alphabet(), getAlphabet(), getStateMap(), operator=(), and stateMap().