[BioPython] Martel: IterParser.IterHeaderFooter

Willem Ligtenberg wligtenberg at gmail.com
Fri Apr 15 07:36:36 EDT 2005


I'm creating a parser and have specified this:
self.ip = IterParser.IterHeaderFooter(
			self.header, RecordReader.CountLines, (1,),
			self.record, RecordReader.CountLines, (1,),
			None, None, None, "format")

Then I can parse the records with:
for data in self.ip.iterateFile(open(fileName, "r")):

and do things with data.
But I also need the information from the header, because it specifies
with what kind of information I'm working. How can I access that data?

Thanks in advance,

Willem Ligtenberg



More information about the BioPython mailing list