| 18 | class RecordOutputMgr; |
| 19 | |
| 20 | class ComplementFile : public ToolBase { |
| 21 | |
| 22 | public: |
| 23 | ComplementFile(ContextComplement *context); |
| 24 | virtual ~ComplementFile(); |
| 25 | virtual bool init(); |
| 26 | virtual bool findNext(RecordKeyVector &hits); |
| 27 | virtual void processHits(RecordOutputMgr *outputMgr, RecordKeyVector &hits); |
| 28 | virtual void checkCoordinatesAgainstChromLength(const Record *rec); |
| 29 | virtual void cleanupHits(RecordKeyVector &hits); |
| 30 | virtual bool finalizeCalculations() {return true;} |
| 31 | virtual void giveFinalReport(RecordOutputMgr *outputMgr); |
| 32 | |
| 33 | |
| 34 | protected: |
| 35 | FileRecordMergeMgr *_frm; |
| 36 | Bed3Interval _outRecord; |
| 37 | string _currChrom; |
| 38 | const NewGenomeFile *_genomeFile; |
| 39 | CHRPOS _currStartPos; |
| 40 | bool _onlyChromsWithBedRecords; |
| 41 | RecordOutputMgr *_outputMgr; |
| 42 | const vector<string> &_chromList; |
| 43 | int _currPosInGenomeList; |
| 44 | |
| 45 | virtual ContextComplement *upCast(ContextBase *context) { return static_cast<ContextComplement *>(context); } |
| 46 | |
| 47 | void outPutLastRecordInPrevChrom(); |
| 48 | bool fastForward(const string &newChrom); |
| 49 | void printRecord(CHRPOS endPos); |
| 50 | }; |
| 51 | |
| 52 | |
| 53 |
nothing calls this directly
no outgoing calls
no test coverage detected