[Biopython-dev] bug: swissprot record parser errors

louis_coilliot lcoillio at pharma-etu.univ-lille2.fr
Mon Aug 19 12:29:11 EDT 2002


This little program:



#!/usr/bin/env python
# reading a SwissProt entry from a file

from Bio.SwissProt import SProt
from sys import *

try:
    handle = open(argv[1])
    sp = SProt.Iterator(handle, SProt.RecordParser())
    record = sp.next()
    print record.entry_name
    print
except:
    print "error"



doesn't work with some records, for example:
http://www.expasy.ch/cgi-bin/get-sprot-raw.pl?O75398
http://www.expasy.ch/cgi-bin/get-sprot-raw.pl?P41964

I don't know why. Any idea ?
                             




More information about the Biopython-dev mailing list