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))
 >>> print(len(pathway.reactions))
 >>> print(len(pathway.maps))

 >>> pathway = read(open('KEGG/ko00010.xml', 'r'))
 >>> print(pathway) 
 Pathway: Glycolysis / Gluconeogenesis
 KEGG ID: path:ko00010
 Image file:
 Organism: ko
 Entries: 99
 Entry types:
     ortholog: 61
     compound: 31
     map: 7

Link to this section Summary


Initialize the class

Parse the input elements

Link to this section Functions

Initialize the class.

Parse the input elements.