Store the bustard pathname when searching for run folders
authorDiane Trout <diane@caltech.edu>
Wed, 3 Dec 2008 22:21:16 +0000 (22:21 +0000)
committerDiane Trout <diane@caltech.edu>
Wed, 3 Dec 2008 22:21:16 +0000 (22:21 +0000)
This was needed so the srf file can use the same runfolder scanning
code as the --extract-results feature.

htsworkflow/pipelines/bustard.py

index 1658b17ba73520b888637d6964ea4bbe18aedafb..54659b4ffd65aae40163b15dc630aae14f1710ff 100644 (file)
@@ -69,6 +69,7 @@ class Bustard(object):
         self.date = date.today()
         self.user = None
         self.phasing = {}
+        self.pathname = None
 
         if xml is not None:
             self.set_elements(xml)
@@ -133,6 +134,7 @@ def bustard(pathname):
     t = time.strptime(groups[1], EUROPEAN_STRPTIME)
     b.date = date(*t[0:3])
     b.user = groups[2]
+    b.pathname = pathname
     paramfiles = glob(os.path.join(pathname, "params?.xml"))
     for paramfile in paramfiles:
         phasing = Phasing(paramfile)