-
Notifications
You must be signed in to change notification settings - Fork 0
/
Main_Data.cpp
38 lines (36 loc) · 1.09 KB
/
Main_Data.cpp
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
#include "Main_Header.h"
int main(int argc,char* argv[]){
string filepath=argv[1];
int no_lines=atoi(argv[2]);
Main_Data fr(filepath);
char X;
cout << "SELECT AN OPERATION" << endl;
cout << "A. Initialize fetching data the array data-structure with the 1 million reads." << endl;
cout << "B. Initialize fetching data the array data-structure with the entire 36 million reads." << endl;
cout << "C. Compute Statistics(Unique seq frag, No of Reads, Char count of A,C,G,T)" << endl;
cout << "D. Deallocate the array" << endl;
cout << "E. Sort 36 Million data " << endl;
cin >> X;
switch(X){
case 'A': cout << "Initializing array for 1 million" << endl;
fr.read(no_lines);
break;
case 'B': cout << "Initializing array for 36 million" << endl;
fr.read(no_lines);
break;
case 'C': cout << "Compute Statistics" << endl;
fr.read(no_lines);
fr.compute_statistics();
break;
case 'D': cout << "Deallocate Array" << endl;
fr.read(no_lines);
fr.delete_my_array();
break;
case 'E': cout << "Sort 36 Million data" << endl;
fr.read(no_lines);
fr.sort_data();
break;
default : cout << "Choose A,B,C,D or E" << endl;
break;
}
}