Debian Codegraph @

tools/kissnp2/src/main.cpp

raw
1 /*****************************************************************************
2 * discoSnp++: discovering polymorphism from raw unassembled NGS reads
3 * A tool from the GATB (Genome Assembly Tool Box)
4 * Copyright (C) 2014 INRIA
5 * Authors: P.Peterlongo, E.Drezen
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU Affero General Public License as
9 * published by the Free Software Foundation, either version 3 of the
10 * License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU Affero General Public License for more details.
16 *
17 * You should have received a copy of the GNU Affero General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 *****************************************************************************/
20
21 /********************************************************************************/
22
23 #include <Kissnp2.hpp>
24
25 using namespace std;
26
27 /********************************************************************************/
28
29 int main (int argc, char* argv[])
30 {
31 // We define a try/catch block in case some method fails (bad filename for instance)
32 try
33 {
34 /** We execute the tool. */
35 Kissnp2().run (argc, argv);
36 }
37
38 catch (OptionFailure& e)
39 {
40 return e.displayErrors (cout);
41 }
42
43 catch (Exception& e)
44 {
45 cerr << "EXCEPTION: " << e.getMessage() << endl;
46 return EXIT_FAILURE;
47 }
48
49 return EXIT_SUCCESS;
50 }
51