From 4b934763dadfc31f36a7c007e4d92c7dde28224a Mon Sep 17 00:00:00 2001 From: Auden Cote-L'Heureux <52716489+AudenCote@users.noreply.github.com> Date: Thu, 2 May 2024 14:11:31 -0400 Subject: [PATCH] Fixing OG seqid-splitting error in 3_AssignOGs.py --- PTL1/Transcriptomes/Scripts/3_AssignOGs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PTL1/Transcriptomes/Scripts/3_AssignOGs.py b/PTL1/Transcriptomes/Scripts/3_AssignOGs.py index 26e4fc8..cfc052a 100644 --- a/PTL1/Transcriptomes/Scripts/3_AssignOGs.py +++ b/PTL1/Transcriptomes/Scripts/3_AssignOGs.py @@ -246,7 +246,7 @@ def update_fasta(args): for line in keep: try: og_number = re.split('OG.{1}_', line.split('\t')[1])[1][:6] - og_prefix = line.split('\t')[1].split(og_number)[0][-4:] + og_prefix = line.split('\t')[1].split(og_number)[-1][-4:] og = og_prefix + og_number keep_dict.update({ re.split('_OG.{1}_', line.split('\t')[0])[0] : re.split('_OG.{1}_', line.split('\t')[0])[0] + '_' + og_prefix + line.split('\t')[1].split('_')[-1] })