Skip to content

Commit

Permalink
remove duplicate function update_tiling()
Browse files Browse the repository at this point in the history
  • Loading branch information
LaraFuhrmann committed Apr 29, 2024
1 parent 1def5e8 commit f173727
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions viloca/b2w.py
Original file line number Diff line number Diff line change
Expand Up @@ -684,30 +684,6 @@ def parallel_run_one_window(



def update_tiling(tiling, extended_window_mode, max_ins_at_pos):
"""
input tiling:
return: tiling = [
(window_start, original_window_length, control_window_length, counter)
for each window
]
"""
update_tiling = []

for idx, (window_start, window_length) in enumerate(tiling):
original_window_length = window_length
if extended_window_mode:
for pos, val in max_ins_at_pos.items():
if window_start <= pos < window_start + original_window_length:
window_length += val
update_tiling.append((window_start,original_window_length, window_length))
else:
update_tiling.append((window_start,original_window_length, window_length))

return update_tiling


def build_windows(alignment_file: str, tiling_strategy: TilingStrategy,
win_min_ext: float, maximum_reads: int, minimum_reads: int,
reference_filename: str,
Expand Down

0 comments on commit f173727

Please sign in to comment.