Package Bio :: Package Mindy :: Module SimpleSeqRecord
[show private | hide private]
[frames | no frames]

Module Bio.Mindy.SimpleSeqRecord

Index a file based on information in a SeqRecord object.

This indexer tries to make it simple to index a file of records (ie. like a GenBank file full of entries) so that individual records can be readily retrieved.

The indexing in this file takes place by converting the elements in the file into SeqRecord objects, and then indexing by some item in these SeqRecords. This is a slower method, but is very flexible.

We have two default functions to index by the id and name elements of a SeqRecord (ie. LOCUS and accession number from GenBank). There is also a base class which you can derive from to create your own indexer which allows you to index by anything you feel like using python code.
Classes
BaseSeqRecordIndexer Base class for indexing using SeqRecord information.
FixDocumentBuilder A SAX builder-style class to make a parsed SeqRecord available.
FunctionIndexer Indexer to index based on values returned by a function.
SimpleIndexer Index a file based on .id and .name attributes of a SeqRecord.

Function Summary
  create_berkeleydb(files, db_name, indexer)
  create_flatdb(files, db_name, indexer)

Generated by Epydoc 2.1 on Sat Jul 16 15:49:03 2005 http://epydoc.sf.net