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

Class Iterator

source code

Iterator interface to move over a file of IntelliGenetics entries one at a time.

Instance Methods [hide private]
 
__init__(self, handle, parser=None)
Initialize the iterator.
source code
 
next(self)
Return the next IntelliGenetics record 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 with IntelliGenetics entries to iterate through. o parser - An optional parser to pass the entries through before returning them. If None, then the raw entry will be returned.

next(self)

source code 

Return the next IntelliGenetics record from the handle.

Will return None if we ran out of records.