File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 44import subprocess
55import argparse
66import json
7+ import uuid
78from .log import startLogging
89from .utils import (
910 parse_funannotate_predict_dir ,
@@ -461,14 +462,16 @@ def run_signalp_cli(args):
461462 os .makedirs (output_dir , exist_ok = True )
462463
463464 # Set output prefix for annotation files
464- output_prefix = os .path .join (output_dir , "signalp " )
465+ output_prefix = os .path .join (output_dir , "signalp6 " )
465466
466467 # We'll use the module-level logger which is already initialized
468+ working_dir = os .path .join (output_dir , f"signalp6_{ str (uuid .uuid4 ())[:8 ]} " )
469+ os .makedirs (working_dir , exist_ok = True )
467470
468471 # Run SignalP
469472 output_file = run_signalp (
470473 input_file = input_file ,
471- output_dir = output_dir ,
474+ output_dir = working_dir ,
472475 signalp_path = args .signalp_path ,
473476 organism = args .organism ,
474477 format = args .format ,
@@ -496,7 +499,7 @@ def run_signalp_cli(args):
496499
497500 # Convert to JSON if requested
498501 if args .json :
499- json_file = os .path .join (output_dir , "signalp .json" )
502+ json_file = os .path .join (output_dir , "signalp6 .json" )
500503 if signalp_to_json (output_file , json_file ):
501504 logger .info (f"Wrote JSON predictions to { json_file } " )
502505 else :
You can’t perform that action at this time.
0 commit comments