]> git.donarmstrong.com Git - mothur.git/blob - alignment.hpp
fixed bugs in venn and aligner
[mothur.git] / alignment.hpp
1 #ifndef DPALIGNMENT_H
2 #define DPALIGNMENT_H
3
4 /*
5  *  dpalignment.h
6  *  
7  *
8  *  Created by Pat Schloss on 12/15/08.
9  *  Copyright 2008 Patrick D. Schloss. All rights reserved.
10  *
11  *  This is a class for an abstract datatype for classes that implement various types of alignment      algorithms.
12  *      As of 12/18/08 these included alignments based on blastn, needleman-wunsch, and the     Gotoh algorithms
13  * 
14  */
15
16 #include "mothur.h"
17 #include "alignmentcell.hpp"
18
19 /**************************************************************************************************/
20
21 class Alignment {
22         
23 public:
24         Alignment(int);
25         Alignment();
26         virtual ~Alignment();
27         virtual void align(string, string) = 0;
28         
29         
30 //      float getAlignmentScore();
31         string getSeqAAln();
32         string getSeqBAln();
33         int getCandidateStartPos();
34         int getCandidateEndPos();
35         int getTemplateStartPos();
36         int getTemplateEndPos();
37         
38         int getPairwiseLength();
39 //      int getLongestTemplateGap();
40
41 protected:
42         void traceBack();
43         string seqA, seqAaln;
44         string seqB, seqBaln;
45         int seqAstart, seqAend;
46         int seqBstart, seqBend;
47         int pairwiseLength;
48         int nRows, nCols, lA, lB;
49         vector<vector<AlignmentCell> > alignment;
50 };
51
52 /**************************************************************************************************/
53
54 #endif