bpp-phyl
2.2.0
|
Distinguishes synonymous from non-synonymous substitutions. More...
#include <Bpp/Phyl/Mapping/SubstitutionRegister.h>
Public Member Functions | |
DnDsSubstitutionRegister (const CodonSubstitutionModel *model, bool countMultiple=false) | |
DnDsSubstitutionRegister (const DnDsSubstitutionRegister ®) | |
DnDsSubstitutionRegister & | operator= (const DnDsSubstitutionRegister ®) |
DnDsSubstitutionRegister * | 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 SubstitutionModel * | getSubstitutionModel () const |
const Alphabet * | getAlphabet () const |
Protected Attributes | |
const SubstitutionModel * | model_ |
Private Attributes | |
const GeneticCode * | code_ |
bool | countMultiple_ |
Distinguishes synonymous from non-synonymous substitutions.
This register has two substitution types, mapped as:
Definition at line 862 of file SubstitutionRegister.h.
|
inline |
Definition at line 870 of file SubstitutionRegister.h.
Referenced by clone().
|
inline |
Definition at line 876 of file SubstitutionRegister.h.
|
inlinevirtual |
Implements bpp::SubstitutionRegister.
Definition at line 890 of file SubstitutionRegister.h.
References DnDsSubstitutionRegister().
|
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 893 of file SubstitutionRegister.h.
|
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 895 of file SubstitutionRegister.h.
References code_, countMultiple_, bpp::SubstitutionModel::getAlphabet(), bpp::SubstitutionModel::getAlphabetStateAsInt(), and bpp::AbstractSubstitutionRegister::model_.
|
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::SubstitutionRegister.
Definition at line 919 of file SubstitutionRegister.h.
|
inline |
Definition at line 882 of file SubstitutionRegister.h.
References code_, countMultiple_, and bpp::AbstractSubstitutionRegister::operator=().
|
private |
Definition at line 866 of file SubstitutionRegister.h.
Referenced by getType(), and operator=().
|
private |
Definition at line 867 of file SubstitutionRegister.h.
Referenced by getType(), and operator=().
|
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(), getType(), bpp::GCSynonymousSubstitutionRegister::getType(), bpp::AbstractSubstitutionRegister::operator=(), bpp::SelectedSubstitutionRegister::SelectedSubstitutionRegister(), and bpp::CategorySubstitutionRegister::setCategories().