-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
65 lines (34 loc) · 1.01 KB
/
main.cpp
File metadata and controls
65 lines (34 loc) · 1.01 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
61
62
63
64
65
#include <iostream>
#include <fstream>
#include <string>
#include "code/readFile.h"
#include "code/debruijn.h"
#include "code/fmindex.h"
#include "code/needleman_wunsch.h"
using namespace std;
int main() {
string filename;
cout << "Enter the filename: ";
getline(cin, filename);
int kmer_length;
cout << "Enter the length of the kmers: ";
cin >> kmer_length;
DeBruijnGraph dbg;
dbg.chopString(kmer_length, filename);
dbg.createGraph();
std::cout << "GRAPH CREATED \n";
dbg.formatGraph();
dbg.outputGraph();
// dbg.traversal();
dbg.connectedComponents();
std::string output_of_dbg = dbg.longestSequence();
std::cout << "Longest Sequence: " << output_of_dbg << "\n";
// FM
// FMIndex to_construct = FMIndex (output_of_dbg, output_of_dbg);
string f1 = "ACGT";
string f2 = "ACGT";
cout << needlemanWunschCost(f1, f2, 1.0, 1.0) << endl;
// ReadFile data;
// data.readsfiles(filename);
return 0;
}