This is a read-only mirror of pymolwiki.org

Difference between revisions of "Elbow angle"

From PyMOL Wiki
Jump to navigation Jump to search
(→‎Basic usage: added link to COM)
m (1 revision)
 
(2 intermediate revisions by 2 users not shown)
Line 21: Line 21:
 
The first argument should be a PyMOL object.  You can calculate the elbow angles of multiple Fabs from the same object (one at a time) by specifying the chains manually for each Fab.
 
The first argument should be a PyMOL object.  You can calculate the elbow angles of multiple Fabs from the same object (one at a time) by specifying the chains manually for each Fab.
  
The light and heavy arguments are for PDB chain IDs, and limit_l and limit_h are the last residue of the light and heavy chain variable domains, respectively.  (These last two values can be estimated by visual inspection of the PDB file.)  Setting draw=1 will draw the "dumbbells" seen in the images below.
+
The `light` and `heavy` arguments are for PDB chain IDs, and `limit_l` and `limit_h` are the last residue of the light and heavy chain variable domains, respectively.  (For Kabat-numbered structures, these limits will be 107 and 113, respectively.  For structures with different numbering schemes, the limits can be estimated by visual inspection of the PDB file.)  Setting `draw=1` will draw the "dumbbells" seen in the images below.
  
 
== Examples ==
 
== Examples ==

Latest revision as of 03:26, 16 September 2014

Type Python Script
Download elbow_angle.py
Author(s) Jared Sampson
License BSD
This code has been put under version control in the project Pymol-script-repo


Introduction

This script allows you to calculate the elbow angle of an antibody Fab fragment object and optionally draw a graphical representation of the vectors used to calculate the elbow angle.



Syntax

elbow_angle object [, light=L [, heavy=H [, limit_l=107 [, limit_h=113 [, draw=0 ]]]]]

The first argument should be a PyMOL object. You can calculate the elbow angles of multiple Fabs from the same object (one at a time) by specifying the chains manually for each Fab.

The `light` and `heavy` arguments are for PDB chain IDs, and `limit_l` and `limit_h` are the last residue of the light and heavy chain variable domains, respectively. (For Kabat-numbered structures, these limits will be 107 and 113, respectively. For structures with different numbering schemes, the limits can be estimated by visual inspection of the PDB file.) Setting `draw=1` will draw the "dumbbells" seen in the images below.

Examples

Basic usage

# load an antibody Fab fragment from the PDB
fetch 3ghe, async=0
# calculate the elbow angle and draw the vectors
elbow_angle 3ghe, draw=1

This will produce something like the first image below.

Note that if you don't specify the light/heavy chain IDs or the variable domain limit residue numbers, the default values (L/H and 107/113, respectively) will be used. If your antibody is not Kabat or Chothia numbered, or has different chain names, this will result in an incorrect value or, in the case of wrong chain IDs, may cause the script to fail entirely due to an empty selection. Have a look at Dr. Andrew Martin's Abnum for more information on antibody numbering.

The black "dumbbells" pass through the centers of mass of the variable and constant domains of each Fab (as determined using com.py). The green and red dumbbells denote the residues used to split the variable and constant domains, with a green ball for the light chain, and a red ball for the heavy chain.

Included Example

There is also an example .pml file in the Pymol-script-repo/examples directory which can be run by the following:

import ex
ex elbow_angle

This will run the following .pml file:

Type PyMOL Script
Download examples/elbow_angle.pml
Author(s) Jared Sampson
License BSD
This code has been put under version control in the project Pymol-script-repo

<include src="https://raw.github.com/Pymol-Scripts/Pymol-script-repo/master/examples/elbow_angle.pml" highlight="python" />

and will produce the second image above.

Implementation

The elbow angle is the angle between the pseudo-twofold axes between the light and heavy chain variable and constant domains, respectively. The rotation matrix to superpose VL onto VH and CL onto CH are calculated and the vectors corresponding to the rotation axes are determined (using Christoph Gohlke's transformations.py). The elbow angle is the obtuse angle obtained by taking the arccos of the dot product of the two vectors. For consistency, the elbow angle is reported as less than 180° when the cross product of the Variable and Constant domain rotation axis vectors ( VC ) is a vector pointing the same direction as that from the limit_h residue alpha carbon atom to the limit_l alpha carbon atom.