Victor
 All Data Structures Functions Variables Friends Pages
NWAlign.h
1 /* This file is part of Victor.
2 
3  Victor is free software: you can redistribute it and/or modify
4  it under the terms of the GNU General Public License as published by
5  the Free Software Foundation, either version 3 of the License, or
6  (at your option) any later version.
7 
8  Victor is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  GNU General Public License for more details.
12 
13  You should have received a copy of the GNU General Public License
14  along with Victor. If not, see <http://www.gnu.org/licenses/>.
15  */
16 
17 #ifndef __NWAlign_H__
18 #define __NWAlign_H__
19 
20 #include <Align.h>
21 
22 namespace Victor { namespace Align2{
23 
29  class NWAlign : public Align {
30  public:
31 
32  // CONSTRUCTORS:
33 
36 
39  const vector<unsigned int> &v1, const vector<unsigned int> &v2);
40 
42  NWAlign(const NWAlign &orig);
43 
45  virtual ~NWAlign();
46 
47 
48  // OPERATORS:
49 
51  NWAlign& operator =(const NWAlign &orig);
52 
53 
54  // PREDICATES:
55 
57  virtual void getMultiMatch();
58 
59 
60  // MODIFIERS:
61 
63  virtual void copy(const NWAlign &orig);
64 
66  virtual NWAlign* newCopy();
67 
68 
69  // HELPERS:
70 
72  virtual void pCalculateMatrix(bool update = true);
73 
75  virtual void pCalculateMatrix(const vector<unsigned int> &v1,
76  const vector<unsigned int> &v2, bool update = true);
77 
78 
79  protected:
80 
81 
82  private:
83 
84  };
85 
86 }} // namespace
87 
88 #endif
Pairwise sequence and profile alignment.
Definition: Align.h:48
Implement Needleman-Wunsch global alignment.
Definition: NWAlign.h:29
Base class for gap functions.
Definition: GapFunction.h:31
NWAlign & operator=(const NWAlign &orig)
Assignment operator.
Definition: NWAlign.cc:66
virtual ~NWAlign()
Destructor.
Definition: NWAlign.cc:55
AlignmentData * ad
Pointer to AlignmentData.
Definition: Align.h:157
virtual void copy(const NWAlign &orig)
Copy orig object to this object ("deep copy").
Definition: NWAlign.cc:102
Base class for printing alignments.
Definition: AlignmentData.h:35
NWAlign(AlignmentData *ad, GapFunction *gf, ScoringScheme *ss)
Default constructor.
Definition: NWAlign.cc:34
virtual NWAlign * newCopy()
Construct a new "deep copy" of this object.
Definition: NWAlign.cc:110
ScoringScheme * ss
Pointer to ScoringScheme.
Definition: Align.h:159
Base class for scoring schemes.
Definition: ScoringScheme.h:34
virtual void pCalculateMatrix(bool update=true)
Update/create matrix values.
Definition: NWAlign.cc:122
virtual void getMultiMatch()
Return two-element array containing an alignment with maximal score.
Definition: NWAlign.cc:79
GapFunction * gf
Pointer to GapFunction.
Definition: Align.h:158