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

Class Dictionary

source code

Access a GenBank file using a dictionary-like interface.

Instance Methods [hide private]
 
__init__(self, indexname, parser=None)
Initialize and open up a GenBank dictionary.
source code
 
__len__(self) source code
 
__getitem__(self, key) source code
 
keys(self) source code
Method Details [hide private]

__init__(self, indexname, parser=None)
(Constructor)

source code 

Initialize and open up a GenBank dictionary. DEPRECATED

Each entry is a full GenBank record (i.e. from the LOCUS line to the // at the end of the sequence).

Most GenBank files have only one such "entry", in which case using this dictionary class is rather unnecessary.

Arguments: o indexname - The name of the index for the file. This should have been created using the index_file function. o parser - An optional argument specifying a parser object that the records should be run through before returning the output. If parser is None then the unprocessed contents of the file will be returned.