Commit ca8f1e05 authored by MARIJON Pierre's avatar MARIJON Pierre

if path len is negative path len is 0

parent 7e0f0515
......@@ -78,6 +78,10 @@ def main(args=None):
weight = 0
else:
weight -= int(ext1[3]) - int(ext2[3])
if weight < 0:
weight = 0
if path:
nbread_contig = paths.format_node_contig_counter(
paths.path_through_contig(tig2reads, path),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment