bpp-seq3
3.0.0
|
Miyata et al. (1979) Amino-Acid chemical distance. More...
#include <Bpp/Seq/AlphabetIndex/MiyataAAChemicalDistance.h>
Public Member Functions | |
MiyataAAChemicalDistance () | |
MiyataAAChemicalDistance (const MiyataAAChemicalDistance &md) | |
MiyataAAChemicalDistance & | operator= (const MiyataAAChemicalDistance &md) |
virtual | ~MiyataAAChemicalDistance () |
MiyataAAChemicalDistance * | clone () const override |
void | setSymmetric (bool yn) |
bool | isSymmetric () const override |
std::shared_ptr< const Alphabet > | getAlphabet () const override |
Get the alphabet associated to this index. More... | |
const Alphabet & | alphabet () const override |
Get the alphabet associated to this index. More... | |
Methods from the AlphabetIndex2 interface. | |
double | getIndex (int state1, int state2) const override |
Get the index associated to a pair of states. More... | |
double | getIndex (const std::string &state1, const std::string &state2) const override |
Get the index associated to a pair of states. More... | |
const Matrix< double > & | getIndexMatrix () const override |
Protected Member Functions | |
void | computeIndexMatrix_ () |
Private Attributes | |
LinearMatrix< double > | distanceMatrix_ |
LinearMatrix< double > | indexMatrix_ |
bool | sym_ |
std::shared_ptr< const ProteicAlphabet > | alpha_ |
Miyata et al. (1979) Amino-Acid chemical distance.
Two kinds of matrix can be built:
Reference: Miyata, T., Miyazawa, S. and Yasunaga, T. Two types of amino acid substitutions in protein evolution J. Mol. Evol. 12, 219-236 (1979)
Data from AAIndex2 database, Accession Number MIYT790101.
Definition at line 33 of file MiyataAAChemicalDistance.h.
MiyataAAChemicalDistance::MiyataAAChemicalDistance | ( | ) |
Definition at line 16 of file MiyataAAChemicalDistance.cpp.
Referenced by clone().
|
inline |
Definition at line 44 of file MiyataAAChemicalDistance.h.
|
inlinevirtual |
Definition at line 61 of file MiyataAAChemicalDistance.h.
|
inlineoverridevirtualinherited |
Get the alphabet associated to this index.
Implements bpp::AlphabetIndex2.
Definition at line 104 of file AlphabetIndex2.h.
References bpp::ProteicAlphabetIndex2::alpha_.
|
inlineoverridevirtual |
Implements bpp::ProteicAlphabetIndex2.
Definition at line 63 of file MiyataAAChemicalDistance.h.
References MiyataAAChemicalDistance().
|
protected |
Definition at line 36 of file MiyataAAChemicalDistance.cpp.
References distanceMatrix_, indexMatrix_, and sym_.
Referenced by setSymmetric().
|
inlineoverridevirtualinherited |
Get the alphabet associated to this index.
Implements bpp::AlphabetIndex2.
Definition at line 102 of file AlphabetIndex2.h.
References bpp::ProteicAlphabetIndex2::alpha_.
Referenced by bpp::AAIndex2Entry::getIndex(), bpp::BLOSUM50::getIndex(), bpp::GranthamAAChemicalDistance::getIndex(), and getIndex().
|
overridevirtual |
Get the index associated to a pair of states.
state1 | First state to consider, as a string value. |
state2 | Second state to consider, as a string value. |
Implements bpp::AlphabetIndex2.
Definition at line 31 of file MiyataAAChemicalDistance.cpp.
References bpp::ProteicAlphabetIndex2::getAlphabet(), and getIndex().
|
overridevirtual |
Get the index associated to a pair of states.
state1 | First state to consider, as a int value in the Alphabet |
state2 | Second state to consider, as a int value in the Alphabet |
Implements bpp::AlphabetIndex2.
Definition at line 25 of file MiyataAAChemicalDistance.cpp.
References distanceMatrix_, bpp::ProteicAlphabetIndex2::getAlphabet(), and sym_.
Referenced by getIndex().
|
inlineoverridevirtual |
Implements bpp::AlphabetIndex2.
Definition at line 73 of file MiyataAAChemicalDistance.h.
References indexMatrix_.
|
inlineoverridevirtual |
Implements bpp::AlphabetIndex2.
Definition at line 85 of file MiyataAAChemicalDistance.h.
References sym_.
|
inline |
Definition at line 51 of file MiyataAAChemicalDistance.h.
References distanceMatrix_, indexMatrix_, bpp::ProteicAlphabetIndex2::operator=(), and sym_.
|
inline |
Definition at line 80 of file MiyataAAChemicalDistance.h.
References computeIndexMatrix_(), and sym_.
|
privateinherited |
Definition at line 84 of file AlphabetIndex2.h.
Referenced by bpp::ProteicAlphabetIndex2::alphabet(), bpp::ProteicAlphabetIndex2::getAlphabet(), and bpp::ProteicAlphabetIndex2::operator=().
|
private |
Definition at line 37 of file MiyataAAChemicalDistance.h.
Referenced by computeIndexMatrix_(), getIndex(), and operator=().
|
private |
Definition at line 38 of file MiyataAAChemicalDistance.h.
Referenced by computeIndexMatrix_(), getIndexMatrix(), and operator=().
|
private |
Definition at line 39 of file MiyataAAChemicalDistance.h.
Referenced by computeIndexMatrix_(), getIndex(), isSymmetric(), operator=(), and setSymmetric().