Package corebio :: Package resource :: Module astral :: Class Raf
[frames | no frames]

Type Raf

object --+    
         |    
 FileIndex --+
             |
            Raf


ASTRAL RAF (Rapid Access Format) Sequence Maps.

The ASTRAL RAF Sequence Maps record the relationship between the PDB SEQRES
records (representing the sequence of the molecule used in an experiment) 
and the ATOM records (representing the atoms experimentally observed). 

This data is derived from the Protein Data Bank CIF files. Known errors in 
the CIF files are corrected manually, with the original PDB file serving as
the final arbiter in case of discrepancies. 

Residues are referenced by residue ID. This consists of a the PDB residue
sequence number (up to 4 digits) and an optional PDB  insertion code (an
ascii alphabetic character, a-z, A-Z). e.g. "1", "10A", "1010b", "-1"

See "ASTRAL RAF Sequence Maps":http://astral.stanford.edu/raf.html

The RAF file itself is about 50 MB. Each line consists of a sequence map of
a different protein chain. This index provides rapid, random
access of RAF records without having to load the entire file into memory.

This class does not load the entire RAF file into memory. Instead, it
reads the file once, noting the location and content of each RafSeqMap.
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. Custom maps of subsequences or spanning multiple chains, can
be constructed with the get_seqmap method.

Method Summary
  __init__(self, raf_file)
  get_seqmap(self, residues)
Get the sequence map for a collection of residues.
    Inherited from FileIndex
  __contains__(self, item)
  __getitem__(self, item)
  __iter__(self)
  __len__(self)
  seek(self, item)
Seek the indexfile to the position of item.
  tell(self, item)
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name...
  __getattribute__(...)
x.__getattribute__('name') <==> x.name...
  __hash__(x)
x.__hash__() <==> hash(x)...
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T...
  __reduce__(...)
helper for pickle...
  __reduce_ex__(...)
helper for pickle...
  __repr__(x)
x.__repr__() <==> repr(x)...
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value...
  __str__(x)
x.__str__() <==> str(x)...

Class Variable Summary
    Inherited from FileIndex
list __slots__ = ['indexedfile', '_parser', '_positions', '_k...
member_descriptor indexedfile = <member 'indexedfile' of 'FileIndex' objec...

Method Details

get_seqmap(self, residues)

Get the sequence map for a collection of residues.

residues -- A SCOP style description of a collection of residues from a
            PDB strucure, (e.g. '(1bba A:10-20,B:)'), as a string or a
            scop.Residues instance.

Generated by Epydoc 2.1 on http://epydoc.sf.net