[dspchip] r240 committed - wipeDir now checks if bigwig files exist

1 view
Skip to first unread message

dsp...@googlecode.com

unread,
Feb 11, 2011, 11:21:12 AM2/11/11
to dspchi...@googlegroups.com
Revision: 240
Author: daweonline
Date: Fri Feb 11 08:20:21 2011
Log: wipeDir now checks if bigwig files exist

http://code.google.com/p/dspchip/source/detail?r=240

Modified:
/trunk/src/dclib/IO.py

=======================================
--- /trunk/src/dclib/IO.py Fri Feb 11 07:16:32 2011
+++ /trunk/src/dclib/IO.py Fri Feb 11 08:20:21 2011
@@ -700,7 +700,10 @@
def wipeDir(options):
# Clean dir from previous bigwig data... otherwise they will be read
# by this execution and this will likely raise errors
- os.unlink(options.profile)
+ try:
+ os.unlink(options.profile)
+ except OSError:
+ True

def openPeaks(options):
bedh = open(options.bedfile, 'w')

Reply all
Reply to author
Forward
0 new messages