Try to make runfolder results extraction more robust
[htsworkflow.git] / htsworkflow / pipelines / firecrest.py
index ee6fded6371c45b02c10c40d3c16df76923a52a1..4fbde5d517ac661cfecd68ff8ab2fff2472f5d9f 100644 (file)
@@ -115,6 +115,8 @@ def firecrest(pathname):
     # should I parse this deeper than just stashing the 
     # contents of the matrix file?
     matrix_pathname = os.path.join(pathname, 'Matrix', 's_matrix.txt')
+    if not os.path.exists(matrix_pathname):
+        return None
     f.matrix = open(matrix_pathname, 'r').read()
     return f