|
|
@@ -551,19 +551,23 @@ impl NeoContig {
|
|
|
lines.push(contig);
|
|
|
}
|
|
|
|
|
|
- // other ref
|
|
|
+ // I f more than one reference seque,ce
|
|
|
if self.alignments.len() > 1 {
|
|
|
|
|
|
let ref_spaces = " ".repeat(self.alignments[1].query_range.start).as_bytes().to_vec();
|
|
|
|
|
|
// match pipes
|
|
|
- let mut match_pipes = self.alignments[1].ref_cigar.as_bytes().iter().filter(|c| **c == b'M').map(|_| b'|')
|
|
|
+ let mut match_pipes = self.alignments[1]
|
|
|
+ .ref_cigar.as_bytes().iter()
|
|
|
+ .filter(|c| **c == b'M')
|
|
|
+ .map(|_| b'|')
|
|
|
.collect::<Vec<u8>>();
|
|
|
+
|
|
|
let mut l = ref_spaces.clone();
|
|
|
l.append(&mut match_pipes);
|
|
|
|
|
|
let mut ll = format!("{} - {}:{}-{}{}",
|
|
|
- " ".repeat(contig_len + 1 - l.len()).to_string(),
|
|
|
+ " ".repeat(contig_len).to_string(),
|
|
|
self.alignments[1].ref_name,
|
|
|
self.alignments[1].ref_range.start,
|
|
|
self.alignments[1].ref_range.end,
|