forked from jonlee3/craut
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
24 lines (21 loc) · 1017 Bytes
/
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
#include "pch.h"
#include "CrautNew.h"
#include "utils.h"
#include "Linker.h"
static std::vector<Helix> helices = { Helix("AEAAAK", 8.7), Helix("AEAAAKA", 10.), Helix("AEAAAKAA", 10.8),
Helix("AEAAAKEAAAK", 15.6), Helix("AEAAAKEAAAKA", 16.8), Helix("AEAAAKEAAAKEAAAKA", 24.8),
Helix("AEAAAKEAAAKEAAAKEAAAKA", 32.3), Helix("AEAAAKEAAAKEAAAKEAAAKEAAAKA", 40.5) };
static std::vector<Angle> angles = { Angle(29.7, 8.5, "NVL"), Angle(38.7, 30., "KTA"), Angle(60., 12., "AADGTL"),
Angle(74.5, 27., "VNLTA"), Angle(117., 12., "AAAHPEA"), Angle(140., 15., "ASLPAA"),
Angle(160., 5., "ATGDLA") };
int main(int argc, char** argv) {
// TODO: add more general error checking for input
std::string usage = "Invalid arguments. Usage: CRAUT.exe pdb_filepath [number of linkers to print]";
if (argc < 2)
std::cout << usage << std::endl;
CrautNew craut(argv[1], 'A', helices, angles);
if(argc < 3)
craut.rank_and_print_linkers();
else
craut.rank_and_print_linkers(atoi(argv[2]));
}