10 #include <OpenMS/OpenMSConfig.h>
70 std::vector<int> first_row_{};
71 std::vector<int> second_row_{};
This class contains functions that are used to calculate the global alignment score of two amino acid...
Definition: NeedlemanWunsch.h:21
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:27
static const std::vector< std::string > NamesOfScoringMatrices
Names of valid matrices.
Definition: NeedlemanWunsch.h:43
~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:34
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22