| 1 | #cxx . . $ `<file>/seagen/configuration.H`/ifndef CONFIGURATION_H |
| 2 | #define CONFIGURATION_Hcxx . . $ `seagen/configuration.H:2:9`! |
| 3 | |
| 4 | // |
| 5 | // A singleton for working with the command line parameters. |
| 6 | // |
| 7 | |
| 8 | #include "bio++.H"cxx . . $ `<file>/libbio/bio++.H`/ |
| 9 | #include "util++.H"cxx . . $ `<file>/libutil/util++.H`/ |
| 10 | |
| 11 | class configurationcxx . . $ configuration# { |
| 12 | public: |
| 13 | bool _beVerbosecxx . . $ configuration#_beVerbose.; |
| 14 | |
| 15 | uint32cxx . . $ uint32# _merSizecxx . . $ configuration#_merSize.; |
| 16 | uint32cxx . . $ uint32# _numSearchThreadscxx . . $ configuration#_numSearchThreads.; |
| 17 | |
| 18 | uint32cxx . . $ uint32# _merSkipcxx . . $ configuration#_merSkip.; |
| 19 | |
| 20 | bool _doReversecxx . . $ configuration#_doReverse.; |
| 21 | bool _doForwardcxx . . $ configuration#_doForward.; |
| 22 | |
| 23 | uint32cxx . . $ uint32# _maxDiagonalcxx . . $ configuration#_maxDiagonal.; |
| 24 | uint32cxx . . $ uint32# _maxGapcxx . . $ configuration#_maxGap.; |
| 25 | uint32cxx . . $ uint32# _qsOverlapcxx . . $ configuration#_qsOverlap.; |
| 26 | uint32cxx . . $ uint32# _dsOverlapcxx . . $ configuration#_dsOverlap.; |
| 27 | |
| 28 | uint32cxx . . $ uint32# _extendWeightcxx . . $ configuration#_extendWeight.; |
| 29 | uint32cxx . . $ uint32# _extendMinimumcxx . . $ configuration#_extendMinimum.; |
| 30 | bool _extendAlternatecxx . . $ configuration#_extendAlternate.; |
| 31 | |
| 32 | uint32cxx . . $ uint32# _maxIntronLengthcxx . . $ configuration#_maxIntronLength.; |
| 33 | |
| 34 | uint32cxx . . $ uint32# _smallSequenceCutoffcxx . . $ configuration#_smallSequenceCutoff.; |
| 35 | |
| 36 | uint32cxx . . $ uint32# _minLengthSinglecxx . . $ configuration#_minLengthSingle.; |
| 37 | double _minCoverageSinglecxx . . $ configuration#_minCoverageSingle.; |
| 38 | |
| 39 | double _minCoverageMultiplecxx . . $ configuration#_minCoverageMultiple.; |
| 40 | uint32cxx . . $ uint32# _minLengthMultiplecxx . . $ configuration#_minLengthMultiple.; |
| 41 | |
| 42 | char *_dbFileNamecxx . . $ configuration#_dbFileName.; |
| 43 | char *_qsFileNamecxx . . $ configuration#_qsFileName.; |
| 44 | char *_maskFileNamecxx . . $ configuration#_maskFileName.; |
| 45 | char *_onlyFileNamecxx . . $ configuration#_onlyFileName.; |
| 46 | char *_outputFileNamecxx . . $ configuration#_outputFileName.; |
| 47 | char *_queryMatchFileNamecxx . . $ configuration#_queryMatchFileName.; |
| 48 | |
| 49 | int _outputFilecxx . . $ configuration#_outputFile.; |
| 50 | int _matchCountsFilecxx . . $ configuration#_matchCountsFile.; |
| 51 | |
| 52 | char *_tableTemporaryFileNamecxx . . $ configuration#_tableTemporaryFileName.; |
| 53 | |
| 54 | char *_tableFileNamecxx . . $ configuration#_tableFileName.; |
| 55 | bool _tableBuildOnlycxx . . $ configuration#_tableBuildOnly.; |
| 56 | |
| 57 | bool _binaryOutputcxx . . $ configuration#_binaryOutput.; |
| 58 | |
| 59 | seqStreamcxx . . $ seqStream# *_dbSTREAMcxx . . $ configuration#_dbSTREAM.; |
| 60 | |
| 61 | // Running state |
| 62 | // |
| 63 | seqCachecxx . . $ seqCache# *_qsFASTAcxx . . $ configuration#_qsFASTA.; |
| 64 | existDBcxx . . $ existDB# *_maskDBcxx . . $ configuration#_maskDB.; |
| 65 | existDBcxx . . $ existDB# *_onlyDBcxx . . $ configuration#_onlyDB.; |
| 66 | positionDBcxx . . $ positionDB# *_positionscxx . . $ configuration#_positions.; |
| 67 | |
| 68 | uint32cxx . . $ uint32# _numberOfQueriescxx . . $ configuration#_numberOfQueries.; |
| 69 | |
| 70 | // Wall clock times |
| 71 | // |
| 72 | double _startTimecxx . . $ configuration#_startTime.; |
| 73 | double _initTimecxx . . $ configuration#_initTime.; |
| 74 | double _buildTimecxx . . $ configuration#_buildTime.; |
| 75 | double _searchTimecxx . . $ configuration#_searchTime.; |
| 76 | |
| 77 | // sweatShop queue sizes; maximum number of sequences pre-loaded, |
| 78 | // maximum number of results waiting for output. |
| 79 | // |
| 80 | uint32cxx . . $ uint32# _loaderQueuecxx . . $ configuration#_loaderQueue.; |
| 81 | struct timespec _loaderSleepcxx . . $ configuration#_loaderSleep.; |
| 82 | bool _loaderWarningscxx . . $ configuration#_loaderWarnings.; |
| 83 | |
| 84 | struct timespec _searchSleepcxx . . $ configuration#_searchSleep.; |
| 85 | |
| 86 | uint32cxx . . $ uint32# _writerQueuecxx . . $ configuration#_writerQueue.; |
| 87 | struct timespec _writerSleepcxx . . $ configuration#_writerSleep.; |
| 88 | bool _writerWarningscxx . . $ configuration#_writerWarnings.; |
| 89 | |
| 90 | configurationcxx . . $ configuration#configuration(49f6e7a06ebc5aa8).(); |
| 91 | ~cxx . . $ configuration#`~configuration`(49f6e7a06ebc5aa8).configurationcxx . . $ configuration#(); |
| 92 | |
| 93 | void usagecxx . . $ configuration#usage(fda57c8427c60377).(char *name); |
| 94 | void readcxx . . $ configuration#read(c759356ac01a31e7).(int argc, char **argv); |
| 95 | |
| 96 | void setTimecxx . . $ configuration#setTime(ac28bcc6049edbea).(struct timespec *ts, double t) { |
| 97 | ts->tv_sec = (time_t)floorcxx . . $ floor(fee4f1d22bc8e617).(t); |
| 98 | ts->tv_nsec = (long)((t - ts->tv_sec) * 1e9); |
| 99 | }; |
| 100 | private: |
| 101 | void addToUsecxx . . $ configuration#addToUse(cb2f890c2fdad230).(uint32cxx . . $ uint32# v); |
| 102 | void parseUseLinecxx . . $ configuration#parseUseLine(fda57c8427c60377).(char *line); |
| 103 | }; |
| 104 | |
| 105 | extern configurationcxx . . $ configuration# configcxx . . $ config.; |
| 106 | |
| 107 | #endif // CONFIGURATION_H |