Table of Contents

Class: Residue Bio/PDB/Residue.py

Represents a residue. A Residue object stores atoms.

Base Classes   
Entity
Methods   
__init__
__repr__
_sort
add
flag_disordered
get_resname
get_segid
get_unpacked_list
is_disordered
sort
  __init__ 
__init__ (
        self,
        id,
        resname,
        segid,
        )

  __repr__ 
__repr__ ( self )

  _sort 
_sort (
        self,
        a1,
        a2,
        )

Sort the Atom objects.

Atoms are sorted alphabetically according to their name, but N, CA, C, O always come first.

Arguments: o a1, a2 - Atom objects

  add 
add ( self,  atom )

Add an Atom object.

Checks for adding duplicate atoms, and raises a PDBConstructionException if so.

Exceptions   
PDBConstructionException, "Atom %s defined twice in residue %s" %( atom_id, self )
  flag_disordered 
flag_disordered ( self )

Set the disordered flag.

  get_resname 
get_resname ( self )

  get_segid 
get_segid ( self )

  get_unpacked_list 
get_unpacked_list ( self )

Returns the list of all atoms, unpack DisorderedAtoms."

  is_disordered 
is_disordered ( self )

Return 1 if the residue contains disordered atoms.

  sort 
sort ( self )


Table of Contents

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