Package Bio :: Package SwissProt :: Module SProt :: Class ExPASyDictionary
[hide private]
[frames] | no frames]

Class ExPASyDictionary

source code

Access SwissProt at ExPASy using a read-only dictionary interface.

Instance Methods [hide private]
 
__init__(self, delay=5.0, parser=None)
Create a new Dictionary to access SwissProt.
source code
 
__len__(self) source code
 
clear(self) source code
 
__setitem__(self, key, item) source code
 
update(self) source code
 
copy(self) source code
 
keys(self) source code
 
items(self) source code
 
values(self) source code
bool
has_key(self, id) source code
 
get(self, id, failobj=None) source code
object
__getitem__(self, id)
Return a SwissProt entry.
source code
Method Details [hide private]

__init__(self, delay=5.0, parser=None)
(Constructor)

source code 

Create a new Dictionary to access SwissProt. parser is an optional parser (e.g. SProt.RecordParser) object to change the results into another form. If set to None, then the raw contents of the file will be returned. delay is the number of seconds to wait between each query.

__getitem__(self, id)
(Indexing operator)

source code 

Return a SwissProt entry. id is either the id or accession for the entry. Raises a KeyError if there's an error.

Returns: object