-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdp_grid.cpp
More file actions
60 lines (42 loc) · 1 KB
/
Copy pathdp_grid.cpp
File metadata and controls
60 lines (42 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
class DP_Cell
{
protected:
int sScore;
int iScore;
int dScore;
int matches = 0;
int mismatches = 0;
int openings = 0;
int gaps = 0;
}
class DP_Grid
{
friend class DP_Cell;
int horizontal_length;
int vertical_length;
//get score function pointers
int get_sScore(int i, int j){}
int get_dScore(int i, int j){}
int get_iScore(int i, int j){}
//set score function pointers
int set_sScore(int i, int j, int score){}
int set_dScore(int i, int j, int score){}
int set_iScore(int i, int j, int score){}
//counter incrementers
int setMatchCount(int i, int j, int score){}
int setMismatchCount(int i, int j, int score){}
int setContinuousGapCount(int i, int j, int score){}
int setOpeningGapCount(int i, int j, int score){}
}
enum AlignmentType { none, local, global };
class Alignment
{
DP_Grid grid;
AlignmentType type = none;
string horizontal_sequence;
string vertical_sequence;
string alignment_sequence;
int horizontal_length;
int vertical_length;
int alignment_length;
}