bpp-seq
2.2.0
|
Default Substitution Matrix for nucleotide alignments. More...
#include <Bpp/Seq/AlphabetIndex/DefaultNucleotideScore.h>
Public Member Functions | |
DefaultNucleotideScore (const NucleicAlphabet *alphabet) | |
Build a new DefaultNucleotideScore object. More... | |
DefaultNucleotideScore (const DefaultNucleotideScore &dns) | |
DefaultNucleotideScore & | operator= (const DefaultNucleotideScore &dns) |
virtual | ~DefaultNucleotideScore () |
Methods from the AlphabetIndex2 interface. | |
double | getIndex (int state1, int state2) const throw (BadIntException) |
Get the index associated to a pair of states. More... | |
double | getIndex (const std::string &state1, const std::string &state2) const throw (BadCharException) |
Get the index associated to a pair of states. More... | |
const Alphabet * | getAlphabet () const |
Get the alphabet associated to this index. More... | |
DefaultNucleotideScore * | clone () const |
LinearMatrix< double > * | getIndexMatrix () const |
bool | isSymmetric () const |
Private Attributes | |
LinearMatrix< double > | distanceMatrix_ |
const NucleicAlphabet * | alpha_ |
Default Substitution Matrix for nucleotide alignments.
Definition at line 57 of file DefaultNucleotideScore.h.
DefaultNucleotideScore::DefaultNucleotideScore | ( | const NucleicAlphabet * | alphabet | ) |
Build a new DefaultNucleotideScore object.
alphabet | The alphabet to use. |
Definition at line 48 of file DefaultNucleotideScore.cpp.
References distanceMatrix_.
Referenced by clone().
|
inline |
Definition at line 72 of file DefaultNucleotideScore.h.
|
inlinevirtual |
Definition at line 83 of file DefaultNucleotideScore.h.
|
inlinevirtual |
Implements bpp::AlphabetIndex2.
Definition at line 101 of file DefaultNucleotideScore.h.
References DefaultNucleotideScore().
|
inlinevirtual |
Get the alphabet associated to this index.
Implements bpp::AlphabetIndex2.
Definition at line 100 of file DefaultNucleotideScore.h.
References alpha_.
|
virtual |
Get the index associated to a pair of states.
state1 | First state to consider, as a int value. |
state2 | Second state to consider, as a int value. |
If states are unresolved, takes the best score of all possible matches and divides it by the number of different states.
Implements bpp::AlphabetIndex2.
Definition at line 74 of file DefaultNucleotideScore.cpp.
|
virtual |
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 101 of file DefaultNucleotideScore.cpp.
|
virtual |
Implements bpp::AlphabetIndex2.
Definition at line 109 of file DefaultNucleotideScore.cpp.
References distanceMatrix_.
|
inlinevirtual |
Implements bpp::AlphabetIndex2.
Definition at line 103 of file DefaultNucleotideScore.h.
|
inline |
Definition at line 76 of file DefaultNucleotideScore.h.
References alpha_, and distanceMatrix_.
|
private |
Definition at line 62 of file DefaultNucleotideScore.h.
Referenced by getAlphabet(), and operator=().
|
private |
Definition at line 61 of file DefaultNucleotideScore.h.
Referenced by DefaultNucleotideScore(), getIndexMatrix(), and operator=().