|
|
@@ -231,12 +231,12 @@ impl BwaAlign {
|
|
|
let (deletions, insertions) = find_deletion_insertion_ranges(record.pos() as u32 + 1, Cigar::new_from_str(&format!("{}", record.cigar())), record.is_reverse());
|
|
|
let contig = self.bwa_tid_contig(record.tid() as usize);
|
|
|
deletions.iter().for_each(|(s, e)| {
|
|
|
- all_ranges.push(("deletion".to_string(), contig.to_string(), *s as i32, *e as i32));
|
|
|
+ all_ranges.push(("del".to_string(), contig.to_string(), *s as i32, *e as i32));
|
|
|
});
|
|
|
insertions.iter().for_each(|(s, e)| {
|
|
|
let s = *s as i32;
|
|
|
let e = *e as i32;
|
|
|
- all_ranges.push(("insertion".to_string(), contig.to_string(), s, e ));
|
|
|
+ all_ranges.push(("ins".to_string(), contig.to_string(), s, e ));
|
|
|
});
|
|
|
}
|
|
|
}
|