Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (22 sloc) 0.752 kb
"""Tests the basic functionality of the KEGG parsers.
import os
import Bio.NBRF
from Bio.RecordFile import RecordFile
from Bio.File import SGMLHandle
testfiles = [ 'B_nuc.pir', 'Cw_prot.pir', 'DMA_nuc.pir', 'DMB_prot.pir',
for file in testfiles:
fh = open(os.path.join("NBRF", file))
record_file = RecordFile( fh, '>', chr( 0x2a ) )
print "Testing Bio.NBRF on " + file + "\n\n"
records = Bio.NBRF.Iterator(record_file, Bio.NBRF.RecordParser(debug_level=0))
# records = Bio.NBRF.Iterator(record_file, None)
while 1:
# for j in range( 0, 1 ):
record =
if record is not None:
print record
print "\n"
Jump to Line
Something went wrong with that request. Please try again.