We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36fb1b7 commit afcadc5Copy full SHA for afcadc5
workflow/scripts/mergeOutput.py
@@ -5,11 +5,13 @@
5
outFile = snakemake.output[0]
6
inFiles = snakemake.input
7
8
+#TODO: change to ZIPFILE to support better result portability
9
with open(outFile, 'wb') as outF:
10
for file in inFiles:
11
try:
12
out = subprocess.check_output(['gunzip', '-t', file]) #test if gzip file is valid before merging
13
14
+ #TODO: avoid overwriting the file descriptor!
15
with open(file, 'rb') as sourceFile:
16
shutil.copyfileobj(sourceFile, outF)
17
except subprocess.CalledProcessError:
0 commit comments