Commit e48ad513 by Eric Coissac

Fix a bug in oneXcoverage

parent 188bb558
......@@ -1675,10 +1675,13 @@ def oneXcoverage(assgraph):
for e in assgraph.edgeIterator():
attr = assgraph.getEdgeAttr(*e)
if 'path' in attr and attr['stemid'] > 0 and len(attr['path']) > readSize:
if attr['class'] == "sequence" and len(attr['path']) > readSize:
path = attr['path']
cov = [assgraph.assembler.graph.getNodeAttr(i,)['coverage'] for i in path]
cov = [assgraph.assembler.graph.getNodeAttr(i,)['coverage']
for i in path
if i > 0
]
s=0
c = 0
for i in range(len(cov)):
......
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