From 43941c33980e9b771c7d2a45899fd4dfe7a08e56 Mon Sep 17 00:00:00 2001 From: Mitchell Robert Vollger Date: Thu, 18 Jul 2024 11:50:07 -0700 Subject: [PATCH] fix: clean up cli interactions with pileup --- src/pileup.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pileup.rs b/src/pileup.rs index 1f62b030..eaf94d35 100644 --- a/src/pileup.rs +++ b/src/pileup.rs @@ -322,10 +322,10 @@ impl<'a> FiberseqPileup<'a> { return Ok(()); } let mut write_start_index = 0; - let mut write_end_index = 0; - for i in 0..self.track_len { + let mut write_end_index = 1; + for i in 1..self.track_len { // do we have the same data as the previous row? - if self.wait_to_write(i) || write_start_index == write_end_index { + if self.wait_to_write(i) { write_end_index = i + 1; } else { let mut line = format!(