Access SwissProt at ExPASy using a read-only dictionary interface.
Methods
|
|
|
|
__getitem__
|
__getitem__ ( self, id )
__getitem__(self, id) -> object
Return a SwissProt entry. id is either the id or accession
for the entry. Raises a KeyError if there's an error.
|
|
__init__
|
__init__ (
self,
delay=5.0,
parser=None,
)
__init__(self, delay=5.0, parser=None)
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.
|
|
__len__
|
__len__ ( self )
Exceptions
|
|
NotImplementedError, "SwissProt contains lots of entries"
|
|
|
__setitem__
|
__setitem__ (
self,
key,
item,
)
Exceptions
|
|
NotImplementedError, "This is a read-only dictionary"
|
|
|
clear
|
clear ( self )
Exceptions
|
|
NotImplementedError, "This is a read-only dictionary"
|
|
|
copy
|
copy ( self )
Exceptions
|
|
NotImplementedError, "You don't need to do this..."
|
|
|
get
|
get (
self,
id,
failobj=None,
)
|
|
has_key
|
has_key ( self, id )
has_key(self, id) -> bool
|
|
items
|
items ( self )
Exceptions
|
|
NotImplementedError, "You don't really want to do this..."
|
|
|
keys
|
keys ( self )
Exceptions
|
|
NotImplementedError, "You don't really want to do this..."
|
|
|
update
|
update ( self )
Exceptions
|
|
NotImplementedError, "This is a read-only dictionary"
|
|
|
values
|
values ( self )
Exceptions
|
|
NotImplementedError, "You don't really want to do this..."
|
|