bpp-phyl3
3.0.0
|
Count conservative and radical amino-acid substitutions. More...
#include <Bpp/Phyl/Mapping/SubstitutionRegister.h>
Public Member Functions | |
KrKcSubstitutionRegister (std::shared_ptr< const StateMapInterface > stateMap) | |
KrKcSubstitutionRegister (std::shared_ptr< const StateMapInterface > stateMap, std::shared_ptr< const GeneticCode > genCode) | |
KrKcSubstitutionRegister (const KrKcSubstitutionRegister &kreg) | |
KrKcSubstitutionRegister & | operator= (const KrKcSubstitutionRegister &kreg) |
void | init () |
KrKcSubstitutionRegister * | clone () const |
size_t | getNumberOfSubstitutionTypes () const |
size_t | getType (size_t fromState, size_t toState) const |
Get the substitution type far a given pair of model states. More... | |
std::string | getTypeName (size_t type) const |
Get the name of a given substitution type. More... | |
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... | |
Protected Attributes | |
std::shared_ptr< const StateMapInterface > | stateMap_ |
std::string | name_ |
Private Attributes | |
std::vector< std::vector< bool > > | types_ |
std::shared_ptr< const GeneticCode > | genCode_ |
Count conservative and radical amino-acid substitutions.
Categories are defined as in Sainudiin et al (2005).
Definition at line 1074 of file SubstitutionRegister.h.
|
inline |
|
inline |
Definition at line 1092 of file SubstitutionRegister.h.
References init().
|
inline |
Definition at line 1102 of file SubstitutionRegister.h.
|
inlineoverridevirtualinherited |
Implements bpp::SubstitutionRegisterInterface.
Definition at line 133 of file SubstitutionRegister.h.
References bpp::AbstractSubstitutionRegister::stateMap_.
|
inlinevirtual |
Implements bpp::SubstitutionRegisterInterface.
Definition at line 1219 of file SubstitutionRegister.h.
References KrKcSubstitutionRegister().
|
inlineoverridevirtualinherited |
Implements bpp::SubstitutionRegisterInterface.
Definition at line 135 of file SubstitutionRegister.h.
References bpp::AbstractSubstitutionRegister::stateMap_.
|
inlineoverridevirtualinherited |
Get the name of the register.
Implements bpp::SubstitutionRegisterInterface.
Definition at line 137 of file SubstitutionRegister.h.
References bpp::AbstractSubstitutionRegister::name_.
|
inlinevirtual |
Implements bpp::SubstitutionRegisterInterface.
Definition at line 1222 of file SubstitutionRegister.h.
|
inlineoverridevirtualinherited |
Implements bpp::SubstitutionRegisterInterface.
Definition at line 131 of file SubstitutionRegister.h.
References bpp::AbstractSubstitutionRegister::stateMap_.
|
inlinevirtual |
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). |
Implements bpp::SubstitutionRegisterInterface.
Definition at line 1224 of file SubstitutionRegister.h.
References genCode_, bpp::StateMapInterface::getAlphabetStateAsInt(), bpp::AbstractSubstitutionRegister::stateMap(), and types_.
|
inlinevirtual |
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). |
Implements bpp::SubstitutionRegisterInterface.
Definition at line 1261 of file SubstitutionRegister.h.
|
inline |
Definition at line 1117 of file SubstitutionRegister.h.
References types_.
Referenced by KrKcSubstitutionRegister().
|
inline |
Definition at line 1108 of file SubstitutionRegister.h.
References genCode_, bpp::AbstractSubstitutionRegister::operator=(), and types_.
|
inlineoverridevirtualinherited |
Implements bpp::SubstitutionRegisterInterface.
Definition at line 129 of file SubstitutionRegister.h.
References bpp::AbstractSubstitutionRegister::stateMap_.
Referenced by bpp::VectorOfSubstitutionRegisters::addRegister(), bpp::ComprehensiveSubstitutionRegister::ComprehensiveSubstitutionRegister(), bpp::GCSynonymousSubstitutionRegister::getType(), bpp::GCPositionSubstitutionRegister::getType(), bpp::TsTvSubstitutionRegister::getType(), bpp::SWSubstitutionRegister::getType(), bpp::DnDsSubstitutionRegister::getType(), getType(), bpp::SelectedSubstitutionRegister::SelectedSubstitutionRegister(), bpp::CategorySubstitutionRegister::setAlphabetCategories(), bpp::CategorySubstitutionRegister::setModelCategories(), bpp::AAInteriorSubstitutionRegister::updateMatrix_(), and bpp::AAExteriorSubstitutionRegister::updateMatrix_().
|
private |
Definition at line 1081 of file SubstitutionRegister.h.
Referenced by getType(), and operator=().
|
protectedinherited |
Definition at line 108 of file SubstitutionRegister.h.
Referenced by bpp::AbstractSubstitutionRegister::getName(), and bpp::AbstractSubstitutionRegister::operator=().
|
protectedinherited |
Definition at line 107 of file SubstitutionRegister.h.
Referenced by bpp::AbstractSubstitutionRegister::alphabet(), bpp::AbstractSubstitutionRegister::getAlphabet(), bpp::AbstractSubstitutionRegister::getStateMap(), bpp::AbstractSubstitutionRegister::operator=(), and bpp::AbstractSubstitutionRegister::stateMap().
|
private |
Definition at line 1078 of file SubstitutionRegister.h.
Referenced by getType(), init(), and operator=().