Bio.KEGG.Enzyme package

Module contents

Code to work with the KEGG Enzyme database.

  • parse - Returns an iterator giving Record objects.

  • Record - Holds the information from a KEGG Enzyme record.

class Bio.KEGG.Enzyme.Record

Bases: object

Holds info from a KEGG Enzyme record.

  • entry The EC number (withou the ‘EC ‘).

  • name A list of the enzyme names.

  • classname A list of the classification terms.

  • sysname The systematic name of the enzyme.

  • reaction A list of the reaction description strings.

  • substrate A list of the substrates.

  • product A list of the products.

  • inhibitor A list of the inhibitors.

  • cofactor A list of the cofactors.

  • effector A list of the effectors.

  • comment A list of the comment strings.

  • pathway A list of 3-tuples: (database, id, pathway)

  • genes A list of 2-tuples: (organism, list of gene ids)

  • disease A list of 3-tuples: (database, id, disease)

  • structures A list of 2-tuples: (database, list of struct ids)

  • dblinks A list of 2-tuples: (database, list of db ids)


Initialize a new Record.


Return a string representation of this Record.


Parse a KEGG Enzyme file, returning Record objects.

This is an iterator function, typically used in a for loop. For example, using one of the example KEGG files in the Biopython test suite,

>>> with open("KEGG/enzyme.sample") as handle:
...     for record in parse(handle):
...         print("%s %s" % (record.entry,[0]))
... alcohol dehydrogenase 17beta-estradiol 17-dehydrogenase Transferred to NADH:ubiquinone reductase (H+-translocating) 3,9-dihydroxypterocarpan 6a-monooxygenase glycoprotein 6-alpha-L-fucosyltransferase acetylesterase acetate kinase

Parse a KEGG Enzyme file with exactly one entry.

If the handle contains no records, or more than one record, an exception is raised. For example:

>>> with open("KEGG/") as handle:
...     record = read(handle)
...     print("%s %s" % (record.entry,[0]))
... benzoate---CoA ligase