]> git.donarmstrong.com Git - mothur.git/blob - alignment.hpp
fixed some bugs
[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 void align(string, string) = 0;
27         
28         float getAlignmentScore();
29         string getSeqAAln();
30         string getSeqBAln();
31         int getCandidateStartPos();
32         int getCandidateEndPos();
33         int getTemplateStartPos();
34         int getTemplateEndPos();
35
36         int getPairwiseLength();
37 //      int getLongestTemplateGap();
38
39 protected:
40         void traceBack();
41         string seqA, seqAaln;
42         string seqB, seqBaln;
43         int seqAstart, seqAend;
44         int seqBstart, seqBend;
45         int pairwiseLength;
46         int nRows, nCols, lA, lB;
47         vector<vector<AlignmentCell> > alignment;
48 };
49
50 /**************************************************************************************************/
51
52 #endif