mirror of
http://43.156.76.180:8026/YuuMJ/EukPhylo.git
synced 2025-12-27 05:20:24 +08:00
Preventing same contig/OG number bug in 4_CountOGsDiamond.py
This commit is contained in:
parent
a515a08c61
commit
f1d573458b
@ -262,7 +262,7 @@ def update_fasta(args):
|
||||
keep_dict = { }
|
||||
for line in keep:
|
||||
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)[-2][-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