diff --git a/src/align/include/computeAlignments.hpp b/src/align/include/computeAlignments.hpp index 2cb11a65..51bed386 100644 --- a/src/align/include/computeAlignments.hpp +++ b/src/align/include/computeAlignments.hpp @@ -482,7 +482,7 @@ typedef atomic_queue::AtomicQueuecurrentRecord.rankMapping) : ""; + //const std::string query_name_suffix = param.split && param.sam_format ? "_" + std::to_string(rec->currentRecord.rankMapping) : ""; wflign::wavefront::WFlign* wflign = new wflign::wavefront::WFlign( param.wflambda_segment_length, @@ -523,7 +523,7 @@ typedef atomic_queue::AtomicQueuewflign_affine_wavefront( - rec->currentRecord.qId + query_name_suffix, + rec->currentRecord.qId,// + query_name_suffix, queryRegionStrand, rec->queryTotalLength, rec->queryStartPos, diff --git a/src/common/wflign/src/wflign_patch.cpp b/src/common/wflign/src/wflign_patch.cpp index 0754856f..25544fe0 100644 --- a/src/common/wflign/src/wflign_patch.cpp +++ b/src/common/wflign/src/wflign_patch.cpp @@ -1715,24 +1715,12 @@ query_start : query_end) query_offset + (query_is_rev ? query_length - query_start : query_end); - if (query_is_rev) { - if (query_length > query_end_pos) { - out << (query_length - query_end_pos) << "H"; - } - } else { - if (query_start_pos > 0) { - out << query_start_pos << "H"; - } + if (query_start_pos > 0) { + out << query_start_pos << "H"; } out << cigarv; - if (query_is_rev) { - if (query_start_pos > 0) { - out << query_start_pos << "H"; - } - } else { - if (query_length > query_end_pos) { - out << (query_length - query_end_pos) << "H"; - } + if (query_total_length > query_end_pos) { + out << (query_total_length - query_end_pos) << "H"; } out << "\t"