Commit 71c15a9d authored by Bertrand  NÉRON's avatar Bertrand NÉRON

BUGFIX

some taxonomy end with a dot some other not.
test if taxonomy ends with dot before to remove the las charactere
parent 6da47550
......@@ -28,7 +28,8 @@ def replicon_parser( replicon_data ):
else:
replicon_db[ fields[0] ] = Replicon_info( fields[0] , int(fields[1]) , fields[2] , fields[3].split('; ') , fields[4])
#remove ending dot from the last term of taxonnomy
replicon_db[ fields[0] ].taxonomy[-1] = replicon_db[ fields[0] ].taxonomy[-1][:-1]
if( replicon_db[ fields[0] ].taxonomy[-1].endswith('.') ):
replicon_db[ fields[0] ].taxonomy[-1] = replicon_db[ fields[0] ].taxonomy[-1][:-1]
return replicon_db
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment