Package Bio :: Package Blast :: Module NCBIStandalone :: Class Iterator
[hide private]
[frames] | no frames]

Class Iterator

source code

object --+
         |
        Iterator

Iterates over a file of multiple BLAST results.

Methods: next Return the next record from the stream, or None.

Instance Methods [hide private]
 
__init__(self, handle, parser=None)
Create a new iterator.
source code
object
__next__(self)
Return the next Blast record from the file.
source code
 
next(self)
Python 2 style alias for Python 3 style __next__ method.
source code
 
__iter__(self) 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, handle, parser=None)
(Constructor)

source code 
Create a new iterator. handle is a file-like object. parser is an optional Parser object to change the results into another form. If set to None, then the raw contents of the file will be returned.
Overrides: object.__init__

__next__(self)

source code 
Return the next Blast record from the file. If no more records, return None.
Returns: object