From: Diane Trout Date: Fri, 28 Mar 2008 23:32:12 +0000 (+0000) Subject: Don't die if Summary.htm isn't present X-Git-Tag: stanford.caltech-merged-database-2009-jan-15~83 X-Git-Url: http://woldlab.caltech.edu/gitweb/?a=commitdiff_plain;h=8211c12266c5f62011f85c5f4498c164a45d175c;p=htsworkflow.git Don't die if Summary.htm isn't present --- diff --git a/scripts/runfolder.py b/scripts/runfolder.py index 9e45ea8..4a2549a 100644 --- a/scripts/runfolder.py +++ b/scripts/runfolder.py @@ -529,8 +529,11 @@ def get_runs(runfolder): b = Bustard(bustard_pathname) gerald_glob = os.path.join(bustard_pathname, 'GERALD*') for gerald_pathname in glob(gerald_glob): - g = GERALD(gerald_pathname) - runs.append(PipelineRun(runfolder, f, b, g)) + try: + g = GERALD(gerald_pathname) + runs.append(PipelineRun(runfolder, f, b, g)) + except IOError, e: + print "Ignoring", str(e) return runs @@ -565,7 +568,7 @@ def summary_report(runs): """ for run in runs: # print a run name? - logging.info('Summarizing ' + run.name) + print 'Summary for', run.name for lane in run.gerald.summary.lane_results: print 'lane', lane.lane, 'clusters', lane.cluster[0], '+/-', print lane.cluster[1]