-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNWalign.h
51 lines (42 loc) · 972 Bytes
/
NWalign.h
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
//
// NWalign.h
// NWalign
//
// Created by 包雨薇 on 17/11/19.
// Copyright © 2017年 包雨薇. All rights reserved.
//
#ifndef NWalign_h
#define NWalign_h
#include <string>
#include <utility>
#include <deque>
#include <unordered_map>
using namespace std;
struct grid {
char source = 'd';
int myScore = 0;
int wScore = 0;
int nScore = 0;
pair<int, int> wOrigin = make_pair(0, 0);
pair<int, int> nOrigin = make_pair(0, 0);
};
int GO = -11;
int GX = -1;
int aligLn = 0;
int idenLn = 0;
bool printS = false;
bool printM = false;
bool quiet = false;
string S1;
string S2;
string MXFILE = "blosum62.mat";
unordered_map<string, int> SCORE;
vector<vector<grid>> myMap;
void getMode(int argc, char * argv[]);
void parseScoreMX();
void calculateMap();
void compareGrid(int i, int j);
void printMap();
void backTrace(deque<char> &seq1, deque<char> &seq2);
void printPath(const deque<char> &seq1, deque<char> &seq2);
#endif /* NWalign_h */