MCPcopy Create free account
hub / github.com/arq5x/bedtools2 / ComplementFile

Class ComplementFile

src/complementFile/complementFile.h:20–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18class RecordOutputMgr;
19
20class ComplementFile : public ToolBase {
21
22public:
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
34protected:
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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected