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

Method checkCoordinatesAgainstChromLength

src/complementFile/complementFile.cpp:63–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63void ComplementFile::checkCoordinatesAgainstChromLength(const Record *rec) {
64 CHRPOS maxChromSize = _genomeFile->getChromSize(_currChrom);
65 if (rec->getStartPos() > maxChromSize || rec->getEndPos() > maxChromSize) {
66 cerr << "***** WARNING: " << rec->getChrName() << ":" << rec->getStartPos()
67 << "-" << rec->getEndPos() << " exceeds the length of chromosome ("
68 << _currChrom << ")" << endl;
69 }
70}
71
72void ComplementFile::cleanupHits(RecordKeyVector &hits) {
73 _frm->deleteMergedRecord(hits);

Callers

nothing calls this directly

Calls 4

getChrNameMethod · 0.80
getChromSizeMethod · 0.45
getStartPosMethod · 0.45
getEndPosMethod · 0.45

Tested by

no test coverage detected