bpp-phyl
2.2.0
|
#include <Bpp/Phyl/Mapping/SubstitutionRegister.h>
Public Member Functions | |
AbstractSubstitutionRegister (const SubstitutionModel *model) | |
AbstractSubstitutionRegister (const AbstractSubstitutionRegister &asr) | |
AbstractSubstitutionRegister & | operator= (const AbstractSubstitutionRegister &asr) |
virtual | ~AbstractSubstitutionRegister () |
const SubstitutionModel * | getSubstitutionModel () const |
const Alphabet * | getAlphabet () const |
virtual SubstitutionRegister * | 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 | |
const SubstitutionModel * | model_ |
Definition at line 121 of file SubstitutionRegister.h.
|
inline |
Definition at line 128 of file SubstitutionRegister.h.
|
inline |
Definition at line 132 of file SubstitutionRegister.h.
|
inlinevirtual |
Definition at line 142 of file SubstitutionRegister.h.
|
pure virtualinherited |
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().
|
inlinevirtual |
Implements bpp::SubstitutionRegister.
Definition at line 147 of file SubstitutionRegister.h.
References bpp::SubstitutionModel::getAlphabet(), and model_.
|
pure virtualinherited |
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().
|
inlinevirtual |
Implements bpp::SubstitutionRegister.
Definition at line 145 of file SubstitutionRegister.h.
References model_.
|
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::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 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::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().
|
inline |
Definition at line 136 of file SubstitutionRegister.h.
References model_.
Referenced by bpp::CompleteSubstitutionRegister::operator=(), bpp::GeneralSubstitutionRegister::operator=(), bpp::DnDsSubstitutionRegister::operator=(), and bpp::GCSynonymousSubstitutionRegister::operator=().
|
protected |
Definition at line 125 of file SubstitutionRegister.h.
Referenced by getAlphabet(), bpp::CategorySubstitutionRegister::getCategory(), getSubstitutionModel(), bpp::CategorySubstitutionRegister::getType(), bpp::TsTvSubstitutionRegister::getType(), bpp::DnDsSubstitutionRegister::getType(), bpp::GCSynonymousSubstitutionRegister::getType(), operator=(), bpp::SelectedSubstitutionRegister::SelectedSubstitutionRegister(), and bpp::CategorySubstitutionRegister::setCategories().