Debian Codegraph @

seagen/configuration.H

raw symbols SCIP
1 #ifndef CONFIGURATION_H
2 #define CONFIGURATION_H
3
4 //
5 // A singleton for working with the command line parameters.
6 //
7
8 #include "bio++.H"
9 #include "util++.H"
10
11 class configuration {
12 public:
13 bool _beVerbose;
14
15 uint32 _merSize;
16 uint32 _numSearchThreads;
17
18 uint32 _merSkip;
19
20 bool _doReverse;
21 bool _doForward;
22
23 uint32 _maxDiagonal;
24 uint32 _maxGap;
25 uint32 _qsOverlap;
26 uint32 _dsOverlap;
27
28 uint32 _extendWeight;
29 uint32 _extendMinimum;
30 bool _extendAlternate;
31
32 uint32 _maxIntronLength;
33
34 uint32 _smallSequenceCutoff;
35
36 uint32 _minLengthSingle;
37 double _minCoverageSingle;
38
39 double _minCoverageMultiple;
40 uint32 _minLengthMultiple;
41
42 char *_dbFileName;
43 char *_qsFileName;
44 char *_maskFileName;
45 char *_onlyFileName;
46 char *_outputFileName;
47 char *_queryMatchFileName;
48
49 int _outputFile;
50 int _matchCountsFile;
51
52 char *_tableTemporaryFileName;
53
54 char *_tableFileName;
55 bool _tableBuildOnly;
56
57 bool _binaryOutput;
58
59 seqStream *_dbSTREAM;
60
61 // Running state
62 //
63 seqCache *_qsFASTA;
64 existDB *_maskDB;
65 existDB *_onlyDB;
66 positionDB *_positions;
67
68 uint32 _numberOfQueries;
69
70 // Wall clock times
71 //
72 double _startTime;
73 double _initTime;
74 double _buildTime;
75 double _searchTime;
76
77 // sweatShop queue sizes; maximum number of sequences pre-loaded,
78 // maximum number of results waiting for output.
79 //
80 uint32 _loaderQueue;
81 struct timespec _loaderSleep;
82 bool _loaderWarnings;
83
84 struct timespec _searchSleep;
85
86 uint32 _writerQueue;
87 struct timespec _writerSleep;
88 bool _writerWarnings;
89
90 configuration();
91 ~configuration();
92
93 void usage(char *name);
94 void read(int argc, char **argv);
95
96 void setTime(struct timespec *ts, double t) {
97 ts->tv_sec = (time_t)floor(t);
98 ts->tv_nsec = (long)((t - ts->tv_sec) * 1e9);
99 };
100 private:
101 void addToUse(uint32 v);
102 void parseUseLine(char *line);
103 };
104
105 extern configuration config;
106
107 #endif // CONFIGURATION_H