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

Fixed bug in processing BED files in coverageBed using the Open/Get/Close idiom.

	Open and Close were omitted by mistake.
parent bcd7d9f4
No related branches found
No related tags found
No related merge requests found
......@@ -58,7 +58,8 @@ void BedCoverage::CollectCoverageBed() {
int lineNum = 0; // current input line number
BED a, nullBed;
BedLineStatus bedStatus;
_bedA->Open();
// process each entry in A
bedStatus = _bedA->GetNextBed(a, lineNum);
while (bedStatus != BED_INVALID) {
......@@ -69,6 +70,7 @@ void BedCoverage::CollectCoverageBed() {
}
bedStatus = _bedA->GetNextBed(a, lineNum);
}
_bedA->Close();
// report the coverage (summary or histogram) for BED B.
ReportCoverage();
......
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