Skip to content

Commit 735065d

Browse files
committed
overwrite system temp directory for panaroo python instance to redirect gffutils temporary files
1 parent 1a6c59a commit 735065d

File tree

5 files changed

+5
-1
lines changed

5 files changed

+5
-1
lines changed

panaroo/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
'''An updated pipeline for pangenome investigation'''
2-
__version__ = '1.4.0'
2+
__version__ = '1.4.1'

panaroo/__main__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ def main():
294294
args.output_dir = os.path.join(args.output_dir, "")
295295
# Create temporary directory
296296
temp_dir = os.path.join(tempfile.mkdtemp(dir=args.output_dir), "")
297+
os.environ['TMPDIR'] = temp_dir
297298

298299
# check if input is a file containing filenames
299300
if len(args.input_files) == 1:

panaroo/integrate.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ def main():
260260

261261
# Create temporary directory
262262
temp_dir = os.path.join(tempfile.mkdtemp(dir=args.output_dir), "")
263+
os.environ['TMPDIR'] = temp_dir
263264

264265
directories = [args.input_dir, temp_dir]
265266

panaroo/merge_graphs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,7 @@ def main():
596596

597597
# create temporary directory
598598
temp_dir = os.path.join(tempfile.mkdtemp(dir=args.output_dir), "")
599+
os.environ['TMPDIR'] = temp_dir
599600

600601
# run the main merge script
601602
merge_graphs(directories=args.directories,

panaroo/run_prokka.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ def run_prokka_mod(input_file, out_folder, train_file, force, add_cmds):
107107
# Create temporary directory
108108
temp_dir = os.path.join(os.path.abspath(tempfile.mkdtemp(dir=out_folder)),
109109
"")
110+
os.environ['TMPDIR'] = temp_dir
110111
with open(temp_dir + "/prodigal", 'w') as outfile:
111112
outfile.write("#!/bin/bash\n")
112113
outfile.write("(>&2 echo 'running prokka mod!')\n")

0 commit comments

Comments
 (0)