[BioPython] Regarding GenBank

Sameet Mehta sameet at nccs.res.in
Thu Aug 12 02:32:43 EDT 2004


Hi all,
I am getting strange problems with the indexing of the GenBank file.  Is 
there any upper limit on the size of GenBank file that can be indexed.  I am 
sending the commands i typed on the IDLE and the trace that i got back.  I 
know that the Genbank files are fine because i downloaded it directly from 
the net

>>> from Bio import GenBank
>>> dict_file = r'C:\Sameet\correspondence\genbank.gb'
>>> index_file = r'C:\Sameet\correspondence\genbank.idx'
>>> GenBank.index_file(dict_file, index_file)

This is the trace that i get.  Am i doing something wrong

Traceback (most recent call last):
  File "<pyshell#7>", line 1, in -toplevel-
    GenBank.index_file(dict_file, index_file)
  File "C:\Python23\Lib\site-packages\Bio\GenBank\__init__.py", line 1283, 
in index_file
    SimpleSeqRecord.create_flatdb([filename], indexname, indexer)
  File "C:\Python23\Lib\site-packages\Bio\Mindy\SimpleSeqRecord.py", line 
152, in create_flatdb
    creator.load(filename, builder = builder, fileid_info = {})
  File "C:\Python23\Lib\site-packages\Bio\Mindy\BaseDB.py", line 52, in load
    for record in iterator.iterate(source, cont_handler = builder):
  File "C:\Python23\Lib\site-packages\Martel\IterParser.py", line 76, in 
iterateFile
    self.record_parser.parseString(rec)
  File "C:\Python23\Lib\site-packages\Martel\Parser.py", line 356, in 
parseString
    self._err_handler.fatalError(result)
  File "C:\Python23\lib\xml\sax\handler.py", line 38, in fatalError
    raise exception
ParserPositionException: error parsing at or beyond character 1843

Is there any bug?

regards
Sameet

--
National Centre for Cell Science, Pune



More information about the BioPython mailing list