| 1 |
/* BaitFisher (version 1.2.8) a program for designing DNA target enrichment baits |
| 2 |
* BaitFilter (version 1.0.6) a program for selecting optimal bait regions |
| 3 |
* Copyright 2013-2017 by Christoph Mayer |
| 4 |
* |
| 5 |
* This source file is part of the BaitFisher-package. |
| 6 |
* |
| 7 |
* This program is free software: you can redistribute it and/or modify |
| 8 |
* it under the terms of the GNU General Public License as published by |
| 9 |
* the Free Software Foundation, either version 3 of the License, or |
| 10 |
* (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 General Public License for more details. |
| 16 |
* |
| 17 |
* You should have received a copy of the GNU General Public License |
| 18 |
* along with BaitFisher. If not, see <http://www.gnu.org/licenses/>. |
| 19 |
* |
| 20 |
* |
| 21 |
* For any enquiries send an Email to Christoph Mayer |
| 22 |
* [email protected] |
| 23 |
* |
| 24 |
* When publishing work that is based on the results please cite: |
| 25 |
* Mayer et al. 2016: BaitFisher: A software package for multi-species target DNA enrichment probe design |
| 26 |
* |
| 27 |
*/ |
| 28 |
#ifndef GLOBAL_TYPES_AND_PARAMETERS_H |
| 29 |
#define GLOBAL_TYPES_AND_PARAMETERS_H |
| 30 |
|
| 31 |
#include <cstdio> |
| 32 |
#include <iostream> |
| 33 |
#include <vector> |
| 34 |
#include <string> |
| 35 |
#include <cstring> |
| 36 |
#include "faststring2.h" |
| 37 |
#include <climits> |
| 38 |
#include <fstream> |
| 39 |
|
| 40 |
#define DEBUG |
| 41 |
|
| 42 |
#define PROGNAME "Bait-Filter" |
| 43 |
#define VERSION "1.0.6" |
| 44 |
|
| 45 |
extern faststring global_bait_filename; // |
| 46 |
extern char global_mode; // |
| 47 |
extern faststring global_blast_exe; // |
| 48 |
extern faststring global_output_filename; |
| 49 |
|
| 50 |
extern double global_blast_min_hit_coverage_of_bait; |
| 51 |
extern double global_blast_max_first_hit_evalue; |
| 52 |
extern double global_blast_max_second_hit_evalue; |
| 53 |
extern faststring global_blast_db; // |
| 54 |
|
| 55 |
extern faststring global_blast_extra_commandline; |
| 56 |
extern faststring global_blast_evalue_commandline; |
| 57 |
extern unsigned global_thinning_step_width; |
| 58 |
extern bool global_use_GUI; |
| 59 |
extern unsigned global_conversion_mode; |
| 60 |
extern faststring global_ProbeID_prefix; |
| 61 |
extern unsigned global_verbosity; |
| 62 |
extern faststring global_blast_result_file; |
| 63 |
|
| 64 |
|
| 65 |
extern bool skip_blast; |
| 66 |
|
| 67 |
#define macromax(x,y) ((x)<(y) ? (y) : (x)) |
| 68 |
#define macromin(x,y) ((x)<(y) ? (x) : (y)) |
| 69 |
|
| 70 |
#ifdef DEBUG |
| 71 |
#define DEBUGOUT1(x) std::cerr << x << '\n'; |
| 72 |
#define DEBUGOUT2(x,y) std::cerr << x << y << '\n'; |
| 73 |
#define DEBUGOUT3(x,y,z) std::cerr << x << y << z << '\n'; |
| 74 |
#define DEBUGOUT4(x,y,z,w) std::cerr << x << y << z << w << '\n'; |
| 75 |
#else |
| 76 |
#define DEBUGOUT1(x) |
| 77 |
#define DEBUGOUT2(x,y) |
| 78 |
#define DEBUGOUT3(x,y,z) |
| 79 |
#define DEBUGOUT4(x,y,z,w) |
| 80 |
#endif |
| 81 |
|
| 82 |
|
| 83 |
void good_bye_and_exit(FILE *of, int); |
| 84 |
void good_bye_and_exit(std::ostream&, int); |
| 85 |
void init_param(); |
| 86 |
void read_and_init_parameters(int argc, char** argv, std::ostream &); |
| 87 |
void print_parameters(FILE*, const char *s); |
| 88 |
void print_parameters(std::ostream&, const char *s); |
| 89 |
void print_calling_command_line(FILE*,unsigned, char**); |
| 90 |
void print_calling_command_line(std::ostream&,unsigned, char**); |
| 91 |
|
| 92 |
#endif |