Commit d012dcfe by Eric Coissac

Solve the issue #18 by casting the float value to an int value

parent 22b05609
......@@ -1414,7 +1414,7 @@ def path2fasta(self,assgraph,path,identifier="contig",minlink=10,nlength=20,back
glength = nlength
seq.append(b'N'*glength)
seq.append(b'N'*int(glength))
seq.append(self.index.getRead(stem[0],0,self.index.getReadSize()).lower())
slength.append(self.index.getReadSize())
if connected > 0:
......@@ -1485,8 +1485,8 @@ def path2fasta(self,assgraph,path,identifier="contig",minlink=10,nlength=20,back
logger.info("Linked by %d pair ended links (gap length=%f sd=%f)" % (connected,glength,sl))
label.append('{N-connection: %d}' % connected)
seq.append(b'N'*glength)
slength.append(glength)
seq.append(b'N'* int(glength))
slength.append(int(glength))
circular=True
elif forceconnection:
if logger is None:
......@@ -1497,7 +1497,7 @@ def path2fasta(self,assgraph,path,identifier="contig",minlink=10,nlength=20,back
logger.info("Linked by %d pair ended links" % connected)
label.append('{F-connection: %d}' % connected)
seq.append(b'N'*nlength)
seq.append(b'N'*int(nlength))
circular=True
else:
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