Victor
 All Data Structures Functions Variables Friends Pages
NWAlignNoTermGaps.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 __NWAlignNoTermGaps_H__
18 #define __NWAlignNoTermGaps_H__
19 
20 #include <Align.h>
21 
22 namespace Victor { namespace Align2{
23 
30  class NWAlignNoTermGaps : public Align {
31  public:
32 
33  // CONSTRUCTORS:
34 
37 
40  const vector<unsigned int> &v1, const vector<unsigned int> &v2);
41 
44 
46  virtual ~NWAlignNoTermGaps();
47 
48 
49  // OPERATORS:
50 
53 
54 
55  // PREDICATES:
56 
58  virtual void getMultiMatch();
59 
60 
61  // MODIFIERS:
62 
64  virtual void copy(const NWAlignNoTermGaps &orig);
65 
67  virtual NWAlignNoTermGaps* newCopy();
68 
69 
70  // HELPERS:
71 
73  virtual void pCalculateMatrix(bool update = true);
74 
76  virtual void pCalculateMatrix(const vector<unsigned int> &v1,
77  const vector<unsigned int> &v2, bool update = true);
78 
79 
80  protected:
81 
82 
83  private:
84 
85  };
86 
87 }} // namespace
88 
89 #endif
Pairwise sequence and profile alignment.
Definition: Align.h:48
Base class for gap functions.
Definition: GapFunction.h:31
AlignmentData * ad
Pointer to AlignmentData.
Definition: Align.h:157
virtual ~NWAlignNoTermGaps()
Destructor.
Definition: NWAlignNoTermGaps.cc:59
virtual void pCalculateMatrix(bool update=true)
Update/create matrix values.
Definition: NWAlignNoTermGaps.cc:126
NWAlignNoTermGaps & operator=(const NWAlignNoTermGaps &orig)
Assignment operator.
Definition: NWAlignNoTermGaps.cc:70
virtual void getMultiMatch()
Return two-element array containing an alignment with maximal score.
Definition: NWAlignNoTermGaps.cc:83
virtual void copy(const NWAlignNoTermGaps &orig)
Copy orig object to this object ("deep copy").
Definition: NWAlignNoTermGaps.cc:109
virtual NWAlignNoTermGaps * newCopy()
Construct a new "deep copy" of this object.
Definition: NWAlignNoTermGaps.cc:114
Base class for printing alignments.
Definition: AlignmentData.h:35
NWAlignNoTermGaps(AlignmentData *ad, GapFunction *gf, ScoringScheme *ss)
Default constructor.
Definition: NWAlignNoTermGaps.cc:34
ScoringScheme * ss
Pointer to ScoringScheme.
Definition: Align.h:159
Implement Needleman-Wunsch global alignment with no penalty for the terminal hangouts of the sequence...
Definition: NWAlignNoTermGaps.h:30
Base class for scoring schemes.
Definition: ScoringScheme.h:34
GapFunction * gf
Pointer to GapFunction.
Definition: Align.h:158