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

Fixed bug in complementBed vis-a-vis Galaxy.

parent fb5efebf
No related branches found
No related tags found
No related merge requests found
No preview for this file type
No preview for this file type
......@@ -80,7 +80,7 @@ void BedComplement::ComplementBed() {
}
// mask all of the positions spanned by this BED entry.
for (int b = bIt->start; b <= bIt->end; b++) {
for (int b = bIt->start; b < bIt->end; b++) {
chromMasks[b] = 1;
}
}
......@@ -94,7 +94,7 @@ void BedComplement::ComplementBed() {
i++;
}
if (start > 0) {
cout << currChrom << "\t" << start -1 << "\t" << i << endl;
cout << currChrom << "\t" << start << "\t" << i << endl;
}
else {
cout << currChrom << "\t" << 0 << "\t" << i << endl;
......
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