36 #include <OpenMS/OpenMSConfig.h>
96 std::vector<int> first_row_{};
97 std::vector<int> second_row_{};
This class serves for the calculation of the global alignment score of two amino acid sequences by us...
Definition: NeedlemanWunsch.h:47
NeedlemanWunsch(ScoringMatrix matrix, int penalty)
Constructor that sets the scoring matrix and the gap penalty.
ScoringMatrix
contains the valid matrices and the number of them
Definition: NeedlemanWunsch.h:53
static const std::vector< std::string > NamesOfScoringMatrices
Names of valid matrices.
Definition: NeedlemanWunsch.h:69
~NeedlemanWunsch()=default
Default destructor.
void setMatrix(const std::string &matrix)
void setPenalty(const int penalty)
sets the cost of gaps
int align(const String &seq1, const String &seq2)
Calculates the similarity score of the global alignment of two amino acid sequences using Needleman-W...
void setMatrix(const ScoringMatrix &matrix)
sets the scoring matrix. Takes either a string or the enum ScoringMatrix.
int getPenalty() const
returns the gap penalty
ScoringMatrix getMatrix() const
returns the scoring matrix
NeedlemanWunsch()=default
Default constructor (scoring matrix PAM30MS and penalty 5)
A more convenient string class.
Definition: String.h:61
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47