|
bpp-phyl3 3.0.0
|
Indexes only intra amino-acid substitutions. Every group represents a substitutions for the same amino acid. Met and Trp are not taken into account due their non-degenerescence. More...
#include <Bpp/Phyl/Mapping/SubstitutionRegister.h>
Inheritance diagram for bpp::AAInteriorSubstitutionRegister:
Collaboration diagram for bpp::AAInteriorSubstitutionRegister:Public Member Functions | |
| AAInteriorSubstitutionRegister (std::shared_ptr< const StateMapInterface > stateMap, std::shared_ptr< const GeneticCode > genCode) | |
| AAInteriorSubstitutionRegister (const AAInteriorSubstitutionRegister &ais) | |
| AAInteriorSubstitutionRegister & | operator= (const AAInteriorSubstitutionRegister &ais) |
| AAInteriorSubstitutionRegister * | clone () const |
| ~AAInteriorSubstitutionRegister () | |
| std::string | getTypeName (size_t type) const |
| names of the types are their number. More... | |
| size_t | getType (size_t i, size_t j) const override |
| Get the substitution type far a given pair of model states. More... | |
| size_t | getNumberOfSubstitutionTypes () const override |
| 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 Member Functions | |
| void | updateMatrix_ () |
| void | updateTypes_ () |
Protected Attributes | |
| size_t | size_ |
| The size of the matrix, i.e. the number of states. More... | |
| RowMatrix< size_t > | matrix_ |
| The matrix of the substitution register. More... | |
| std::map< size_t, std::map< size_t, std::vector< size_t > > > | types_ |
| The map from substitution types to the map of from states to the vector of target states. More... | |
| std::shared_ptr< const StateMapInterface > | stateMap_ |
| std::string | name_ |
Private Attributes | |
| std::map< std::string, size_t > | categoryCorrespondance_ |
| std::shared_ptr< const GeneticCode > | genCode_ |
Indexes only intra amino-acid substitutions. Every group represents a substitutions for the same amino acid. Met and Trp are not taken into account due their non-degenerescence.
Definition at line 558 of file SubstitutionRegister.h.
|
inline |
Definition at line 565 of file SubstitutionRegister.h.
References updateMatrix_(), and bpp::GeneralSubstitutionRegister::updateTypes_().
Referenced by clone().
|
inline |
Definition at line 576 of file SubstitutionRegister.h.
|
inline |
Definition at line 593 of file SubstitutionRegister.h.
|
inlineoverridevirtualinherited |
Implements bpp::SubstitutionRegisterInterface.
Definition at line 133 of file SubstitutionRegister.h.
References bpp::AbstractSubstitutionRegister::stateMap_.
|
inlinevirtual |
Reimplemented from bpp::GeneralSubstitutionRegister.
Definition at line 591 of file SubstitutionRegister.h.
References AAInteriorSubstitutionRegister().
|
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_.
|
inlineoverridevirtualinherited |
Implements bpp::SubstitutionRegisterInterface.
Definition at line 456 of file SubstitutionRegister.h.
References bpp::GeneralSubstitutionRegister::types_.
|
inlineoverridevirtualinherited |
Implements bpp::SubstitutionRegisterInterface.
Definition at line 131 of file SubstitutionRegister.h.
References bpp::AbstractSubstitutionRegister::stateMap_.
|
inlineoverridevirtualinherited |
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 451 of file SubstitutionRegister.h.
References bpp::GeneralSubstitutionRegister::matrix_.
|
inlinevirtual |
names of the types are their number.
Reimplemented from bpp::GeneralSubstitutionRegister.
Definition at line 596 of file SubstitutionRegister.h.
References categoryCorrespondance_, bpp::TextTools::toString(), and bpp::GeneralSubstitutionRegister::types_.
|
inline |
Definition at line 582 of file SubstitutionRegister.h.
References categoryCorrespondance_, genCode_, and bpp::GeneralSubstitutionRegister::operator=().
|
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(), bpp::KrKcSubstitutionRegister::getType(), bpp::SelectedSubstitutionRegister::SelectedSubstitutionRegister(), bpp::CategorySubstitutionRegister::setAlphabetCategories(), bpp::CategorySubstitutionRegister::setModelCategories(), updateMatrix_(), and bpp::AAExteriorSubstitutionRegister::updateMatrix_().
|
inlineprotected |
Definition at line 610 of file SubstitutionRegister.h.
References bpp::StateMapInterface::alphabet(), categoryCorrespondance_, genCode_, bpp::AlphabetState::getNum(), bpp::StateMapInterface::getNumberOfModelStates(), bpp::Alphabet::getStateAt(), bpp::GeneralSubstitutionRegister::matrix_, and bpp::AbstractSubstitutionRegister::stateMap().
Referenced by AAInteriorSubstitutionRegister().
|
protectedinherited |
Definition at line 10 of file SubstitutionRegister.cpp.
References bpp::GeneralSubstitutionRegister::matrix_, bpp::GeneralSubstitutionRegister::size_, and bpp::GeneralSubstitutionRegister::types_.
Referenced by bpp::AAExteriorSubstitutionRegister::AAExteriorSubstitutionRegister(), AAInteriorSubstitutionRegister(), bpp::GeneralSubstitutionRegister::GeneralSubstitutionRegister(), and bpp::SelectedSubstitutionRegister::SelectedSubstitutionRegister().
|
private |
Definition at line 561 of file SubstitutionRegister.h.
Referenced by getTypeName(), operator=(), and updateMatrix_().
|
private |
Definition at line 562 of file SubstitutionRegister.h.
Referenced by operator=(), and updateMatrix_().
|
protectedinherited |
The matrix of the substitution register.
Definition at line 397 of file SubstitutionRegister.h.
Referenced by bpp::GeneralSubstitutionRegister::GeneralSubstitutionRegister(), bpp::GeneralSubstitutionRegister::getType(), bpp::GeneralSubstitutionRegister::operator=(), bpp::SelectedSubstitutionRegister::SelectedSubstitutionRegister(), updateMatrix_(), bpp::AAExteriorSubstitutionRegister::updateMatrix_(), and bpp::GeneralSubstitutionRegister::updateTypes_().
|
protectedinherited |
Definition at line 108 of file SubstitutionRegister.h.
Referenced by bpp::AbstractSubstitutionRegister::getName(), and bpp::AbstractSubstitutionRegister::operator=().
|
protectedinherited |
The size of the matrix, i.e. the number of states.
Definition at line 392 of file SubstitutionRegister.h.
Referenced by bpp::GeneralSubstitutionRegister::GeneralSubstitutionRegister(), bpp::GeneralSubstitutionRegister::operator=(), and bpp::GeneralSubstitutionRegister::updateTypes_().
|
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().
|
protectedinherited |
The map from substitution types to the map of from states to the vector of target states.
This is the reverse information of matrix_
Definition at line 405 of file SubstitutionRegister.h.
Referenced by bpp::GeneralSubstitutionRegister::getNumberOfSubstitutionTypes(), bpp::SelectedSubstitutionRegister::getTypeName(), getTypeName(), bpp::AAExteriorSubstitutionRegister::getTypeName(), bpp::GeneralSubstitutionRegister::getTypeName(), bpp::GeneralSubstitutionRegister::operator=(), and bpp::GeneralSubstitutionRegister::updateTypes_().