Skip to content

Commit

Permalink
fix last window going over the end of reference seq
Browse files Browse the repository at this point in the history
  • Loading branch information
LaraFuhrmann committed Apr 25, 2024
1 parent d0bb2ff commit 6b29140
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions viloca/tiling.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,9 @@ def get_window_tilings(self) -> List[Tuple[int, int]]:
self.end - 1,
self.incr
))
#while window_positions[-1] + self.window_length >= self.end:
# del window_positions[-1] # FIXME uncommented to create one single window
while window_positions[-1] + self.window_length >= self.end:
del window_positions[-1] # FIXME uncommented to create one single window
window_positions.append(self.end - 1 - self.window_length)

else:
window_positions = list(range(
Expand Down

0 comments on commit 6b29140

Please sign in to comment.