Package Bio :: Package KEGG :: Package Enzyme
[hide private]
[frames] | no frames]

Package Enzyme

source code

This module provides code to work with the KEGG Enzyme database.

Functions: parse - Returns an iterator giving Record objects.

Classes: Record -- Holds the information from a KEGG Enzyme record.

Classes [hide private]
  Record
Holds info from a KEGG Enzyme record.
Functions [hide private]
 
id_wrap(indent) source code
 
struct_wrap(indent) source code
 
parse(handle)
Parse a KEGG Enzyme file, returning Record objects.
source code
 
_test()
Run the Bio.KEGG.Enzyme module's doctests.
source code
Variables [hide private]
  rxn_wrap = [0, '', (' + ', '', 1, 1), (' = ', '', 1, 1), (' ',...
  name_wrap = [0, '', (' ', '$', 1, 1), ('-', '$', 1, 1)]
Function Details [hide private]

parse(handle)

source code 

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,

>>> handle = open("KEGG/enzyme.sample")
>>> for record in parse(handle) :
...     print record.entry, record.name[0]
...
1.1.1.1 Alcohol dehydrogenase
1.1.1.62 Estradiol 17beta-dehydrogenase
1.1.1.68 Transferred to EC 1.7.99.5
1.6.5.3 NADH dehydrogenase (ubiquinone)
1.14.13.28 3,9-Dihydroxypterocarpan 6a-monooxygenase
2.4.1.68 Glycoprotein 6-alpha-L-fucosyltransferase
3.1.1.6 Acetylesterase
2.7.2.1 Acetate kinase

_test()

source code 

Run the Bio.KEGG.Enzyme module's doctests.

This will try and locate the unit tests directory, and run the doctests from there in order that the relative paths used in the examples work.


Variables Details [hide private]

rxn_wrap

Value:
[0,
 '',
 (' + ', '', 1, 1),
 (' = ', '', 1, 1),
 (' ', '$', 1, 1),
 ('-', '$', 1, 1)]