Thomas 2 years ago
parent
commit
1e445b9d12
1 changed files with 7 additions and 7 deletions
  1. 7 7
      src/lib.rs

+ 7 - 7
src/lib.rs

@@ -722,13 +722,13 @@ fn matched_range (cigar: &str, flag: &i32, matched_seq: &mut str) -> (Range<usiz
                     let mut current_add = num_acc.parse::<usize>().unwrap();
                     num_acc = "".to_string();
 
-                    // if n_head_to_rm > 0 && curr_op == 1 {
-                    //     current_add = current_add - n_head_to_rm;
-                    // }
-                    // if n_trail_to_rm > 0 && curr_op == n_op {
-                    //     current_add = current_add - n_trail_to_rm;
-                    // }
-                    // curr_op += 1;
+                    if n_head_to_rm > 0 && curr_op == 1 {
+                        current_add = current_add - n_head_to_rm;
+                    }
+                    if n_trail_to_rm > 0 && curr_op == n_op {
+                        current_add = current_add - n_trail_to_rm;
+                    }
+                    curr_op += 1;
 
                     if f == "M" {
                         if first_m {