From 377876983e0c442a69e7a65210c04611b383fd96 Mon Sep 17 00:00:00 2001 From: "Erik Garrison (aider)" Date: Thu, 12 Dec 2024 17:52:41 -0600 Subject: [PATCH] chore: Comment out debug messages in adjust_cigar_string function --- src/align/include/computeAlignments.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/align/include/computeAlignments.hpp b/src/align/include/computeAlignments.hpp index 407726af..52feb7f2 100644 --- a/src/align/include/computeAlignments.hpp +++ b/src/align/include/computeAlignments.hpp @@ -532,8 +532,8 @@ std::string adjust_cigar_string(const std::string& cigar, int query_pos = query_start + query_seq.size() - last_count - second_last_count; int target_pos = target_start + target_seq.size() - last_count - second_last_count; - std::cerr << "\n[DEBUG] Considering trailing swap of " << second_last_count << "D with " << last_count << "=" << std::endl; - std::cerr << "[DEBUG] Current positions - Query pos: " << query_pos << ", Target pos: " << target_pos << std::endl; + /* std::cerr << "\n[DEBUG] Considering trailing swap of " << second_last_count << "D with " << last_count << "=" << std::endl; + std::cerr << "[DEBUG] Current positions - Query pos: " << query_pos << ", Target pos: " << target_pos << std::endl; */ bool can_swap = true; @@ -543,9 +543,9 @@ std::string adjust_cigar_string(const std::string& cigar, int64_t t_idx = target_pos + k; if (q_idx >= query_seq.size() || t_idx >= target_seq.size()) { - std::cerr << "[DEBUG] Position out of bounds - q_idx: " << q_idx + /* std::cerr << "[DEBUG] Position out of bounds - q_idx: " << q_idx << " (max: " << query_seq.size() << "), t_idx: " << t_idx - << " (max: " << target_seq.size() << ")" << std::endl; + << " (max: " << target_seq.size() << ")" << std::endl; */ can_swap = false; break; } @@ -573,7 +573,7 @@ std::string adjust_cigar_string(const std::string& cigar, } } - std::cerr << "[DEBUG] Trailing swap validation - can_swap: " << (can_swap ? "true" : "false") << std::endl; + /* std::cerr << "[DEBUG] Trailing swap validation - can_swap: " << (can_swap ? "true" : "false") << std::endl; */ if (can_swap) { // Directly construct the swapped string