Commit e1d2d52e by Eric Coissac

Patch a bug in buildgraph, limit logging to stderr in the tango function

when stderr is not a tty and switch to version 0.2.03
parent ce8a9a7a
......@@ -179,7 +179,7 @@ cpdef AsmbGraph tango(Assembler self,
delta+=1
lastseeds=[1]*1000
if progress and (icycle % 50)==0:
if progress and (icycle % 50)==0 and sys.stderr.isatty():
print("%s : %d bp [%4.1f%% fake reads; Stack size: %8d / %6.2f %d Gene: %s " % (wheel[(icycle//10) % 4],
len(graph)/2,
float(fake)/(len(graph)+1)*200.,
......
......@@ -242,6 +242,7 @@ def run(config):
if coverageset:
logger.info('Coverage forced by user at : %d' % coverage)
minread,minoverlap = estimateMinRead(r,config['buildgraph']['minoverlap'],coverage)
else:
##########################
......
major = 0
minor = '2'
serial= '02'
serial= '03'
version = "%d.%s.%s" % (major,minor,serial)
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