Skip to content

Commit

Permalink
do not add suffixes to the query names when it is split in SAM format
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaGuarracino committed Jun 24, 2024
1 parent 59f12f6 commit 492af26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/align/include/computeAlignments.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ typedef atomic_queue::AtomicQueue<std::string*, 1024, nullptr, true, true, false
}

// To distinguish split alignment in SAM output format (currentRecord.rankMapping == 0 to avoid the suffix there is just one alignment for the query)
const std::string query_name_suffix = param.split && param.sam_format ? "_" + std::to_string(rec->currentRecord.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,
Expand Down Expand Up @@ -523,7 +523,7 @@ typedef atomic_queue::AtomicQueue<std::string*, 1024, nullptr, true, true, false
!param.sam_format,
param.no_seq_in_sam);
wflign->wflign_affine_wavefront(
rec->currentRecord.qId + query_name_suffix,
rec->currentRecord.qId,// + query_name_suffix,
queryRegionStrand,
rec->queryTotalLength,
rec->queryStartPos,
Expand Down

0 comments on commit 492af26

Please sign in to comment.