Try to make runfolder results extraction more robust
[htsworkflow.git] / htsworkflow / pipelines / ipar.py
index a559229ee83957068c8c96dcc3f538980e4fc9b4..3d90868910a37d16d4b9b7f70a042294553f0485 100644 (file)
@@ -193,6 +193,8 @@ def ipar(pathname):
 
     # contents of the matrix file?
     matrix_pathname = os.path.join(pathname, 'Matrix', 's_matrix.txt')
+    if not os.path.exists(matrix_pathname):
+        return None
     i.matrix = open(matrix_pathname, 'r').read()
 
     # look for parameter xml file
@@ -222,4 +224,4 @@ if __name__ == "__main__":
   print i.tiles.keys()
   print j.tiles.keys()
   print j.tiles.items()
-  print j.file_list()
\ No newline at end of file
+  print j.file_list()