forked from baoxingsong/AnchorWave
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
66 lines (59 loc) · 1.7 KB
/
main.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
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
66
/*
* =====================================================================================
*
* Filename: song.cpp
*
* Description:
*
* Version: 1.0
* Created: 06/23/2017 21:51:57
* Revision: none
* Compiler: gcc
*
* Author: Baoxing Song (songbx.me), [email protected]
*
* =====================================================================================
*/
#include <stdlib.h>
#include "src/controlLayer.h"
#include "./googletest/googletest/include/gtest/gtest.h"
int main(int argc, char **argv) {
// testing::InitGoogleTest(&argc, argv);
// RUN_ALL_TESTS();
// return 0;
if (argc <= 1) {
usage();
return 1;
}
std::string program = argv[1];
if (program.compare("-h") == 0 || program.compare("--help") == 0) {
usage();
exit(1);
}
#ifdef __AVX512BW__
std::cerr << "AVX512 is enabled" << std::endl;
#elif __AVX2__
std::cerr << "AVX2 is enabled" << std::endl;
#elif __SSE4_1__
std::cerr << "SSE4.1 is enabled" << std::endl;
#elif __SSE2__
std::cerr << "SSE2 is enabled" << std::endl;
#else
std::cerr << "The code has not been tested on you hardware platform." << std::endl;
std::cerr << "If you find anything abnormal, please contact us." << std::endl;
#endif
if (program.compare("gff2seq") == 0) {
return gff2seq(--argc, ++argv);
}
else if (program.compare("proali") == 0) {
return proportionalAlignment(--argc, ++argv);
}
else if (program.compare("genoAli") == 0) {
return genomeAlignment(--argc, ++argv);
}
else if (program.compare("ali") == 0) {
return ali(--argc, ++argv);
}
usage();
return 0;
}