Table of Contents

Module: bondGeom chimera/bondGeom.py

Bond geometry utilities

Imported modules   
from chimera import distance, cross, Point, Vector, Xform_zAlign, Xform_lookAt, Xform_yRotation
from math import pi, sin, cos
Functions   
anglePos
bondPositions
linearPos
planarPos
rightAngle
singlePos
tetraPos
  anglePos 
anglePos (
        atomPos,
        bondPos,
        bondLength,
        degrees,
        coplanar=None,
        )

Exceptions   
ValueError, "More than 2 coplanar positions specified!"
  bondPositions 
bondPositions (
        bondee,
        geom,
        bondLen,
        bonded,
        coPlanar=None,
        toward=None,
        away=None,
        toward2=None,
        away2=None,
        )

Return a list of possible bond partner positions for bondee that satisfy geometry geom and are of length bondLen. bonded are positions of already-bonded substituents to bondee.

bondee is a Point and bonded is a list of Points. The return value is a list of Points.

For planar geometries, coPlanar can be a list of one or two points that the bond positions should be coplanar with.

For rotamers, if toward is specified then one bond position of the rotamer will be as close as possible to the toward point. Conversely, if away is specified, then all bond positions will be as far as possible from the away point. toward has precedence over away. If this doesn't completely determine the bond positions (i.e. no initial bonded substituents), then toward2 and away2 will be considered in a similar manner to determine the remaining positions.

Exceptions   
ValueError, "Cannot specify both toward and away," " or both toward2 and away2"
ValueError, "Unknown geometry type '%s'" % geom
  linearPos 
linearPos (
        bondee,
        bonded,
        bondLen,
        toward=None,
        away=None,
        )

  planarPos 
planarPos (
        bondee,
        bonded,
        bondLen,
        coPlanar=None,
        toward=None,
        away=None,
        toward2=None,
        away2=None,
        )

  rightAngle 
rightAngle ( orig )

  singlePos 
singlePos (
        bondee,
        bondLen,
        toward=None,
        away=None,
        )

  tetraPos 
tetraPos (
        bondee,
        bonded,
        bondLen,
        toward=None,
        away=None,
        toward2=None,
        away2=None,
        )


Table of Contents

This document was automatically generated on Tue Nov 5 16:56:52 2002 by HappyDoc version 2.0.1