From 6b291408c48e87adc85b23fa49282e58e2fef217 Mon Sep 17 00:00:00 2001 From: LaraFuhrmann <55209716+LaraFuhrmann@users.noreply.github.com> Date: Thu, 25 Apr 2024 13:52:45 +0200 Subject: [PATCH] fix last window going over the end of reference seq --- viloca/tiling.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/viloca/tiling.py b/viloca/tiling.py index 2665f2b..5a2ab77 100644 --- a/viloca/tiling.py +++ b/viloca/tiling.py @@ -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(