[Biopython-dev] Notification: incoming/118

biopython-bugs at bioperl.org biopython-bugs at bioperl.org
Tue Jan 21 10:22:25 EST 2003


JitterBug notification

new message incoming/118

Message summary for PR#118
	From: kawagash at affrc.go.jp
	Subject: PRIVATE: KEGG Enzyme Parser doesn't work
	Date: Tue, 21 Jan 2003 10:22:22 -0500
	0 replies 	0 followups

====> ORIGINAL MESSAGE FOLLOWS <====

>From kawagash at affrc.go.jp Tue Jan 21 10:22:23 2003
Received: from localhost (localhost [127.0.0.1])
	by pw600a.bioperl.org (8.12.6/8.12.6) with ESMTP id h0LFMMSQ015801
	for <biopython-bugs at pw600a.bioperl.org>; Tue, 21 Jan 2003 10:22:23 -0500
Date: Tue, 21 Jan 2003 10:22:22 -0500
Message-Id: <200301211522.h0LFMMSQ015801 at pw600a.bioperl.org>
From: kawagash at affrc.go.jp
To: biopython-bugs at bioperl.org
Subject: PRIVATE: KEGG Enzyme Parser doesn't work
X-Spam-Status: No
X-Scanned-By: MIMEDefang 2.26 (www . roaringpenguin . com / mimedefang)

Full_Name: Nobuyuki Kawagashira
Module: KEGG.Enzyme.__init__.py
Version: 1.5
OS: Solaris 8 64bit
Submission from: cytosine.abr.affrc.go.jp (150.26.151.213)


I tried parsing as following program:
Bio/KEGG/Enzyme/__init__.py and Martel/Parser.py
error occured.

from Bio.KEGG import Enzyme

def make_enzyme(phase, file):

        parser = Enzyme.Parser()
        handler = open(file) 
        iterator = Enzyme.Iterator(handler, parser)
        while 1:
                e = iterator.next()
                if e is None:
                        break
		print e
                break


#############################################################################
make_enzyme(1,'/db/kegg/enzyme')





More information about the Biopython-dev mailing list