From a4d0b812d410131cbab15005d65a376389d8757b Mon Sep 17 00:00:00 2001 From: Andrea Telatin <15690844+telatin@users.noreply.github.com> Date: Fri, 17 Dec 2021 15:40:43 +0000 Subject: [PATCH] change-sort-check --- base.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base.cpp b/base.cpp index a96443e..2f56d91 100644 --- a/base.cpp +++ b/base.cpp @@ -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)); }