Skip to content

Commit

Permalink
no float-sized gaps
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry-Antipov committed Aug 12, 2024
1 parent e5310c9 commit dac99de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/scaffolding/scaffold_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ def scaffoldFromOrPathIds(self, or_ids, prefinal_paths):
before_gap = prefinal_paths.getPathById(prev_nor_id)[-1]
else:
before_gap = gf.rc_path(prefinal_paths.getPathById(prev_nor_id))[-1]
gap_len = min(ScaffoldGraph.DEFAULT_GAP_SIZE, self.orNodeDist(before_gap, after_gap))
gap_len = min(ScaffoldGraph.DEFAULT_GAP_SIZE, round(self.orNodeDist(before_gap, after_gap)))
if gap_len != 0:
scf_path.append(f"[N{gap_len}N:scaffold]")
else:
Expand Down

0 comments on commit dac99de

Please sign in to comment.