Table of Contents

Class: SeqMap Bio/SCOP/Raf.py

An ASTRAL RAF (Rapid Access Format) Sequence Map.

This is a list like object; You can find the location of particular residues with index(), slice this SeqMap into fragments, and glue fragments back together with extend().

pdbid
The PDB 4 character ID
pdb_datestamp
From the PDB file
version
The RAF format version. e.g. 0.01
flags
RAF flags. (See release notes for more information.)
res
A list of Res objects, one for each residue in this sequence map
Methods   
__add__
__getslice__
__iadd__
__init__
append
extend
getAtoms
index
  __add__ 
__add__ ( self,  other )

  __getslice__ 
__getslice__ (
        self,
        i,
        j,
        )

  __iadd__ 
__iadd__ ( self,  other )

  __init__ 
__init__ ( self )

  append 
append ( self,  res )

Append another Res object onto the list of residue mappings.

  extend 
extend ( self,  other )

Append another SeqMap onto the end of self.

Both SeqMaps must have the same PDB ID, PDB datestamp and RAF version. The RAF flags are erased if they are inconsistent. This may happen when fragments are taken from different chains.

Exceptions   
TypeError, "Can only extend a SeqMap with a SeqMap."
TypeError, "Cannot add fragments from different proteins"
TypeError, "Different pdb dates!"
TypeError, "Incompatible rafs"
  getAtoms 
getAtoms (
        self,
        pdb_handle,
        out_handle,
        )

Extract all relevant ATOM and HETATOM records from a PDB file.

The PDB file is scanned for ATOM and HETATOM records. If the chain ID, residue ID (seqNum and iCode), and residue type match a residue in this sequence map, then the record is echoed to the output handle.

This is typically used to find the coordinates of a domain, or other residue subset.

pdb_handle
A handle to the relevant PDB file.
out_handle
All output is written to this file like object.
Exceptions   
RuntimeError, 'I could not find at least one ATOM or ' + 'HETATM record for each and every residue in this sequence map.'
  index 
index (
        self,
        resid,
        chainid="_",
        )

Exceptions   
KeyError, "No such residue " + chainid + resid

Table of Contents

This document was automatically generated on Mon Jul 1 12:02:55 2002 by HappyDoc version 2.0.1