bpp-phyl3
3.0.0
|
Distinguishes AT->GC vs GC->AT inside synonymous substitutions on third codon position. More...
#include <Bpp/Phyl/Mapping/CategorySubstitutionRegister.h>
Public Member Functions | |
GCSynonymousSubstitutionRegister (std::shared_ptr< const StateMapInterface > stateMap, std::shared_ptr< const GeneticCode > genCode, bool within=false) | |
GCSynonymousSubstitutionRegister (const GCSynonymousSubstitutionRegister ®) | |
GCSynonymousSubstitutionRegister & | operator= (const GCSynonymousSubstitutionRegister ®) |
GCSynonymousSubstitutionRegister * | clone () 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... | |
virtual size_t | getCategory (size_t state) const |
virtual size_t | getCategoryFrom (size_t type) const |
virtual size_t | getCategoryTo (size_t type) const |
virtual std::string | getCategoryName (size_t category) const |
virtual bool | allowWithin () const |
bool | isStationary () const |
void | setStationarity (bool stat) |
size_t | getNumberOfCategories () const |
size_t | getNumberOfSubstitutionTypes () const |
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 | |
template<class T > | |
void | setAlphabetCategories (const std::map< int, T > &categories) |
template<class T > | |
void | setModelCategories (const std::map< size_t, T > &categories) |
Protected Attributes | |
bool | within_ |
size_t | nbCategories_ |
std::map< size_t, size_t > | categories_ |
std::vector< std::string > | categoryNames_ |
std::vector< std::vector< size_t > > | index_ |
std::vector< std::vector< size_t > > | revIndex_ |
bool | stationarity_ |
std::shared_ptr< const StateMapInterface > | stateMap_ |
std::string | name_ |
Private Attributes | |
std::shared_ptr< const GeneticCode > | genCode_ |
Distinguishes AT->GC vs GC->AT inside synonymous substitutions on third codon position.
This register has two substitution types, mapped as:
Multiple substitutions are forbidden.
Definition at line 275 of file CategorySubstitutionRegister.h.
|
inline |
Definition at line 282 of file CategorySubstitutionRegister.h.
References genCode_.
Referenced by clone().
|
inline |
Definition at line 307 of file CategorySubstitutionRegister.h.
|
inlinevirtualinherited |
Definition at line 177 of file CategorySubstitutionRegister.h.
References bpp::CategorySubstitutionRegister::within_.
|
inlineoverridevirtualinherited |
Implements bpp::SubstitutionRegisterInterface.
Definition at line 133 of file SubstitutionRegister.h.
References bpp::AbstractSubstitutionRegister::stateMap_.
|
inlinevirtual |
Implements bpp::SubstitutionRegisterInterface.
Definition at line 319 of file CategorySubstitutionRegister.h.
References GCSynonymousSubstitutionRegister().
|
inlineoverridevirtualinherited |
Implements bpp::SubstitutionRegisterInterface.
Definition at line 135 of file SubstitutionRegister.h.
References bpp::AbstractSubstitutionRegister::stateMap_.
|
inlinevirtualinherited |
Definition at line 137 of file CategorySubstitutionRegister.h.
References bpp::CategorySubstitutionRegister::categories_.
|
inlinevirtualinherited |
Definition at line 142 of file CategorySubstitutionRegister.h.
References bpp::CategorySubstitutionRegister::nbCategories_, bpp::CategorySubstitutionRegister::revIndex_, and bpp::CategorySubstitutionRegister::within_.
Referenced by bpp::CategorySubstitutionRegister::getTypeName().
|
inlinevirtualinherited |
Definition at line 172 of file CategorySubstitutionRegister.h.
References bpp::CategorySubstitutionRegister::categoryNames_.
Referenced by bpp::CategorySubstitutionRegister::getTypeName().
|
inlinevirtualinherited |
Definition at line 157 of file CategorySubstitutionRegister.h.
References bpp::CategorySubstitutionRegister::nbCategories_, bpp::CategorySubstitutionRegister::revIndex_, and bpp::CategorySubstitutionRegister::within_.
Referenced by bpp::CategorySubstitutionRegister::getTypeName().
|
inlineoverridevirtualinherited |
Get the name of the register.
Implements bpp::SubstitutionRegisterInterface.
Definition at line 137 of file SubstitutionRegister.h.
References bpp::AbstractSubstitutionRegister::name_.
|
inlineinherited |
Definition at line 189 of file CategorySubstitutionRegister.h.
References bpp::CategorySubstitutionRegister::nbCategories_.
|
inlinevirtualinherited |
Implements bpp::SubstitutionRegisterInterface.
Definition at line 191 of file CategorySubstitutionRegister.h.
References bpp::CategorySubstitutionRegister::nbCategories_, and bpp::CategorySubstitutionRegister::within_.
|
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). |
Reimplemented from bpp::CategorySubstitutionRegister.
Definition at line 322 of file CategorySubstitutionRegister.h.
References bpp::CategorySubstitutionRegister::categories_, genCode_, bpp::StateMapInterface::getAlphabetStateAsInt(), bpp::CategorySubstitutionRegister::index_, and bpp::AbstractSubstitutionRegister::stateMap().
|
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). |
Reimplemented from bpp::CategorySubstitutionRegister.
Definition at line 347 of file CategorySubstitutionRegister.h.
|
inlineinherited |
Definition at line 179 of file CategorySubstitutionRegister.h.
References bpp::CategorySubstitutionRegister::stationarity_.
|
inline |
Definition at line 312 of file CategorySubstitutionRegister.h.
References genCode_, and bpp::AbstractSubstitutionRegister::operator=().
|
inlineprotectedinherited |
Definition at line 58 of file CategorySubstitutionRegister.h.
References bpp::StateMapInterface::getModelStates(), and bpp::AbstractSubstitutionRegister::stateMap().
|
inlineprotectedinherited |
Definition at line 75 of file CategorySubstitutionRegister.h.
References bpp::CategorySubstitutionRegister::categories_, bpp::CategorySubstitutionRegister::categoryNames_, count(), bpp::StateMapInterface::getNumberOfModelStates(), bpp::StateMapInterface::getStateDescription(), bpp::CategorySubstitutionRegister::index_, bpp::CategorySubstitutionRegister::nbCategories_, bpp::CategorySubstitutionRegister::revIndex_, bpp::AbstractSubstitutionRegister::stateMap(), and bpp::CategorySubstitutionRegister::within_.
|
inlineinherited |
Definition at line 184 of file CategorySubstitutionRegister.h.
References bpp::CategorySubstitutionRegister::stationarity_.
Referenced by bpp::PhylogeneticsApplicationTools::getSubstitutionRegister().
|
inlineoverridevirtualinherited |
Implements bpp::SubstitutionRegisterInterface.
Definition at line 129 of file SubstitutionRegister.h.
References bpp::AbstractSubstitutionRegister::stateMap_.
Referenced by bpp::VectorOfSubstitutionRegisters::addRegister(), bpp::ComprehensiveSubstitutionRegister::ComprehensiveSubstitutionRegister(), 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(), bpp::AAInteriorSubstitutionRegister::updateMatrix_(), and bpp::AAExteriorSubstitutionRegister::updateMatrix_().
|
mutableprotectedinherited |
|
protectedinherited |
Definition at line 32 of file CategorySubstitutionRegister.h.
Referenced by bpp::CategorySubstitutionRegister::getCategoryName(), and bpp::CategorySubstitutionRegister::setModelCategories().
|
private |
Definition at line 279 of file CategorySubstitutionRegister.h.
Referenced by GCSynonymousSubstitutionRegister(), getType(), and operator=().
|
protectedinherited |
Definition at line 33 of file CategorySubstitutionRegister.h.
Referenced by bpp::CategorySubstitutionRegister::getType(), getType(), bpp::GCPositionSubstitutionRegister::getType(), and bpp::CategorySubstitutionRegister::setModelCategories().
|
protectedinherited |
Definition at line 108 of file SubstitutionRegister.h.
Referenced by bpp::AbstractSubstitutionRegister::getName(), and bpp::AbstractSubstitutionRegister::operator=().
|
protectedinherited |
Definition at line 30 of file CategorySubstitutionRegister.h.
Referenced by bpp::CategorySubstitutionRegister::getCategoryFrom(), bpp::CategorySubstitutionRegister::getCategoryTo(), bpp::CategorySubstitutionRegister::getNumberOfCategories(), bpp::CategorySubstitutionRegister::getNumberOfSubstitutionTypes(), and bpp::CategorySubstitutionRegister::setModelCategories().
|
protectedinherited |
Definition at line 34 of file CategorySubstitutionRegister.h.
Referenced by bpp::CategorySubstitutionRegister::getCategoryFrom(), bpp::CategorySubstitutionRegister::getCategoryTo(), and bpp::CategorySubstitutionRegister::setModelCategories().
|
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 |
Definition at line 36 of file CategorySubstitutionRegister.h.
Referenced by bpp::CategorySubstitutionRegister::isStationary(), and bpp::CategorySubstitutionRegister::setStationarity().
|
protectedinherited |
Definition at line 29 of file CategorySubstitutionRegister.h.
Referenced by bpp::CategorySubstitutionRegister::allowWithin(), bpp::CategorySubstitutionRegister::getCategoryFrom(), bpp::CategorySubstitutionRegister::getCategoryTo(), bpp::CategorySubstitutionRegister::getNumberOfSubstitutionTypes(), and bpp::CategorySubstitutionRegister::setModelCategories().