From 90f29fe968c977accfac15d2d89999792fc27800 Mon Sep 17 00:00:00 2001 From: trvinh Date: Fri, 24 Nov 2023 15:05:35 +0100 Subject: [PATCH] added updateJson, updateAnno, opt to limit paths --- greedyFAS/calcFASmulti.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/greedyFAS/calcFASmulti.py b/greedyFAS/calcFASmulti.py index 073bced..d050d7f 100644 --- a/greedyFAS/calcFASmulti.py +++ b/greedyFAS/calcFASmulti.py @@ -327,13 +327,13 @@ def main(): if len(missing_dict) > 0: sys.exit(f'ERROR: Annotations for the following proteins are missing!\n{missing_dict}') - out_name = outName - out_dir = os.path.abspath(out_dir) - if not outName: + out_name = args.outName + out_dir = os.path.abspath(args.out_dir) + if not args.outName: today = date.today() out_name = f"fas_{today.strftime('%y%m%d')}" if args.mergeJson: - check_json_output(out_name, args.out_dir, args.force) + check_json_output(out_name, out_dir, args.force) print('==> preparing jobs...') if args.cpus == 0: