-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.hpp
57 lines (41 loc) · 1.02 KB
/
config.hpp
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
#ifndef CONFIG_HPP
#define CONFIG_HPP
#include <string>
#include <vector>
#include <iostream>
#include "cxxopts.hpp"
#include "bed_utils.hpp"
using namespace std ;
class Configuration {
private:
static Configuration* instance ;
public:
static Configuration* getInstance() ;
void parse(int argc, char* argv[]) ;
int cutoff = 5 ;
int overlap = 0 ;
int threads = 4 ;
int coverage = 50 ;
int batch_size = 1000 ;
int aggregate_batches = 0 ;
int min_string_length = 0 ; // not enforced by default
bool binary ;
bool aggregate ;
std::string bed ;
std::string bam ;
std::string vcf ;
std::string type ;
std::string workdir ;
std::string append ;
std::string index ;
std::string fastq ;
std::string fasta ;
std::string reference ;
private:
Configuration() ;
Configuration(Configuration const&) = delete ;
void operator=(Configuration const&) = delete ;
Configuration& operator[](std::string) ;
cxxopts::Options parser ;
};
#endif