biopython v1.71.0 Bio.KEGG.KGML.KGML_parser.KGMLParser
Parses a KGML XML Pathway entry into a Pathway object.
Example: Read and parse large metabolism file
>>> from Bio.KEGG.KGML.KGML_parser import read
>>> pathway = read(open('KEGG/ko01100.xml', 'r'))
>>> print(len(pathway.entries))
3628
>>> print(len(pathway.reactions))
1672
>>> print(len(pathway.maps))
149
>>> pathway = read(open('KEGG/ko00010.xml', 'r'))
>>> print(pathway)
Pathway: Glycolysis / Gluconeogenesis
KEGG ID: path:ko00010
Image file: http://www.kegg.jp/kegg/pathway/ko/ko00010.png
Organism: ko
Entries: 99
Entry types:
ortholog: 61
compound: 31
map: 7
Link to this section Summary
Link to this section Functions
Link to this function
__init__()
Initialize the class.
Link to this function
parse()
Parse the input elements.