bpp-seq3
3.0.0
|
Create a AlphabetIndex2 object from an AAIndex2 entry. More...
#include <Bpp/Seq/AlphabetIndex/AAIndex2Entry.h>
Public Member Functions | |
AAIndex2Entry (std::istream &input, bool sym=true) | |
Create a new AAIndex2Entry from an input stream. More... | |
AAIndex2Entry (const AAIndex2Entry &index) | |
AAIndex2Entry & | operator= (const AAIndex2Entry &index) |
virtual | ~AAIndex2Entry () |
AAIndex2Entry * | clone () const override |
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 |
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... | |
Private Attributes | |
LinearMatrix< double > | property_ |
bool | sym_ |
std::shared_ptr< const ProteicAlphabet > | alpha_ |
Create a AlphabetIndex2 object from an AAIndex2 entry.
Definition at line 17 of file AAIndex2Entry.h.
AAIndex2Entry::AAIndex2Entry | ( | std::istream & | input, |
bool | sym = true |
||
) |
Create a new AAIndex2Entry from an input stream.
input | The input stream to use. |
sym | Tell if the matrix is symmetric. This option as an effect only if the matrix is specified as a triangle in the entry. If sym==true, the other triangle will be built by symmetry. If sym==false, the other triangle will be set to (-) the given triangle. If the input matrix is square, it will be considered non-symetric. |
IOException | if the stream content does not follow the AAIndex2 database entry format. |
Definition at line 15 of file AAIndex2Entry.cpp.
References bpp::FileTools::getNextLine(), bpp::StringTokenizer::nextToken(), bpp::StringTokenizer::numberOfRemainingTokens(), property_, sym_, and bpp::TextTools::toDouble().
Referenced by clone().
|
inline |
Definition at line 38 of file AAIndex2Entry.h.
|
inlinevirtual |
Definition at line 53 of file AAIndex2Entry.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 56 of file AAIndex2Entry.h.
References AAIndex2Entry().
|
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 getIndex(), bpp::BLOSUM50::getIndex(), bpp::GranthamAAChemicalDistance::getIndex(), and bpp::MiyataAAChemicalDistance::getIndex().
|
inlineoverridevirtual |
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 63 of file AAIndex2Entry.h.
References bpp::ProteicAlphabetIndex2::getAlphabet(), and property_.
|
inlineoverridevirtual |
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 58 of file AAIndex2Entry.h.
References bpp::ProteicAlphabetIndex2::getAlphabet(), and property_.
|
inlineoverridevirtual |
Implements bpp::AlphabetIndex2.
Definition at line 68 of file AAIndex2Entry.h.
References property_.
|
inlineoverridevirtual |
Implements bpp::AlphabetIndex2.
Definition at line 70 of file AAIndex2Entry.h.
References sym_.
|
inline |
Definition at line 44 of file AAIndex2Entry.h.
References bpp::ProteicAlphabetIndex2::operator=(), property_, 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 21 of file AAIndex2Entry.h.
Referenced by AAIndex2Entry(), getIndex(), getIndexMatrix(), and operator=().
|
private |
Definition at line 22 of file AAIndex2Entry.h.
Referenced by AAIndex2Entry(), isSymmetric(), and operator=().