[BioPython] Parsing Swissprot-Files
Joerg Krebs
krebsj at cip.ifi.lmu.de
Fri Mar 11 09:45:09 EST 2005
Hi,
does anyone know how to handle Swissprot Files containing RX and RG entries
in the annotation Part?
I get error messages when I try to read some Swissprot files, looking like
this:
----------------
Traceback (most recent call last):
File "SwPr2Fasta.py", line 19, in ?
record = sp.next()
File "/usr/lib/python2.3/site-packages/Bio/SwissProt/SProt.py", line 166,
in n
ext
return self._parser.parse(File.StringHandle(data))
File "/usr/lib/python2.3/site-packages/Bio/SwissProt/SProt.py", line 290,
in p
arse
self._scanner.feed(handle, self._consumer)
File "/usr/lib/python2.3/site-packages/Bio/SwissProt/SProt.py", line 333,
in f
eed
self._scan_record(uhandle, consumer)
File "/usr/lib/python2.3/site-packages/Bio/SwissProt/SProt.py", line 338,
in _
scan_record
fn(self, uhandle, consumer)
File "/usr/lib/python2.3/site-packages/Bio/SwissProt/SProt.py", line 414,
in _
scan_reference
self._scan_ra(uhandle, consumer)
File "/usr/lib/python2.3/site-packages/Bio/SwissProt/SProt.py", line 436,
in _
scan_ra
one_or_more=1)
File "/usr/lib/python2.3/site-packages/Bio/SwissProt/SProt.py", line 360,
in _
scan_line
read_and_call(uhandle, event_fn, start=line_type)
File "/usr/lib/python2.3/site-packages/Bio/ParserSupport.py", line 300, in
rea
d_and_call
raise SyntaxError, errmsg
SyntaxError: Line does not start with 'RA':
RG The German cDNA consortium;
--------
It would be great of someone could help me with my problem.
Thanks
Joerg
More information about the BioPython
mailing list