Skip to content

Commit

Permalink
change-sort-check
Browse files Browse the repository at this point in the history
  • Loading branch information
telatin committed Dec 17, 2021
1 parent 4bb1e69 commit a4d0b81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,8 @@ int main(int argc, char *argv[]) {
// output coverage
assert(coverage_ends.size() == coverage);

// check unsorted 1.3.3
if ( not ( last_pos <= next_change or (last_pos == 0 and next_change == 0) )) {
// check unsorted 1.3.4
if ( last_pos > next_change ) {
throw string("Position going backward, is the BAM sorted? last_pos=" +
to_string(last_pos) + " next_change=" + to_string(next_change));
}
Expand Down

0 comments on commit a4d0b81

Please sign in to comment.