Commit b0006c21 authored by Eric Coissac's avatar Eric Coissac

Patch a bug in the gap length estimation

parent 0c0cf629
......@@ -1475,15 +1475,18 @@ def path2fasta(self,assgraph,path,identifier="contig",minlink=10,nlength=20,back
label.append('{connection: %d}' % connected)
if connected >= minlink:
glength = frglen - ml - self.index.getReadSize()
if logger is None:
print("Path is circular but disconnected" ,file=sys.stderr)
print("Linked by %d pair ended links" % connected,file=sys.stderr)
print(" But linked by %d pair ended links (gap length=%f sd=%f)" % (connected,glength,sl),file=sys.stderr)
else:"Path is circular but disconnected")"Linked by %d pair ended links" % connected)"Linked by %d pair ended links (gap length=%f sd=%f)" % (connected,glength,sl))
label.append('{N-connection: %d}' % connected)
elif forceconnection:
if logger is None:
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