bpp-phyl
2.2.0
|
Sets a Register based on a matrix of integers. If M is the matrix, M[i,j] is the number of the substitution type from i to j, or 0 if there is no substitution type from i to j. More...
#include <Bpp/Phyl/Mapping/SubstitutionRegister.h>
Public Member Functions | |
GeneralSubstitutionRegister (const SubstitutionModel *model) | |
GeneralSubstitutionRegister (const SubstitutionModel *model, const RowMatrix< size_t > &matrix) | |
GeneralSubstitutionRegister (const GeneralSubstitutionRegister &gsr) | |
GeneralSubstitutionRegister & | operator= (const GeneralSubstitutionRegister &gsr) |
GeneralSubstitutionRegister * | clone () const |
virtual | ~GeneralSubstitutionRegister () |
size_t | getType (size_t i, size_t j) const |
Get the substitution type far a given pair of model states. More... | |
size_t | getNumberOfSubstitutionTypes () const |
std::string | getTypeName (size_t type) const |
names of the types are their number. More... | |
const SubstitutionModel * | getSubstitutionModel () const |
const Alphabet * | getAlphabet () const |
Protected Member Functions | |
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... | |
const SubstitutionModel * | model_ |
Sets a Register based on a matrix of integers. If M is the matrix, M[i,j] is the number of the substitution type from i to j, or 0 if there is no substitution type from i to j.
Definition at line 473 of file SubstitutionRegister.h.
|
inline |
Definition at line 499 of file SubstitutionRegister.h.
Referenced by clone().
|
inline |
Definition at line 506 of file SubstitutionRegister.h.
References matrix_, size_, and updateTypes_().
|
inline |
Definition at line 519 of file SubstitutionRegister.h.
|
inlinevirtual |
Definition at line 537 of file SubstitutionRegister.h.
|
inlinevirtual |
Implements bpp::SubstitutionRegister.
Reimplemented in bpp::AAExteriorSubstitutionRegister, bpp::AAInteriorSubstitutionRegister, and bpp::SelectedSubstitutionRegister.
Definition at line 535 of file SubstitutionRegister.h.
References GeneralSubstitutionRegister().
|
inlinevirtualinherited |
Implements bpp::SubstitutionRegister.
Definition at line 147 of file SubstitutionRegister.h.
References bpp::SubstitutionModel::getAlphabet(), and bpp::AbstractSubstitutionRegister::model_.
|
inlinevirtual |
Implements bpp::SubstitutionRegister.
Definition at line 544 of file SubstitutionRegister.h.
References types_.
|
inlinevirtualinherited |
Implements bpp::SubstitutionRegister.
Definition at line 145 of file SubstitutionRegister.h.
References bpp::AbstractSubstitutionRegister::model_.
|
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::SubstitutionRegister.
Definition at line 539 of file SubstitutionRegister.h.
References matrix_.
|
inlinevirtual |
names of the types are their number.
Implements bpp::SubstitutionRegister.
Reimplemented in bpp::AAExteriorSubstitutionRegister, bpp::AAInteriorSubstitutionRegister, and bpp::SelectedSubstitutionRegister.
Definition at line 552 of file SubstitutionRegister.h.
References types_.
|
inline |
Definition at line 526 of file SubstitutionRegister.h.
References matrix_, bpp::AbstractSubstitutionRegister::operator=(), size_, and types_.
|
protected |
Definition at line 45 of file SubstitutionRegister.cpp.
Referenced by bpp::AAExteriorSubstitutionRegister::AAExteriorSubstitutionRegister(), bpp::AAInteriorSubstitutionRegister::AAInteriorSubstitutionRegister(), GeneralSubstitutionRegister(), and bpp::SelectedSubstitutionRegister::SelectedSubstitutionRegister().
|
protected |
The matrix of the substitution register.
Definition at line 486 of file SubstitutionRegister.h.
Referenced by bpp::AAExteriorSubstitutionRegister::AAExteriorSubstitutionRegister(), bpp::AAInteriorSubstitutionRegister::AAInteriorSubstitutionRegister(), GeneralSubstitutionRegister(), getType(), operator=(), and bpp::SelectedSubstitutionRegister::SelectedSubstitutionRegister().
|
protectedinherited |
Definition at line 125 of file SubstitutionRegister.h.
Referenced by bpp::AbstractSubstitutionRegister::getAlphabet(), bpp::CategorySubstitutionRegister::getCategory(), bpp::AbstractSubstitutionRegister::getSubstitutionModel(), bpp::CategorySubstitutionRegister::getType(), bpp::TsTvSubstitutionRegister::getType(), bpp::DnDsSubstitutionRegister::getType(), bpp::GCSynonymousSubstitutionRegister::getType(), bpp::AbstractSubstitutionRegister::operator=(), bpp::SelectedSubstitutionRegister::SelectedSubstitutionRegister(), and bpp::CategorySubstitutionRegister::setCategories().
|
protected |
The size of the matrix, i.e. the number of states.
Definition at line 480 of file SubstitutionRegister.h.
Referenced by GeneralSubstitutionRegister(), and operator=().
|
protected |
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 496 of file SubstitutionRegister.h.
Referenced by getNumberOfSubstitutionTypes(), getTypeName(), bpp::SelectedSubstitutionRegister::getTypeName(), bpp::AAInteriorSubstitutionRegister::getTypeName(), bpp::AAExteriorSubstitutionRegister::getTypeName(), and operator=().