Skip to content

Commit

Permalink
fix: clean up cli interactions with pileup
Browse files Browse the repository at this point in the history
  • Loading branch information
mrvollger committed Jul 18, 2024
1 parent d7f35ae commit 43941c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pileup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!(
Expand Down

0 comments on commit 43941c3

Please sign in to comment.