bpp-phyl
2.2.0
|
The SubstitutionRegister interface. More...
#include <Bpp/Phyl/Mapping/SubstitutionRegister.h>
Public Member Functions | |
SubstitutionRegister () | |
virtual | ~SubstitutionRegister () |
virtual SubstitutionRegister * | clone () const =0 |
virtual const Alphabet * | getAlphabet () const =0 |
virtual const SubstitutionModel * | getSubstitutionModel () 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... | |
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 model.
Definition at line 72 of file SubstitutionRegister.h.
|
inline |
Definition at line 76 of file SubstitutionRegister.h.
|
inlinevirtual |
Definition at line 77 of file SubstitutionRegister.h.
|
pure virtual |
Implemented in bpp::GCSynonymousSubstitutionRegister, bpp::DnDsSubstitutionRegister, bpp::TsTvSubstitutionRegister, bpp::GCSubstitutionRegister, bpp::AAExteriorSubstitutionRegister, bpp::AAInteriorSubstitutionRegister, bpp::SelectedSubstitutionRegister, bpp::GeneralSubstitutionRegister, bpp::ComprehensiveSubstitutionRegister, bpp::CompleteSubstitutionRegister, and bpp::TotalSubstitutionRegister.
Referenced by bpp::SubstitutionMappingTools::getCountsPerBranch(), bpp::CompleteSubstitutionRegister::operator=(), bpp::SubstitutionMappingTools::outputIndividualCountsPerBranchPerSite(), and bpp::SubstitutionMappingTools::outputTotalCountsPerBranchPerSite().
|
pure virtual |
Implemented in bpp::AbstractSubstitutionRegister.
Referenced by bpp::CompleteSubstitutionRegister::CompleteSubstitutionRegister(), bpp::DecompositionSubstitutionCount::DecompositionSubstitutionCount(), bpp::SubstitutionCount::getAlphabet(), bpp::SubstitutionCount::getNumberOfStates(), and bpp::UniformizationSubstitutionCount::UniformizationSubstitutionCount().
|
pure virtual |
Implemented in bpp::GCSynonymousSubstitutionRegister, bpp::DnDsSubstitutionRegister, bpp::TsTvSubstitutionRegister, bpp::GeneralSubstitutionRegister, bpp::CompleteSubstitutionRegister, bpp::TotalSubstitutionRegister, and bpp::CategorySubstitutionRegister.
Referenced by bpp::MutationPath::getEventCounts(), bpp::SubstitutionMappingTools::getNormalizationsPerBranch(), bpp::SubstitutionCount::getNumberOfSubstitutionTypes(), bpp::CompleteSubstitutionRegister::getNumberOfSubstitutionTypes(), bpp::SiteSimulationResult::getSubstitutionVector(), and bpp::SubstitutionMappingTools::outputIndividualCountsPerBranchPerSite().
|
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::GCSynonymousSubstitutionRegister, bpp::DnDsSubstitutionRegister, bpp::TsTvSubstitutionRegister, bpp::GeneralSubstitutionRegister, bpp::CompleteSubstitutionRegister, bpp::TotalSubstitutionRegister, and bpp::CategorySubstitutionRegister.
Referenced by bpp::CompleteSubstitutionRegister::CompleteSubstitutionRegister(), bpp::MutationPath::getEventCounts(), bpp::SubstitutionMappingTools::getNormalizationsPerBranch(), and bpp::CompleteSubstitutionRegister::getType().
|
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::GCSynonymousSubstitutionRegister, bpp::DnDsSubstitutionRegister, bpp::TsTvSubstitutionRegister, bpp::AAExteriorSubstitutionRegister, bpp::AAInteriorSubstitutionRegister, bpp::SelectedSubstitutionRegister, bpp::GeneralSubstitutionRegister, bpp::CompleteSubstitutionRegister, bpp::TotalSubstitutionRegister, and bpp::CategorySubstitutionRegister.
Referenced by bpp::SubstitutionMappingTools::getNormalizationsPerBranch(), and bpp::CompleteSubstitutionRegister::getTypeName().