Skip to content

Commit 3f0376a

Browse files
committed
Contig stitcher: fix midpoint calculation during gap split
1 parent a07611d commit 3f0376a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

micall/core/contig_stitcher.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ def try_split(contig):
602602
continue
603603

604604
if covered(contig, gap):
605-
midpoint = gap.r_st + (gap.r_ei - gap.r_st) // 2 + contig.alignment.epsilon
605+
midpoint = gap.r_st + (gap.r_ei - gap.r_st) / 2 + contig.alignment.epsilon
606606
left_part, right_part = contig.cut_reference(midpoint)
607607
left_part = left_part.rstrip_query()
608608
right_part = right_part.lstrip_query()

0 commit comments

Comments
 (0)