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 4
4
import subprocess
5
5
import argparse
6
6
import json
7
+ import uuid
7
8
from .log import startLogging
8
9
from .utils import (
9
10
parse_funannotate_predict_dir ,
@@ -461,14 +462,16 @@ def run_signalp_cli(args):
461
462
os .makedirs (output_dir , exist_ok = True )
462
463
463
464
# Set output prefix for annotation files
464
- output_prefix = os .path .join (output_dir , "signalp " )
465
+ output_prefix = os .path .join (output_dir , "signalp6 " )
465
466
466
467
# 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 )
467
470
468
471
# Run SignalP
469
472
output_file = run_signalp (
470
473
input_file = input_file ,
471
- output_dir = output_dir ,
474
+ output_dir = working_dir ,
472
475
signalp_path = args .signalp_path ,
473
476
organism = args .organism ,
474
477
format = args .format ,
@@ -496,7 +499,7 @@ def run_signalp_cli(args):
496
499
497
500
# Convert to JSON if requested
498
501
if args .json :
499
- json_file = os .path .join (output_dir , "signalp .json" )
502
+ json_file = os .path .join (output_dir , "signalp6 .json" )
500
503
if signalp_to_json (output_file , json_file ):
501
504
logger .info (f"Wrote JSON predictions to { json_file } " )
502
505
else :
You can’t perform that action at this time.
0 commit comments