add --run-xml to runfolder so you can generate summary reports from a
authorDiane Trout <diane@caltech.edu>
Fri, 23 May 2008 21:37:05 +0000 (21:37 +0000)
committerDiane Trout <diane@caltech.edu>
Fri, 23 May 2008 21:37:05 +0000 (21:37 +0000)
previously analyzed runfolder

scripts/runfolder
setup.py

index 13c5cadc892b07147a1a0501ab6d456f2945e112..af89015a86e4854d2ab89c982cc03b3fbb0cba9f 100644 (file)
@@ -32,6 +32,7 @@ import optparse
 import sys
 
 from gaworkflow.pipeline import runfolder
+from gaworkflow.pipeline.runfolder import ElementTree
         
 def make_parser():
     usage = 'usage: %prog [options] runfolder_root_dir'
@@ -45,22 +46,29 @@ def make_parser():
     parser.add_option('-a', '--archive', dest='archive', action='store_true',
                       default=False,
                       help='generate run configuration archive')
+    parser.add_option('--run-xml', dest='run_xml',
+           default=None,
+           help='specify a run_<FlowCell>.xml file for summary reports')
+
     return parser
 
 def main(cmdlist=None):
     parser = make_parser()
     opt, args = parser.parse_args(cmdlist)
 
-    if len(args) == 0:
-        parser.error('need path to a runfolder')
-    
     logging.basicConfig()
     if opt.verbose:
         root_log = logging.getLogger()
         root_log.setLevel(logging.INFO)
 
+    runs = []
+    if opt.run_xml:
+        tree = ElementTree.parse(opt.run_xml).getroot()
+        runs.append(runfolder.PipelineRun(xml=tree))
     for run_dir in args:
-        runs = runfolder.get_runs(run_dir)
+        runs.extend(runfolder.get_runs(run_dir))
+
+    if len(runs) > 0:
         if opt.summary:
             print runfolder.summary_report(runs)
         if opt.archive:
index 6f2bb536969b9e3f218544c5e9a6fd65c3947902..2229ed6b023ede2c73a331889cb79c8263311e12 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -11,11 +11,16 @@ setup(
             "gaworkflow.frontend.fctracker",
             "gaworkflow.frontend.eland_config"           
              ],
-  scripts=['scripts/spoolwatcher', 
-           'scripts/copier',
-           'scripts/runner',
-           'scripts/retrieve_config',
-           'scripts/configure_pipeline',
-           'scripts/runfolder',
-           'scripts/makebed'],
+  scripts=[
+        'scripts/configure_pipeline',
+        'scripts/copier',
+        'scripts/gerald2bed.py',
+        'scripts/library.py',
+        'scripts/makebed',
+        'scripts/spoolwatcher', 
+        'scripts/rerun_eland.py',
+        'scripts/retrieve_config',
+        'scripts/runfolder',
+        'scripts/runner',
+        ],
 )