next up previous
Next: Analysis Up: Basics of NAMD Previous: Output: Water Sphere Log

Subsections

Analysis of Water Sphere Equilibration

In this section, you will analyze the extent to which your system has equilibrated using what is known as the Root Mean Square Deviation, or RMSD. The RMSD characterizes the amount by which a given selection of your molecule deviates from a defined position in space. You will use the output files from your minimization and equilibration of ubiquitin in a water sphere to calculate RMSD values and analyze the extent of equilibration of the simulation. RMSD values will be calculated for all atoms of the protein backbone (without hydrogens) for the entire protein and for the protein excluding the last five residues.

RMSD for Entire Protein

Your minimization-equilibration simulation generated a trajectory for the system called ubq_ws_eq.dcd. That trajectory is key to calculating the RMSD of the protein over the course of the equilibration. The simulation was performed in a so-called NVT ensemble in which the number of particles, N, the volume, V, and the temperature, T, are kept constant.

NAMD has analysis tools available at www.ks.uiuc.edu/Research/namd/utilities/. One of them is the script namdplot. This script gets the relevant data from the log files for values of energies, temperature, etc. over time and then uses the package xmgrace to plot them.

\fbox{\parbox{0.9\textwidth}{
\par
\begin{tabular}{ll}
\tt namdplot \emph{...
...var1, var2,\ldots}\\
from the NAMD output file \emph{file}
\end{tabular}
}}

1
In the Unix Terminal window, type:

namdplot TEMP ubq_ws_eq.log  

This will get all the temperature data from the log file and plot it over time. namdplot uses xmgrace to plot, so you need to be sure it is installed.

2
To know which thermodynamic variables are available to plot from a log file, you can type:

namdplot ubq_ws_eq.log  

You will see something like:

ETITLE: TS BOND ANGLE DIHED IMPRP ELECT VDW BOUNDARY MISC  
KINETIC TOTAL TEMP TOTAL2 TOTAL3 TEMPAVG  

in the first line, where TS stands for time step, BOND for bond energy, and so forth.

3
Try using namdplot for TEMP (temperature) and TOTAL (total energy). You should see these variables converging to an average value for an equilibrated system.

The thermodynamic variables that you checked above tell you about the thermodynamic state of the whole system. But you would also like to know if your protein is conformationally stable. For this, you will calculate the RMSD of the protein backbone. This will give you an idea of the stability of the protein. If the RMSD is still increasing at the end of the run, it means your protein is still searching for a lower energy state, and thus is not yet equilibrated!

\fbox{
\begin{minipage}{.2\textwidth}
\includegraphics[width=2.3 cm, height=2....
...mulation as a reference, rather than using an average value.
}
\end{minipage} }

You will use VMD to calculate RMSD values:

4
Launch VMD by typing vmd in the Unix Terminal window.

5
Load your psf file for the water sphere, ubq_ws.psf, which is in your common directory, by clicking File $\rightarrow$ New Molecule... in the VMD Main window. Click the Browse button in the Molecule File Browser window. Click Up one directory in the Choose a molecule file window. Then click common and then ubq_ws.psf in the same window. Click OK and then click Load.

6
Click the Browse button in the Molecule File Browser window. Click Up one directory in the Choose a molecule file window. Then click 1-2-sphere and then ubq_ws_eq.dcd in the same window. Click OK and then click Load. You have loaded the trajectory of your equilibration.

7
The script we are going to use is called rmsd.tcl. This is the script content:

set outfile [open rmsd.dat w]  
set nf [molinfo top get numframes]  
set frame0 [atomselect top "protein and backbone and noh" frame 0]  
# rmsd calculation loop  
for { set i 1 } { $i $\leq$ $nf } { incr i } {  
set sel [atomselect top "protein and backbone and noh" frame $i]
$sel move [measure fit $sel $frame0]
puts $outfile "[measure rmsd $sel $frame0]"
 
}  
close $outfile  

8
The script does the following:

You can use the script for the system to test for equilibration.

9
Open the TkCon window of VMD by clicking Extensions $\rightarrow$ tkcon in the VMD Main window. In the TkCon window, type source rmsd.tcl. This will perform all the commands in the script. The script will write a file rmsd.dat that will contain the value of the RMSD of the protein backbone against time.

Outside of VMD, you can use some plotting program to see this data. Examples of these are gnuplot, xmgrace, Microsoft Excel, Mathematica.

10
Use xmgrace to plot the file rmsd.dat. In the Unix Terminal window, type xmgrace rmsd.dat. The curve does not reveal very much information because of short runtime and infrequent writing of the dcd file. Figure 8 shows a more typical RMSD plot for an equilibrated system along with the plot you have generated. Can you see the first RMSD curve flattening? This means the system is equilibrated.

Figure 8: RMSD versus simulation time for a system equilibrating with a longer run time(left) and your system (right)
\begin{figure}\begin{center}
\par\par\latex{
\includegraphics[scale=0.5]{pictures/tut_unit01_rmsd}
}
\end{center} \end{figure}

RMSD for Protein without Last 5 Residues

The last five residues are relatively unstable compared to the rest of the protein. How do you think the RMSD should differ in this case than with the entire protein?

1
You can easily modify the rmsd.tcl to plot the RMSD for the protein without the last five residues. Exit xmgrace by clicking File $\rightarrow$ Exit in the program window. Create an identical file to rmsd.tcl with a new name by typing cp rmsd.tcl rmsd_5.tcl in the Unix Terminal window.

2
Open the new file rmsd_5.tcl using nedit by typing nedit rmsd_5.tcl in the Unix Terminal window.

3
Edit the file in the following way:
Line 1: open rmsd.dat w $\rightarrow$ open rmsd_5.dat w
Line 3: ...and noh" $\rightarrow$ ...and noh and not (resid 72 to 76)"
Line 6: ...and noh" $\rightarrow$ ...and noh and not (resid 72 to 76)"

4
Save the file and exit nedit by clicking File $\rightarrow$ Save and then clicking File $\rightarrow$ Exit.

5
Type source rmsd_5.tcl in the TkCon window of VMD. This will perform all the commands in the script. The script will write a file rmsd_5.dat that will contain the value of the RMSD of the protein backbone against time without the last five residues.

6
Use xmgrace to plot the file rmsd_5.dat in the same manner as before with file rmsd.dat.

7
When you are done analyzing the plot, close xmgrace.


next up previous
Next: Analysis Up: Basics of NAMD Previous: Output: Water Sphere Log
namd@ks.uiuc.edu