[Biopython-dev] [Biopython - Bug #3353] (New) Bio.KEGG.Enzymes change
redmine at redmine.open-bio.org
redmine at redmine.open-bio.org
Wed May 16 09:32:51 UTC 2012
Issue #3353 has been reported by Thomas van Gurp.
----------------------------------------
Bug #3353: Bio.KEGG.Enzymes change
https://redmine.open-bio.org/issues/3353
Author: Thomas van Gurp
Status: New
Priority: Normal
Assignee:
Category:
Target version:
URL:
When retrieving an enzyme from [[http://soap.genome.jp/KEGG.wsdl]] using
ec_handle = client.service.bget(ec)
and Bio.KEGG.Enzyme.parse(ec_handle.split('\n'))
there is an error in the way pathways are parsed. The layout changed from:
PATHWAY PATH: MAP00130 Ubiquinone biosynthesis
to
PATHWAY ec00030 Pentose phosphate pathway
ec00480 Glutathione metabolism
A minor modification in the code fixes this issue:
elif keyword=="PATHWAY ":
if data[:5]=='PATH':
path, map, name = data.split(None,2)
path = 'PATH:'
pathway = (path[:-1], map, name)
record.pathway.append(pathway)
else:
map, name = data.split(None,1)
path = 'PATH:'
pathway = (path[:-1], map, name)
record.pathway.append(pathway)
----------------------------------------
You have received this notification because this email was added to the New Issue Alert plugin
--
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here and login: http://redmine.open-bio.org
More information about the Biopython-dev
mailing list