Package Bio :: Package SCOP :: Module Raf :: Class SeqMapIndex
[hide private]
[frames] | no frames]

Class SeqMapIndex

source code

object --+    
         |    
      dict --+
             |
            SeqMapIndex

An RAF file index.

The RAF file itself is about 50 MB. This index provides rapid, random access of RAF records without having to load the entire file into memory.

The index key is a concatenation of the PDB ID and chain ID. e.g "2drcA", "155c_". RAF uses an underscore to indicate blank chain IDs.

Instance Methods [hide private]
new empty dictionary

__init__(self, filename)
Arguments:
source code
 
__getitem__(self, key)
Return an item from the indexed file.
source code
 
getSeqMap(self, residues)
Get the sequence map for a collection of residues.
source code

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

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

Class Variables [hide private]

Inherited from dict: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, filename)
(Constructor)

source code 

Arguments:

filename -- The file to index
Returns:
new empty dictionary

Overrides: object.__init__

__getitem__(self, key)
(Indexing operator)

source code 
Return an item from the indexed file.
Overrides: dict.__getitem__

getSeqMap(self, residues)

source code 

Get the sequence map for a collection of residues.

residues -- A Residues instance, or a string that can be converted into
a Residues instance.