Table of Contents

Class: Iterator Bio/GenBank/__init__.py

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

Methods   
__init__
next
  __init__ 
__init__ (
        self,
        handle,
        parser=None,
        has_header=0,
        )

Initialize the iterator.

Arguments: o handle - A handle with GenBank 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. o has_header - Whether or not the file to iterate over has one of those GenBank headers (ie. if you downloaded it directly from GenBank). If so, we'll iterate over the header to get past it, and then the iterator will be set up to return the first record in the file.

  next 
next ( self )

Return the next GenBank record from the handle.

Will return None if we ran out of records.


Table of Contents

This document was automatically generated on Mon Jul 1 12:02:49 2002 by HappyDoc version 2.0.1