X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=blobdiff_plain;f=htsworkflow%2Fpipelines%2Fipar.py;h=8203f5e0f29fda173728e3f504522f6cd579520f;hp=376c5bd98ecbfe082329c4d3d75f238be47de182;hb=5644e2bfe7c1f7e5af99289cd918f783b61c441a;hpb=479335335a850925a1f142320d7fa636a7f4e81f diff --git a/htsworkflow/pipelines/ipar.py b/htsworkflow/pipelines/ipar.py index 376c5bd..8203f5e 100644 --- a/htsworkflow/pipelines/ipar.py +++ b/htsworkflow/pipelines/ipar.py @@ -19,7 +19,7 @@ import re import stat import time -from htsworkflow.pipelines.runfolder import \ +from htsworkflow.pipelines import \ ElementTree, \ VERSION_RE, \ EUROPEAN_STRPTIME @@ -75,6 +75,14 @@ class IPAR(object): if xml is not None: self.set_elements(xml) + def _get_runfolder_name(self): + """Return runfolder name""" + if self.tree is None: + raise ValueError("Can't query an empty run") + runfolder = self.tree.xpath('RunParameters/Runfolder') + return runfolder + runfolder_name = property(_get_runfolder) + def _get_software(self): """Return software name""" if self.tree is None: @@ -226,7 +234,8 @@ def ipar(pathname): # its still live. # look for parameter xml file - paramfiles = [os.path.join(pathname, 'config.xml'), + paramfiles = [os.path.join(pathname, 'RTAConfig.xml'), + os.path.join(pathname, 'config.xml'), os.path.join(path, '.params')] for paramfile in paramfiles: if os.path.exists(paramfile):