From 93b328306a95b02e939b25ded44b09171da18ec1 Mon Sep 17 00:00:00 2001 From: Auden Cote-L'Heureux <52716489+AudenCote@users.noreply.github.com> Date: Fri, 16 Feb 2024 14:10:14 -0500 Subject: [PATCH] Halfway done with fix to wrapper.py --- PTL1/Transcriptomes/Scripts/wrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PTL1/Transcriptomes/Scripts/wrapper.py b/PTL1/Transcriptomes/Scripts/wrapper.py index bd31d6f..5372553 100644 --- a/PTL1/Transcriptomes/Scripts/wrapper.py +++ b/PTL1/Transcriptomes/Scripts/wrapper.py @@ -149,7 +149,7 @@ def script_five(args): lines = [line.strip().split('\t') for line in open(args.output + '/Output/gcode_output.tsv', 'r')] with open(args.output + '/Output/gcode_output.tsv', 'r') as g: for folder in os.listdir(args.output + '/Output'): - if os.path.isfile(args.output + '/Output/' + folder + '/' + folder + '_WTA_EPU.Renamed.fasta'): + if os.path.isfile(args.output + '/Output/' + folder + '/' + folder + '_WTA_EPU.Renamed.fasta') and os.path.isdir(args.output + '/Output/' + folder + '/StopCodonFreq'): for line in lines: if line[0] == folder and line[-1].lower() in valid_codes: os.system('python 5_GCodeTranslate.py --input_file ' + args.output + '/Output/' + folder + '/' + folder + '_WTA_EPU.Renamed.fasta --genetic_code ' + line[-1])