Bio :: GenBank :: NCBIDictionary :: Class NCBIDictionary
[hide private]
[frames] | no frames]

Class NCBIDictionary

source code

Access GenBank using a read-only dictionary interface (OBSOLETE).

This object is considered obsolete and likely to be deprecated in the next release of Biopython. Please use Bio.Entrez instead.

Instance Methods [hide private]
 
__init__(self, database, format, parser=None)
Initialize an NCBI dictionary to retrieve sequences.
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(S, id) source code
 
get(self, id, failobj=None) source code
 
__getitem__(self, id)
Return the GenBank entry specified by the GenBank ID.
source code
Class Variables [hide private]
  VALID_DATABASES = ['nucleotide', 'protein', 'genome']
  VALID_FORMATS = ['genbank', 'fasta']
Method Details [hide private]

__init__(self, database, format, parser=None)
(Constructor)

source code 

Initialize an NCBI dictionary to retrieve sequences.

Create a new Dictionary to access GenBank. Valid values for database are 'nucleotide' and 'protein'. Valid values for format are 'genbank' (for nucleotide genbank and protein genpept) and 'fasta'. dely and retmax are old options kept only for compatibility -- do not bother to set them. parser is an optional parser object to change the results into another form. If unspecified, then the raw contents of the file will be returned.

__getitem__(self, id)
(Indexing operator)

source code 

Return the GenBank entry specified by the GenBank ID.

Raises a KeyError if there's an error.