Package BioSQL :: Module BioSeqDatabase
[show private | hide private]
[frames | no frames]

Module BioSQL.BioSeqDatabase

Connect with a BioSQL database and load Biopython like objects from it.

This provides interfaces for loading biological objects from a relational database, and is compatible with the BioSQL standards.
Classes
Adaptor  
BioSeqDatabase  
DBServer  

Function Summary
  open_database(driver, **kwargs)
Main interface for loading a existing BioSQL-style database.

Variable Summary
dict _allowed_lookups = {'display_id': 'fetch_seqid_by_displa...

Function Details

open_database(driver='MySQLdb', **kwargs)

Main interface for loading a existing BioSQL-style database.

This function is the easiest way to retrieve a connection to a database, doing something like:
>>> from BioSeq import BioSeqDatabase
>>> server = BioSeqDatabase.open_database(user = "root", db="minidb")
the various options are: driver -> The name of the database driver to use for connecting. The driver should implement the python DB API. By default, the MySQLdb driver is used. user -> the username to connect to the database with. password, passwd -> the password to connect with host -> the hostname of the database database or db -> the name of the database

Variable Details

_allowed_lookups

Type:
dict
Value:
{'accession': 'fetch_seqid_by_accession',
 'display_id': 'fetch_seqid_by_display_id',
 'gi': 'fetch_seqid_by_identifier',
 'name': 'fetch_seqid_by_display_id',
 'primary_id': 'fetch_seqid_by_identifier',
 'version': 'fetch_seqid_by_version'}                                  

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