Skip to content

Commit

Permalink
fix for non-str arguments #258
Browse files Browse the repository at this point in the history
  • Loading branch information
skoren committed Jun 7, 2024
1 parent 3547b18 commit 886ed33
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 @@ -119,7 +119,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 " + len(node_seqs[key[0][1:]]) + ", " + 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 886ed33

Please sign in to comment.