Package Bio :: Package KEGG :: Package KGML :: Module KGML_parser :: Class KGMLParser
[hide private]
[frames] | no frames]

Class KGMLParser

source code

object --+

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) #doctest: +NORMALIZE_WHITESPACE
Pathway: Glycolysis / Gluconeogenesis
KEGG ID: path:ko00010
Image file:
Organism: ko
Entries: 99
Entry types:
    ortholog: 61
    compound: 31
    map: 7
Instance Methods [hide private]
__init__(self, elem)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
Parse the input elements.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, elem)

source code 
x.__init__(...) initializes x; see help(type(x)) for signature
Overrides: object.__init__
(inherited documentation)