Thrown an exception if we can't parse base calling directory.
authorDiane Trout <diane@caltech.edu>
Wed, 16 Jan 2013 00:55:20 +0000 (16:55 -0800)
committerDiane Trout <diane@caltech.edu>
Wed, 16 Jan 2013 00:55:20 +0000 (16:55 -0800)
While working on making the alignment parsing optional. I made a mistake
copying some files around, that led to an unparseable base call directory.

I thought I should try to catch and report that error condition.

htsworkflow/pipelines/bustard.py

index b5bf7e11a925940b284e655932c4aa602b523838..99f231dd73e748a0c88b528f4489968ab20b8428 100644 (file)
@@ -365,6 +365,9 @@ def bustard(pathname):
     else:
         b = bustard_from_ga1(pathname)
 
+    if not b:
+        raise RuntimeError("Unable to parse base-call directory at %s" % (pathname,))
+
     return b
 
 def bustard_from_ga1(pathname):