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

No need to force chroms to be sorted. Avoid diff.s b/w chr1 and 1

parent 054fc857
No related branches found
No related tags found
No related merge requests found
......@@ -199,22 +199,17 @@ BedLineStatus BedFile::GetNextBed(BED &bed, int &lineNum, bool forceSorted) {
if ((int) bed.start >= _prev_start) {
_prev_chrom = bed.chrom;
_prev_start = bed.start;
return status;
}
else {
cerr << "ERROR: input file: (" << bedFile << ") is not sorted by chrom then start" << endl;
exit(1);
}
}
else if (bed.chrom > _prev_chrom) {
else if (bed.chrom != _prev_chrom) {
_prev_chrom = bed.chrom;
_prev_start = bed.start;
return status;
}
else if (bed.chrom < _prev_chrom) {
cerr << "ERROR: input file: (" << bedFile << ") is not sorted by chrom then start" << endl;
exit(1);
}
return status;
}
else {
return status;
......
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