Package Bio :: Package KEGG :: Package Map :: Class Iterator
[hide private]
[frames] | no frames]

Class Iterator

source code

Iterator to read a file of KEGG reactions one at a time.

Instance Methods [hide private]
 
__init__(self, handle, parser=None)
Initialize the iterator.
source code
 
next(self)
Return the next Pathway.Reaction object from the handle.
source code
 
__iter__(self) source code
Method Details [hide private]

__init__(self, handle, parser=None)
(Constructor)

source code 

Initialize the iterator.

Arguments: o handle - A handle to a map file to iterate through.

next(self)

source code 

Return the next Pathway.Reaction object from the handle.

Will return None if we ran out of records.