Skip to content

Commit

Permalink
fix int conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
skoren committed Dec 19, 2024
1 parent 7d57bda commit fe49501
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/fix_haplogaps.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def parse_current_alns(tip_support, alns):
wanted_gap_length = t[1]
assert wanted_cut_pos >= 0
if wanted_gap_length >= len(node_seqs[key[0][1:]]) or wanted_gap_length >= len(node_seqs[key[1][1:]]):
sys.stderr.write("can't fix " + key[0] + " " + key[1] + " due to overlap containing node (wanted " + str(wanted_gap_length) + ", node lengths " + str(len(node_seqs[key[0][1:]])) + ", " + str(len(node_seqs[key[1][1:]]) + ")"))
sys.stderr.write("can't fix " + key[0] + " " + key[1] + " due to overlap containing node (wanted " + str(wanted_gap_length) + ", node lengths " + str(len(node_seqs[key[0][1:]])) + ", " + str(len(node_seqs[key[1][1:]])) + ")")
continue
if wanted_cut_pos == 0:
sys.stderr.write("mend " + key[0] + " " + key[1] + "\n")
Expand Down

0 comments on commit fe49501

Please sign in to comment.