mirror of
http://43.156.76.180:8026/YuuMJ/EukPhylo.git
synced 2025-12-27 03:40:24 +08:00
Fixing OG seqid-splitting error in 3_AssignOGs.py
This commit is contained in:
parent
b4d92dec13
commit
4b934763da
@ -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] })
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user