1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module src.quatfit</title>
<meta charset="utf-8">
</head><body bgcolor="#f0f0f8">
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="src.html"><font color="#ffffff">src</font></a>.quatfit</strong></big></big> (28 February 2006)</font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/Users/d3y382/workspaces/apbs-pdb2pqr/pdb2pqr/src/quatfit.py">/Users/d3y382/workspaces/apbs-pdb2pqr/pdb2pqr/src/quatfit.py</a></font></td></tr></table>
<p><tt>Quatfit routines for PDB2PQR<br>
<br>
This module is used to find the coordinates of a new<br>
atom based on a reference set of<br>
coordinates and a definition set of coordinates.<br>
<br>
Original Code by David J. Heisterberg<br>
The Ohio Supercomputer Center<br>
1224 Kinnear Rd.<br>
Columbus, OH 43212-1163<br>
(614)292-6036<br>
djh@osc.edu djh@ohstpy.bitnet ohstpy::djh<br>
<br>
Translated to C from fitest.f program and interfaced with<br>
Xmol program by Jan Labanowski, jkl@osc.edu jkl@ohstpy.bitnet<br>
ohstpy::jkl<br>
<br>
----------------------------<br>
<br>
PDB2PQR -- An automated pipeline for the setup, execution, and analysis of<br>
Poisson-Boltzmann electrostatics calculations<br>
<br>
Copyright (c) 2002-2011, Jens Erik Nielsen, University College Dublin; <br>
Nathan A. Baker, Battelle Memorial Institute, Developed at the Pacific <br>
Northwest National Laboratory, operated by Battelle Memorial Institute, <br>
Pacific Northwest Division for the U.S. Department Energy.; <br>
Paul Czodrowski & Gerhard Klebe, University of Marburg.<br>
<br>
All rights reserved.<br>
<br>
Redistribution and use in source and binary forms, with or without modification, <br>
are permitted provided that the following conditions are met:<br>
<br>
* Redistributions of source code must retain the above copyright notice, <br>
this list of conditions and the following disclaimer.<br>
* Redistributions in binary form must reproduce the above copyright notice, <br>
this list of conditions and the following disclaimer in the documentation <br>
and/or other materials provided with the distribution.<br>
* Neither the names of University College Dublin, Battelle Memorial Institute,<br>
Pacific Northwest National Laboratory, US Department of Energy, or University<br>
of Marburg nor the names of its contributors may be used to endorse or promote<br>
products derived from this software without specific prior written permission.<br>
<br>
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND <br>
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED <br>
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. <br>
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, <br>
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, <br>
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, <br>
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF <br>
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE <br>
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED <br>
OF THE POSSIBILITY OF SUCH DAMAGE.<br>
<br>
----------------------------</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="math.html">math</a><br>
</td><td width="25%" valign=top><a href="os.html">os</a><br>
</td><td width="25%" valign=top><a href="sys.html">sys</a><br>
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#eeaa77">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
<td width="100%"><dl><dt><a name="-center"><strong>center</strong></a>(numpoints, refcoords)</dt><dd><tt>Center a molecule using equally weighted points<br>
<br>
Parameters<br>
numpoints: Number of points<br>
refcoords: List of reference coordinates, with each set<br>
a list of form [x,y,z] (list)<br>
Returns<br>
refcenter: Center of the set of points (list)<br>
relcoords: Moved refcoords relative to refcenter (list)</tt></dd></dl>
<dl><dt><a name="-findCoordinates"><strong>findCoordinates</strong></a>(numpoints, refcoords, defcoords, defatomcoords)</dt><dd><tt>Driver for the quaternion file. Provide the coordinates as inputs<br>
and obtain the coordinates for the new atom as output.<br>
<br>
Parameters<br>
numpoints: The number of points in each list (int)<br>
refcoords: The reference coordinates, a list of lists of form<br>
[x,y,z] (list)<br>
defcoords: The definition coordinates, a list of lists of form<br>
[x,y,z] (list)<br>
defatomcoords: The definition coordinates for the atom to be<br>
placed in the reference frame (list)<br>
Returns<br>
newcoords: The coordinates of the new atom in the<br>
reference frame (list)</tt></dd></dl>
<dl><dt><a name="-jacobi"><strong>jacobi</strong></a>(a, nrot)</dt><dd><tt>Jacobi diagonalizer with sorted output, only good for 4x4 matrices<br>
<br>
Parameters<br>
a: Matrix to diagonalize (4x4 list)<br>
nrot: Maximum number of sweeps<br>
Returns<br>
d: Eigenvalues<br>
v: Eigenvectors</tt></dd></dl>
<dl><dt><a name="-q2mat"><strong>q2mat</strong></a>(q)</dt><dd><tt>Generate a left rotation matrix from a normalized quaternion<br>
<br>
Parameters<br>
q: The normalized quaternion (list)<br>
Returns<br>
u: The rotation matrix (2-dimensional list)</tt></dd></dl>
<dl><dt><a name="-qchichange"><strong>qchichange</strong></a>(initcoords, refcoords, angle)</dt><dd><tt>Change the chiangle of the reference coordinate using the<br>
initcoords and the given angle<br>
<br>
Parameters<br>
initcoords: Coordinates based on the point and basis atoms<br>
(one dimensional list)<br>
difchi : The angle to use (float)<br>
refcoords : The atoms to analyze (list of many coordinates)<br>
Returns<br>
newcoords : The new coordinates of the atoms (list of many coords)</tt></dd></dl>
<dl><dt><a name="-qfit"><strong>qfit</strong></a>(numpoints, refcoords, defcoords)</dt><dd><tt>Method for getting new atom coordinates from sets of reference<br>
and definition coordinates.<br>
<br>
Parameters<br>
numpoints: The number of points in each list (int)<br>
refcoords: List of reference coordinates, with each set<br>
a list of form [x,y,z] (list)<br>
defcoords: List of definition coordinates, with each set<br>
a list of form [x,y,z] (list)</tt></dd></dl>
<dl><dt><a name="-qtransform"><strong>qtransform</strong></a>(numpoints, defcoords, refcenter, fitcenter, rotation)</dt><dd><tt>Transform the set of defcoords using the reference center, the fit<br>
center, and a rotation matrix.<br>
<br>
Parameters<br>
numpoints: The number of points in each list (int)<br>
defcoords: Definition coordinates (list)<br>
refcenter: The reference center (list)<br>
defcenter: The definition center (list)<br>
rotation: The rotation matrix (list)<br>
Returns<br>
newcoords: The coordinates of the new point (list)</tt></dd></dl>
<dl><dt><a name="-qtrfit"><strong>qtrfit</strong></a>(numpoints, defcoords, refcoords, nrot)</dt><dd><tt>Find the quaternion, q, [and left rotation matrix, u] that minimizes<br>
| qTXq - Y | ^ 2 [|uX - Y| ^ 2]<br>
This is equivalent to maximizing Re (qTXTqY)<br>
The left rotation matrix, u, is obtained from q by<br>
u = qT1q<br>
<br>
Parameters<br>
numpoints: The number of points in each list (int)<br>
defcoords: List of definition coordinates, with each set<br>
a list of form [x,y,z] (list)<br>
refcoords: List of fitted coordinates, with each set<br>
a list of form [x,y,z] (list)<br>
nrot : The maximum number of jacobi sweeps<br>
Returns<br>
q : The best-fit quaternion<br>
u : The best-fit left rotation matrix</tt></dd></dl>
<dl><dt><a name="-rotmol"><strong>rotmol</strong></a>(numpoints, x, u)</dt><dd><tt>Rotate a molecule<br>
<br>
Parameters<br>
numpoints: The number of points in the list (int)<br>
x: The input coordinates (list)<br>
u: The left rotation matrix (list)<br>
Returns<br>
out: The rotated coordinates out=u * x (list)</tt></dd></dl>
<dl><dt><a name="-translate"><strong>translate</strong></a>(numpoints, refcoords, center, mode)</dt><dd><tt>Translate a molecule using equally weighted points<br>
<br>
Parameters<br>
numpoints: Number of points<br>
refcoords: List of reference coordinates, with each set<br>
a list of form [x,y,z] (list)<br>
center: Center of the system(list)<br>
mode: If 1, center will be subtracted from refcoords<br>
If 2, center will be added to refcoords<br>
Returns<br>
relcoords: Moved refcoords relative to refcenter (list)</tt></dd></dl>
</td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
<td width="100%"><strong>DIHEDRAL</strong> = 57.2958<br>
<strong>INSTALLDIR</strong> = '/Users/d3y382/pdb2pqr/'<br>
<strong>SMALL</strong> = 1e-07<br>
<strong>TMPDIR</strong> = 'tmp/'<br>
<strong>__author__</strong> = 'David Heisterberg, Jan Labanowski, Jens Erik Nielsen, Todd Dolinsky'<br>
<strong>__date__</strong> = '28 February 2006'</td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#7799ee">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
<td width="100%">David Heisterberg, Jan Labanowski, Jens Erik Nielsen, Todd Dolinsky</td></tr></table>
</body></html>
|