-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmatrix.h
More file actions
33 lines (30 loc) · 1.24 KB
/
matrix.h
File metadata and controls
33 lines (30 loc) · 1.24 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
//matrix.h
#ifndef MATRIX_H
#define MATRIX_H
#include "msa.h"
#include <ostream>
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <cstddef>
#include <iterator>
#include <unordered_map>
using namespace std;
float run_pairwise_alignment(Sequence& seq1, Sequence& seq2, bool modify, vector<int>& subMatrix);
float calculate_similarity(string seq1, string seq2);
vector<int> create_matrix(string& seq1, string& seq2,
const int rows, const int cols, const size_t length, vector<int>& subMatrix);
void nw_seq_to_seq( string& seq1, string& seq2, string& aSeq1,
string& aSeq2, vector<int>& M, int rows, int cols);
void calc_distances(int numSeqs, vector<Sequence>& seqs, vector<int>& subMatrix,
vector<float>& distanceMatrix);
void nw_on_group(vector<int>& M, int rows, int cols,
vector<Sequence>& group1, vector<Sequence>& group2);
void setup_group_alignment(vector<Sequence>& group1,
vector<Sequence>& group2, int g1Idx, int g2Idx,
vector<int>& subMatrix);
void choose_seq_group_align(vector<Sequence>& group1,
vector<Sequence>& group2, vector<int>& subMatrix);
void align_clusters(vector<Sequence>& cToMerge1,
vector<Sequence>& cToMerge2, vector<int>& subMatrix);
#endif