Commit b583f4c4 by MARIJON Pierre

Save the last contig of file

parent b6a1787a
......@@ -44,6 +44,8 @@ def read_contig_layout(filename):
key.pop(0)
actual_tig = 0
actual_begin = 0
actual_end = 0
for row in iterator:
if row[3] > row[4]:
row[3], row[4] = row[4], row[3]
......@@ -66,6 +68,8 @@ def read_contig_layout(filename):
if int(row[4]) > int(read2info[actual_end]["end"]):
actual_end = row[0]
tig2extremity[actual_tig] = (actual_begin, actual_end)
return read2info, tig2extremity
......
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