Package Bio :: Package SeqIO :: Module _index :: Class SequentialSeqFileDict
[hide private]
[frames] | no frames]

Class SequentialSeqFileDict

source code

     object --+        
              |        
           dict --+    
                  |    
_IndexedSeqFileDict --+
                      |
                     SequentialSeqFileDict
Known Subclasses:

Indexed dictionary like access to most sequential sequence files.

Instance Methods [hide private]
new empty dictionary

__init__(self, filename, format, alphabet, key_function)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
_build(self)
Actually scan the file identifying records and offsets (PRIVATE).
source code
 
__getitem__(x, y)
x[y]
source code
 
get_raw(self, key)
Similar to the get method, but returns the record as a raw string.
source code

Inherited from _IndexedSeqFileDict: __repr__, __setitem__, __str__, clear, copy, fromkeys, get, items, iteritems, pop, popitem, update, values

Inherited from dict: __cmp__, __contains__, __delitem__, __eq__, __ge__, __getattribute__, __gt__, __iter__, __le__, __len__, __lt__, __ne__, __new__, __sizeof__, has_key, iterkeys, itervalues, keys, setdefault, viewitems, viewkeys, viewvalues

Inherited from object: __delattr__, __format__, __reduce__, __reduce_ex__, __setattr__, __subclasshook__

Class Variables [hide private]

Inherited from dict: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, filename, format, alphabet, key_function)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Returns:
new empty dictionary

Overrides: object.__init__
(inherited documentation)

_build(self)

source code 

Actually scan the file identifying records and offsets (PRIVATE).

Returns an iterator giving tuples of record names and their offsets.

Overrides: _IndexedSeqFileDict._build
(inherited documentation)

__getitem__(x, y)
(Indexing operator)

source code 

x[y]

Overrides: dict.__getitem__

get_raw(self, key)

source code 

Similar to the get method, but returns the record as a raw string.

Overrides: _IndexedSeqFileDict.get_raw