Table of Contents

Class: Residues Bio/SCOP/Residues.py

A collection of residues from a PDB structure.

This class provides code to work with SCOP domain definitions. These are concisely expressed as a one or more chain fragments. For example, "(1bba A:10-20,B:)" indicates residue 10 through 20 (inclusive) of chain A, and every residue of chain B in the pdb structure 1bba. The pdb id and brackets are optional. In addition "-" indicates every residue of a pbd structure with one unnamed chain.

Start and end residue ids consist of the residue sequence number and an optional single letter insertion code. e.g. "12", "-1", "1a", "1000"

pdbid
An optional PDB id, e.g. "1bba"
fragments
A sequence of tuples (chainID, startResID, endResID)
Methods   
__init__
__str__
_parse
  __init__ 
__init__ ( self,  str=None )

  __str__ 
__str__ ( self )

  _parse 
_parse ( self,  str )

Exceptions   
SyntaxError, "I don't understand the chain in %s" % l
SyntaxError, "I don't understand the format of %s" % l

Table of Contents

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