Commit cf3897ec by Eric Coissac

Adds the stem id in the label of the scaffold edges

parent dde94122
......@@ -390,7 +390,7 @@ def scaffold(self,assgraph,minlink=5,back=200,addConnectedLink=False):
glength = sum(glengths) / len(glengths)
glengthsd= math.sqrt(sum((i-glength)**2 for i in glengths) /(len(glengths)-1))
attr['label']="Gap (%dbp) [%d,%d] %d -> %d" % (glength,z,len(pglengths),s1,s2)
attr['label']="%d : Gap (%dbp) [%d,%d] %d -> %d" % (nid,glength,z,len(pglengths),s1,s2)
attr['length']=int(glength) if int(glength) > 0 else 10
attr['first']=first
attr['last']=last
......@@ -409,7 +409,8 @@ def scaffold(self,assgraph,minlink=5,back=200,addConnectedLink=False):
attr['sequence']=b"N" * attr['length']
attr['path']=[first] + [0] * (attr['length']-1) + [last]
attr['class']='scaffold:paired-end'
else:
attr['class']='internal'
__cacheAli = set()
__cacheAli2 = set()
......
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