[BioPython] Cannot parse GenBank file

Martin MOKREJŠ mmokrejs at ribosome.natur.cuni.cz
Tue Jun 5 14:04:20 UTC 2007



Ezequiel Panepucci wrote:
>>     genbank entry = parser.parse(fhandle)
> 
> there is a space character between "genbank" and "entry".
> It is a syntax error.
> I suppose you meant "genbank_entry" ?

Yes, the next command was right and has shown the error. Sorry, I forgot
to delete the first attempt. ;-)

>>> genbank_entry = parser.parse(fhandle)
Traceback (most recent call last):
 File "<stdin>", line 1, in ?
 File "/usr/lib/python2.4/site-packages/Bio/GenBank/__init__.py", line 187, in parse
   self._scanner.feed(handle, self._consumer)
 File "/usr/lib/python2.4/site-packages/Bio/GenBank/Scanner.py", line 360, in feed
   self._feed_first_line(consumer, self.line)
 File "/usr/lib/python2.4/site-packages/Bio/GenBank/Scanner.py", line 835, in _feed_first_line
   assert False, \
AssertionError: Did not recognise the LOCUS line layout:
LOCUS               6499 bp ds-DNA     linear       02-AUG-2006

>>>

Martin



More information about the Biopython mailing list