[BioPython] KEGG enzyme error

Ragini Pandey rapandey at iupui.edu
Mon Feb 2 21:33:13 UTC 2009


Hi,

 

I am trying to parse KEGG enzyme. The parser is failing for    EC 1.1.1.49

The data line where it is failing is-

"DRE: 100148915 570579(wu:fj78b06)"

There are several other data lines in this format.

 

The error I am getting is:

 

line 227, in parse

    key, values = data.split(":")

ValueError: too many values to unpack

 

Here is my code:

 

import urllib

from Bio.KEGG import Enzyme

 

dataFile = open(myFile)

 

for record in Enzyme.parse(dataFile):

    print record.entry

 

 

Would appreciate your help on this.

 

Thanks

Ragini 




More information about the Biopython mailing list