bpp-seq3
3.0.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 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... | |
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... | |
DefaultNucleotideScore * | clone () const override |
const Matrix< double > & | getIndexMatrix () const override |
bool | isSymmetric () const override |
Private Attributes | |
LinearMatrix< double > | distanceMatrix_ |
std::shared_ptr< const NucleicAlphabet > | alpha_ |
Default Substitution Matrix for nucleotide alignments.
Definition at line 23 of file DefaultNucleotideScore.h.
DefaultNucleotideScore::DefaultNucleotideScore | ( | const NucleicAlphabet * | alphabet | ) |
Build a new DefaultNucleotideScore object.
alphabet | The alphabet to use. |
Definition at line 13 of file DefaultNucleotideScore.cpp.
References distanceMatrix_.
Referenced by clone().
|
inline |
Definition at line 38 of file DefaultNucleotideScore.h.
|
inlinevirtual |
Definition at line 49 of file DefaultNucleotideScore.h.
|
inlineoverridevirtual |
Get the alphabet associated to this index.
Implements bpp::AlphabetIndex2.
Definition at line 67 of file DefaultNucleotideScore.h.
References alpha_.
|
inlineoverridevirtual |
Implements bpp::AlphabetIndex2.
Definition at line 68 of file DefaultNucleotideScore.h.
References DefaultNucleotideScore().
|
inlineoverridevirtual |
Get the alphabet associated to this index.
Implements bpp::AlphabetIndex2.
Definition at line 66 of file DefaultNucleotideScore.h.
References alpha_.
|
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 62 of file DefaultNucleotideScore.cpp.
References alpha_, and distanceMatrix_.
|
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 |
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 39 of file DefaultNucleotideScore.cpp.
References alpha_, and distanceMatrix_.
|
overridevirtual |
Implements bpp::AlphabetIndex2.
Definition at line 69 of file DefaultNucleotideScore.cpp.
References distanceMatrix_.
|
inlineoverridevirtual |
Implements bpp::AlphabetIndex2.
Definition at line 70 of file DefaultNucleotideScore.h.
|
inline |
Definition at line 42 of file DefaultNucleotideScore.h.
References alpha_, and distanceMatrix_.
|
private |
Definition at line 28 of file DefaultNucleotideScore.h.
Referenced by alphabet(), getAlphabet(), getIndex(), and operator=().
|
private |
Definition at line 27 of file DefaultNucleotideScore.h.
Referenced by DefaultNucleotideScore(), getIndex(), getIndexMatrix(), and operator=().