next up previous contents index
Next: Flowchart of comparative modeling Up: Equations used in the Previous: Features and their derivatives   Contents   Index

Subsections

Restraints and their derivatives

The chain rule is used to find the partial derivatives of the feature pdf with respect to the atomic coordinates. Thus, only the derivatives of the pdf with respect to the features are listed here.

Single Gaussian restraint

The pdf for a geometric feature $f$ (e.g., distance, angle, dihedral angle) is

\begin{displaymath}
p = \frac{1}{\sigma \sqrt{2 \pi}} \exp \left[-\frac{1}{2}
\left(\frac{f-\bar{f}}{\sigma}\right)^2\right] \; .
\end{displaymath} (6.38)

A corresponding restraint $c$ in the sum that defines the objective function $F$ is
\begin{displaymath}
c = -\ln p = \frac{1}{2} \left(\frac{f-\bar{f}}{\sigma}\right)^2 -
\ln \frac{1}{\sigma \sqrt{2 \pi}}
\end{displaymath} (6.39)

The first derivatives with respect to feature $f$ are:

\begin{displaymath}
\frac{ \; {d}c}{ \; {d}f} = \frac{f-\bar{f}}{\sigma} \; \frac{1}{\sigma} \; .
\end{displaymath} (6.40)

Multiple Gaussian restraint

The polymodal pdf for a geometric feature $f$ (e.g., distance, angle, dihedral angle) is

\begin{displaymath}
p = \sum_{i=1}^n \omega_i p_i = \sum_{i=1}^n \omega_i
\fr...
...{2}
\left(\frac{f-\bar{f}_i}{\sigma_i}\right)^2\right] \; .
\end{displaymath} (6.41)

A corresponding restraint $c$ in the sum that defines the objective function $F$ is
\begin{displaymath}
c = -\ln p = -\ln \sum_{i=1}^n \omega_i p_i
\end{displaymath} (6.42)

The first derivatives with respect to feature $f$ are:

$\displaystyle \frac{ \; {d}c}{ \; {d}f}$ $\textstyle =$ $\displaystyle \frac{1}{p} \sum_{i=1}^n \omega_i p_i \cdot
\left[\frac{f-\bar{f}_i}{\sigma_i}\frac{1}{\sigma_i}\right]
\; .$ (6.43)

When any of the normalized deviations $v_i = (f-\bar{f}_i) / \sigma_i$ is large, there are numerical instabilities in calculating the derivatives because $v_i$ are arguments to the exp function. Robustness is ensured as follows. The `effective' normalized deviation is used in all the equations above when the magnitude of normalized violation $v$ is larger than cutoff rgauss1 (10 for double precision). This scheme works up to rgauss2 (200 for double precision); violations larger than that are ignored. This trick is equivalent to increasing the standard deviation $\sigma_i$. A slight disadvantage is that there is a discontinuity in the first derivatives at rgauss1. However, if continuity were imposed, the range would not be extended (this is equivalent to linearizing the Gaussian, but since it is already linear for large deviations, a linearization with derivatives smoothness would not introduce much change at all).


$\displaystyle M$ $\textstyle =$ $\displaystyle 37 \ \ \ ; \ \ \ \
\mbox{$M^2/2$\ has to be smaller than the largest argument to $\exp$}$ (6.44)
$\displaystyle A$ $\textstyle =$ $\displaystyle \frac{1}{M} \frac{\mbox{\tt rgauss2}-M}
{\mbox{\tt rgauss2} -\mbox{\tt rgauss1}}$ (6.45)
$\displaystyle B$ $\textstyle =$ $\displaystyle \frac{\mbox{\tt rgauss2}}{M} \frac{M-\mbox{\tt rgauss1}}
{\mbox{\tt rgauss2}-\mbox{\tt rgauss1}}$ (6.46)
$\displaystyle v$ $\textstyle =$ $\displaystyle \frac{f - \bar{f}_i}{\sigma_i}$ (6.47)
$\displaystyle F$ $\textstyle =$ $\displaystyle A \left\vert v \right\vert + B$ (6.48)
$\displaystyle v'$ $\textstyle =$ $\displaystyle v / F$ (6.49)

Now, Eqs. 6.41-6.43 are used with $v'$ instead of $v$. For single precision, $M = 12$, rgauss1 = 4, rgauss2 = 100.

Multiple binormal restraint

The polymodal pdf for a geometric feature $(f_1, f_2)$ (e.g., a pair of dihedral angles) is


$\displaystyle p$ $\textstyle =$ $\displaystyle \sum_{i=1}^n \omega_i p_i \; = \; \sum_{i=1}^n \omega_i
\frac{1}{2 \pi \sigma_{1i} \sigma_{2i} \sqrt{(1-\rho_i^2)}} \; \cdot$  
    $\displaystyle \exp \left\{-\frac{1}{2 (1-\rho_i^2)}
\left[
\left(\frac{f_1-\bar...
...i}} +
\left(\frac{f_2-\bar{f}_{2i}}{\sigma_{2i}}\right)^2
\right]
\right\} \; .$ (6.50)

where $\rho < 1$. $\rho$ is the correlation coefficient between $f_1$ and $f_2$. MODELLER actually uses the following series expansion to calculate $p$:


$\displaystyle p$ $\textstyle =$ $\displaystyle \sum_{i=1}^n
\frac{1}{2 \pi \sigma_{1i} \sigma_{2i} \sqrt{(1-\rho_i^2)}} \; \cdot$  
    $\displaystyle \exp \left\{-\frac{1}{1-\rho_i^2}
\left[
\frac{1-\cos(f_1-\bar{f}...
...ma_{2i}} +
\frac{1-\cos(f_2-\bar{f}_{2i})}{\sigma_{2i}^2}
\right]
\right\} \; .$ (6.51)

A corresponding restraint $c$ in the sum that defines the objective function $F$ is

\begin{displaymath}
c = -\ln p = -\ln \sum_{i=1}^n \omega_i p_i
\end{displaymath} (6.52)

The first derivatives with respect to features $f_1$ and $f_2$ are:

$\displaystyle \frac{\partial c}{\partial f_1}$ $\textstyle =$ $\displaystyle \frac{1}{p}
\sum_{i=1}^n \left[ \omega_i p_i \cdot
\frac{1}{\sigm...
...frac{\cos(f_1-\bar{f}_{1i})\sin(f_2-\bar{f}_{2i})}{\sigma_{2i}}
\right)
\right]$ (6.53)
$\displaystyle \frac{\partial c}{\partial f_2}$ $\textstyle =$ $\displaystyle \frac{1}{p}
\sum_{i=1}^n \left[ \omega_i p_i \cdot
\frac{1}{\sigm...
...\cos(f_2-\bar{f}_{2i})\sin(f_1-\bar{f}_{1i})}{\sigma_{1i}}
\right)
\right] \; .$ (6.54)

Lower bound

This is like the left half of a single Gaussian restraint:

\begin{displaymath}
p = \left\{ \begin{array}{ll} p_{gauss} \; ; & f < \bar{f} \\
0 \; ; & f \geq \bar{f} \\
\end{array} \right.
\end{displaymath} (6.55)

where $\bar{f}$ is a lower bound and $p_{gauss}$ is given in Eq. 6.38. A similar equation relying on the first derivatives of a Gaussian $p$ holds for the first derivatives of a lower bound.

Upper bound

This is like the right half of a single Gaussian restraint:

\begin{displaymath}
p = \left\{ \begin{array}{ll} p_{gauss} \; ; & f > \bar{f} \\
0 \; ; & f \leq \bar{f} \\
\end{array} \right.
\end{displaymath} (6.56)

where $\bar{f}$ is an upper bound and $p_{gauss}$ is given in Eq. 6.38. A similar equation relying on the first derivatives of a Gaussian $p$ holds for the first derivatives of an upper bound.

Cosine restraint

This is usually used for dihedral angles $f$:


\begin{displaymath}
c = \vert b \vert - b \cos(n f + a)
\end{displaymath} (6.57)

where $b$ is CHARMM force constant, $a$ is phase shift (tested for 0 and 180${}^{o}$), and $n$ is periodicity (tested for 1, 2, 3, 4, 5, and 6). The CHARMM phase value from the CHARMM parameter library corresponds to $a-180$${}^{o}$. The force constant $b$ can be negative, in effect offsetting the phase $a$ for 180${}^{o}$ compared to the same but positive force constant.


\begin{displaymath}
\frac{ \; {d}c}{ \; {d}f} = b n \sin(n f + a)
\end{displaymath} (6.58)

Coulomb restraint


$\displaystyle c$ $\textstyle =$ $\displaystyle \frac{1}{\epsilon_r}\frac{q_i q_j}{f} s(f,f_1,f_2)$ (6.59)
$\displaystyle s(f,f_1,f_2)$ $\textstyle =$ $\displaystyle \left\{ \begin{array}{ll} 1 \; ;
& f \leq f_1 \\
\frac{(f_2 - f)...
...f_2-f_1)^3}\; ;
& f_o < f \leq f_2 \\
0 \; ;
& f > f_2 \\
\end{array} \right.$ (6.60)

where $q_i$ and $q_j$ are the atomic charges of atoms $i$ and $j$, obtained from the CHARMM topology file, that are at a distance $f$. $\epsilon_r$ is the relative dielectric, controlled by the energy_data.relative_dielectric variable. Function $s(f,f_1,f_2)$ is a switching function that smoothes the potential down to zero in the interval from $f_1$ to $f_2$ ($f_2> f_1$). The total Coulomb energy of a molecule is a sum over all pairs of atoms that are not in the same bonds or bond angles. 1-4 energy for the 1-4 atom pairs in the same dihedral angle corresponds to the ELEC14 MODELLER term; the remaining longer-range contribution corresponds to the ELEC term.

The first derivatives are:

$\displaystyle \frac{ \; {d}c}{ \; {d}f}$ $\textstyle =$ $\displaystyle -\frac{c}{f} + \frac{c}{s} \frac{ \; {d}s}{ \; {d}f}$ (6.61)
$\displaystyle \frac{ \; {d}s}{ \; {d}f}$ $\textstyle =$ $\displaystyle \left\{ \begin{array}{ll} 0 \; ;
& f \leq f_1 \\
\frac{6 (f_2-f)...
..._2-f_1)^3} \; ;
& f_1 < f \leq f_2 \\
0 \; ;
& f > f_2 \\
\end{array} \right.$ (6.62)

Lennard-Jones restraint

Usually used for non-bonded distances:

\begin{displaymath}
c = \left[\left(\frac{A}{f}\right)^{12} -
\left(\frac{B}{f}\right)^6 \right] s(f,f_1,f_2)
\end{displaymath} (6.63)

The parameters $f_1$ and $f_2$ of the switching function can be different from those in Eq. 6.60. The parameters $A$ and $B$ are obtained from the CHARMM parameter file (NONBOND section) where they are given as $E_i$ and $r_j$ such that $E_{ij}(f) = -4
\sqrt{E_i E_j} [(\rho_{ij}/f)^{12} - (\rho_{ij}/f)^6]$ in kcal/mole for $f$ in angstroms and $\rho = (r_i + r_j)/2^{1/6}$; the minimum of $E$ is $-\sqrt{E_i E_j}$ at $f=(r_i + r_j)$, and its zero is at $f=\rho$. The total Lennard-Jones energy should be evaluated over all pairs of atoms that are not in the same bonds or bond angles. The parameters $A$ and $B$ for 1-4 pairs in dihedral angles can be different from those for the other pairs; they are obtained from the second set of $E_i$ and $r_i$ in the CHARMM parameter file, if it exists. 1-4 energy corresponds to the LJ14 MODELLER term; the remaining longer-range contribution corresponds to the LJ term.

The first derivatives are:

$\displaystyle \frac{ \; {d}c}{ \; {d}f}$ $\textstyle =$ $\displaystyle \frac{C s}{f} - C \frac{ \; {d}s}{ \; {d}f}$ (6.64)
$\displaystyle C$ $\textstyle =$ $\displaystyle -12 \left(\frac{A}{f}\right)^{12} + 6 \left(\frac{B}{f}\right)^6$ (6.65)

Spline restraint

Any restraint form can be represented by a cubic spline [Press et al., 1992]:


$\displaystyle c$ $\textstyle =$ $\displaystyle A c_j + B c_{j+1} + C c''_j + D c''_{j+1}$ (6.66)
$\displaystyle A$ $\textstyle =$ $\displaystyle \frac{f_{j+1} - f}{f_{j+1} - f_j}$ (6.67)
$\displaystyle B$ $\textstyle =$ $\displaystyle 1 - A$ (6.68)
$\displaystyle C$ $\textstyle =$ $\displaystyle \frac{1}{6}(A^3-A)(f_{j+1} - f_j)^2$ (6.69)
$\displaystyle D$ $\textstyle =$ $\displaystyle \frac{1}{6}(B^3-B)(f_{j+1} - f_j)^2$ (6.70)

where $f_j \le f \le f_{j+1}$.

The first derivatives are:

\begin{displaymath}
\frac{ \; {d}c}{ \; {d}f} = \frac{c_{j+1} - c_j}{f_{j+1} - f...
...{j+1}-f_j) c''_j +
\frac{3B^2 - 1}{6} (f_{j+1}-f_j) c''_{j+1}
\end{displaymath} (6.71)

The values of $c$ and $c'$ beyond $f_1$ and $f_n$ are obtained by linear interpolation from the termini. A violation of the restraint is calculated by finding the global minimum. A relative violation is estimated by using a standard deviation (e.g., force constant) obtained by fitting a parabola to the global minimum.

Variable spacing of spline points could be used to save on memory. However, this would increase the execution time, so it is not used.

Symmetry restraint

The asymmetry penalty added to the objective function is defined as


\begin{displaymath}
F_{symm} = \sum_{i<j} \omega_i \omega_j (d_{ij} - d'_{ij})^2
\end{displaymath} (6.72)

where the sum runs over all pairs of equivalent atoms $ij$, $\omega_i$ is an atom weight for atom $i$, $d_{ij}$ is an intra-molecular distance between atoms $ij$ in the first segment, and $d'_{ij}$ is the equivalent distance in the second segment.

For each $i<j$, the first derivatives are:

$\displaystyle \frac{\partial c}{\partial \vec{d}_{ij}}$ $\textstyle =$ $\displaystyle 2 \omega_i \omega_j (d_{ij} - d'_{ij})
\frac{\vec{d}_{ij}}{d_{ij}}$ (6.73)
$\displaystyle \frac{\partial c}{\partial \vec{d}'_{ij}}$ $\textstyle =$ $\displaystyle -
2 \omega_i \omega_j (d_{ij} - d'_{ij})
\frac{\vec{d}'_{ij}}{d'_{ij}}$ (6.74)

Thus, the total first derivatives are obtained by summing the two expressions above for all $i$ and $j>i$ distances.


next up previous contents index
Next: Flowchart of comparative modeling Up: Equations used in the Previous: Features and their derivatives   Contents   Index
Ben Webb 2006-02-28