[dspchip] r242 committed - Last commit with bugfixes and typos... have a nice weekend

3 views
Skip to first unread message

dsp...@googlecode.com

unread,
Feb 11, 2011, 11:55:40 AM2/11/11
to dspchi...@googlegroups.com
Revision: 242
Author: daweonline
Date: Fri Feb 11 08:55:10 2011
Log: Last commit with bugfixes and typos... have a nice weekend

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)

Davide Cittaro

unread,
Feb 11, 2011, 11:58:17 AM2/11/11
to dspchi...@googlegroups.com
Hi all,
No more commit logs will be sent to this group, unless the relevant ones that will be posted by me!
d
---
Davide Cittaro
daweo...@gmail.com
http://sites.google.com/site/davidecittaro/

Reply all
Reply to author
Forward
0 new messages