Table of Contents

Class: Iterator Bio/Kabat/__init__.py

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

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

Initialize the iterator.

Arguments: o handle - A handle with Kabat 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.

Instructions: Browse http://immuno.bme.nwu.edu/seqhunt.html Choose a search criterion Enter a search pattern Select ASCII Submit search Cut and paste search results into a text file Use code fragment as a template

Code Fragment: src_handle = open( datafile ) iterator = Kabat.Iterator(src_handle, record_parser) data = iterator.next() data.print_kabat() print

  next 
next ( self )

Return the next Kabat 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:51 2002 by HappyDoc version 2.0.1