Package Bio :: Package config :: Module SeqDBRegistry :: Class SeqDBRegistry
[hide private]
[frames] | no frames]

Class SeqDBRegistry

source code

Registry.Registry --+    
                    |    
DBRegistry.DBRegistry --+
                        |
                       SeqDBRegistry

This object implements a dictionary-like interface to sequence databases. To get a list of the databases available, do: Bio.seqdb.keys()

Then, you can access the database using: Bio.seqdb[DATABASE_NAME][SEQUENCE_ID]

Instance Methods [hide private]
 
__init__(self, name)
Create a new registry.
source code
 
_load(self, path) source code
 
__getitem__(self, name) source code

Inherited from Registry.Registry: __repr__, __str__, get, items, keys, register, values

Inherited from Registry.Registry (private): _autoload

Method Details [hide private]

__init__(self, name)
(Constructor)

source code 

Create a new registry. name is the name of the registry. load_path is an optional path (e.g. Bio.config.dbdefs) that contains objects for the registry.

Overrides: Registry.Registry.__init__
(inherited documentation)

_load(self, path)

source code 
Overrides: Registry.Registry._load

__getitem__(self, name)
(Indexing operator)

source code 
Overrides: Registry.Registry.__getitem__