Skip to content
Snippets Groups Projects
Commit f7b297ff authored by Aaron's avatar Aaron
Browse files

Moved nullBed reset to GetNextBed

parent 28a92d12
No related branches found
No related tags found
No related merge requests found
......@@ -200,7 +200,7 @@ void BedIntersect::IntersectBed() {
int lineNum = 0;
vector<BED> hits;
hits.reserve(100);
BED a, nullBed;
BED a;
BedLineStatus bedStatus;
// open the "A" file, process each BED entry and searh for overlaps.
......@@ -211,7 +211,6 @@ void BedIntersect::IntersectBed() {
if (_obeySplits == false) {
FindOverlaps(a, hits);
hits.clear();
a = nullBed;
}
// split the BED12 into blocks and look for overlaps in each discrete block
else {
......@@ -224,7 +223,6 @@ void BedIntersect::IntersectBed() {
FindOverlaps(*bedItr, hits);
hits.clear();
}
a = nullBed;
}
}
}
......
......@@ -173,6 +173,9 @@ BedLineStatus BedFile::GetNextBed(BED &bed, int &lineNum) {
// make sure there are still lines to process.
// if so, tokenize, validate and return the BED entry.
_bedFields.clear();
// clear out the previous bed's data
BED null;
bed = null;
if (_bedStream->good()) {
// parse the bedStream pointer
getline(*_bedStream, _bedLine);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment