__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
|