bpp-phyl
2.2.0
|
Class inheriting from GeneralSubstitutionRegister, this one uses a special constructor which allows it to build a substitution matrix from string input specifying a desired substitutions. More...
#include <Bpp/Phyl/Mapping/SubstitutionRegister.h>
Public Member Functions | |
SelectedSubstitutionRegister (const SubstitutionModel *model, std::string selectedSubstitutions) | |
SelectedSubstitutionRegister * | clone () const |
~SelectedSubstitutionRegister () | |
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 |
Get the substitution type far a given pair of model states. More... | |
size_t | getNumberOfSubstitutionTypes () const |
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_ |
Private Attributes | |
std::map< size_t, std::string > | categoryNames_ |
Class inheriting from GeneralSubstitutionRegister, this one uses a special constructor which allows it to build a substitution matrix from string input specifying a desired substitutions.
Definition at line 573 of file SubstitutionRegister.h.
|
inline |
This constructor creates an empty square matrix (nrow = ncol = length of alphabet) and takes a string with specific syntax to mark a substitutions with a certain index depending on the string entered.
The same group of substitution is delimited by parentheses. The name, if entered, is entered at the start of a string and followed by ";". Substitutions are delimited by ",", and each substitution is defined with a "->" symbol.
Definition at line 579 of file SubstitutionRegister.h.
References categoryNames_, bpp::SubstitutionModel::getAlphabet(), bpp::GeneralSubstitutionRegister::matrix_, bpp::AbstractSubstitutionRegister::model_, and bpp::GeneralSubstitutionRegister::updateTypes_().
Referenced by clone().
|
inline |
Definition at line 629 of file SubstitutionRegister.h.
|
inlinevirtual |
Reimplemented from bpp::GeneralSubstitutionRegister.
Definition at line 627 of file SubstitutionRegister.h.
References SelectedSubstitutionRegister().
|
inlinevirtualinherited |
Implements bpp::SubstitutionRegister.
Definition at line 147 of file SubstitutionRegister.h.
References bpp::SubstitutionModel::getAlphabet(), and bpp::AbstractSubstitutionRegister::model_.
|
inlinevirtualinherited |
Implements bpp::SubstitutionRegister.
Definition at line 544 of file SubstitutionRegister.h.
References bpp::GeneralSubstitutionRegister::types_.
|
inlinevirtualinherited |
Implements bpp::SubstitutionRegister.
Definition at line 145 of file SubstitutionRegister.h.
References bpp::AbstractSubstitutionRegister::model_.
|
inlinevirtualinherited |
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 bpp::GeneralSubstitutionRegister::matrix_.
|
inlinevirtual |
names of the types are their number.
Reimplemented from bpp::GeneralSubstitutionRegister.
Definition at line 631 of file SubstitutionRegister.h.
References categoryNames_, and bpp::GeneralSubstitutionRegister::types_.
|
protectedinherited |
Definition at line 45 of file SubstitutionRegister.cpp.
Referenced by bpp::AAExteriorSubstitutionRegister::AAExteriorSubstitutionRegister(), bpp::AAInteriorSubstitutionRegister::AAInteriorSubstitutionRegister(), bpp::GeneralSubstitutionRegister::GeneralSubstitutionRegister(), and SelectedSubstitutionRegister().
|
private |
Definition at line 576 of file SubstitutionRegister.h.
Referenced by getTypeName(), and SelectedSubstitutionRegister().
|
protectedinherited |
The matrix of the substitution register.
Definition at line 486 of file SubstitutionRegister.h.
Referenced by bpp::AAExteriorSubstitutionRegister::AAExteriorSubstitutionRegister(), bpp::AAInteriorSubstitutionRegister::AAInteriorSubstitutionRegister(), bpp::GeneralSubstitutionRegister::GeneralSubstitutionRegister(), bpp::GeneralSubstitutionRegister::getType(), bpp::GeneralSubstitutionRegister::operator=(), and 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=(), SelectedSubstitutionRegister(), and bpp::CategorySubstitutionRegister::setCategories().
|
protectedinherited |
The size of the matrix, i.e. the number of states.
Definition at line 480 of file SubstitutionRegister.h.
Referenced by bpp::GeneralSubstitutionRegister::GeneralSubstitutionRegister(), and bpp::GeneralSubstitutionRegister::operator=().
|
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 496 of file SubstitutionRegister.h.
Referenced by bpp::GeneralSubstitutionRegister::getNumberOfSubstitutionTypes(), bpp::GeneralSubstitutionRegister::getTypeName(), getTypeName(), bpp::AAInteriorSubstitutionRegister::getTypeName(), bpp::AAExteriorSubstitutionRegister::getTypeName(), and bpp::GeneralSubstitutionRegister::operator=().