Package Bio :: Package Fasta :: Class Dictionary
[hide private]
[frames] | no frames]

Class Dictionary

source code

object --+    
         |    
      dict --+
             |
            Dictionary

Accesses an indexed FASTA file using a dictionary interface. DEPRECATED

Instance Methods [hide private]
new empty dictionary

__init__(self, indexname, parser=None, filename=None)
Open a Fasta Dictionary.
source code
 
_load_seq(self, key) source code
 
__getitem__(self, key)
x[y]
source code

Inherited from dict: __cmp__, __contains__, __delitem__, __eq__, __ge__, __getattribute__, __gt__, __hash__, __iter__, __le__, __len__, __lt__, __ne__, __new__, __repr__, __setitem__, clear, copy, fromkeys, get, has_key, items, iteritems, iterkeys, itervalues, keys, pop, popitem, setdefault, update, values

Inherited from object: __delattr__, __reduce__, __reduce_ex__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

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

source code 

Open a Fasta Dictionary. DEPRECATED

indexname is the name of the index for the dictionary. The index should have been created using the index_file function.

parser is an optional Parser object to change the results into another form. If set to None, then the raw contents of the file will be returned.

filename specifies the name of the file that this index references. This is useful in cases where the file has been moved since indexing. If no filename is supplied (the default) the filename stored in the index will be used. XXX This is no longer supported -- use symbolic links in the filesystem.

Returns:
new empty dictionary

Overrides: object.__init__

__getitem__(self, key)
(Indexing operator)

source code 

x[y]

Overrides: dict.__getitem__
(inherited documentation)