http://code.google.com/p/dspchip/source/detail?r=242
Modified:
/trunk/src/dclib/IO.py
=======================================
--- /trunk/src/dclib/IO.py Fri Feb 11 08:48:47 2011
+++ /trunk/src/dclib/IO.py Fri Feb 11 08:55:10 2011
@@ -740,7 +740,7 @@
fh.write(key + '\t' + str(chromLength[key]) + '\n')
fh.close()
- Debug(1, timestring(), "Writing profile data in bigwig...")
+ Debug(2, timestring(), "Writing profile data in bigwig...")
# Read what has been written so far
cmd1 = subprocess.Popen([bw2bdg, fname, "stdout"], shell=False,
stdout=subprocess.PIPE, stderr=subprocess.PIPE, bufsize=4096)
@@ -752,7 +752,7 @@
step = options.profStep
for p in range(0, int(l), step):
percComplete = int(np.ceil(p / l * 99))
- Debug(2, percComplete, "% completed")
+ Debug(2, timestring(), "Writing profile data in bigwig...",
percComplete, "% completed")
if options.windowingFunction == 'mean':
v = np.mean(data[p:p+step])
elif options.windowingFunction == 'med':
@@ -770,14 +770,14 @@
# open the write process
cmd2 = subprocess.Popen([bdg2bw, "-clip", "stdin", gTabName, tmpFile],
shell=False, stdin=subprocess.PIPE, stderr=subprocess.PIPE, bufsize=4096)
- Debug(1, "100 % completed")
+ Debug(1, timestring(), "Writing profile data in bigwig...", "100 %
completed")
(output, error) = cmd2.communicate(previousData)
if len(error):
# these should be essentially Warnings
- Debug(1, "There was this error, skipping this...", error)
+ Debug(1, "There was this error", error)
if "There's more than one value" in error:
- Debug(1, "The last points were", previousData[-128:])
+ Debug(1, "This chrom has been skipped, the last points were",
previousData[-128:])
else:
# remove tab file
os.unlink(gTabName)