[Biopython-dev] bug: swissprot record parser errors
Jeffrey Chang
jchang at smi.stanford.edu
Mon Aug 19 13:43:26 EDT 2002
Are you using the updated SProt module from the CVS? The format's
changed a bit since the last release of biopython, and some problems
have been fixed since then.
Jeff
On Mon, Aug 19, 2002 at 04:29:11PM +0000, louis_coilliot wrote:
> 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 ?
>
>
> _______________________________________________
> Biopython-dev mailing list
> Biopython-dev at biopython.org
> http://biopython.org/mailman/listinfo/biopython-dev
More information about the Biopython-dev
mailing list