diff run_lastz_tarball.py @ 6:34d51e66256c draft

planemo upload for repository https://github.com/richard-burhans/galaxytools/tree/main/tools/batched_lastz commit 2ab3532f7a45153eb0f945ac22c37cdcaea8c1e1
author richard-burhans
date Wed, 10 Jul 2024 18:00:34 +0000
parents 007990f98551
children 4cd7884635c2
line wrap: on
line diff
--- a/run_lastz_tarball.py	Wed May 01 19:09:34 2024 +0000
+++ b/run_lastz_tarball.py	Wed Jul 10 18:00:34 2024 +0000
@@ -8,12 +8,12 @@
 import queue
 import re
 import shutil
+import subprocess
 import sys
-import subprocess
 import tarfile
 import tempfile
+import time
 import typing
-import time
 
 
 lastz_output_format_regex = re.compile(
@@ -69,7 +69,7 @@
             if stderr is not None:
                 try:
                     statinfo = os.stat(stderr, follow_symlinks=False)
-                except:
+                except Exception:
                     statinfo = None
 
                 if statinfo is None:
@@ -305,6 +305,7 @@
 
         for file_type, file_list in self.output_files.items():
             with open(f"output.{file_type}", "w") as ofh:
+                print("##maf version=1", file=ofh)
                 for filename in file_list:
                     with open(f"galaxy/files/{filename}") as ifh:
                         for line in ifh: