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.

VMD includes many analysis tools. One of these, the NAMD Plot plugin, may be used to plot output from NAMD log files. This VMD plugin uses the program namdplot, which gets the relevant data from the log files for values of energies, temperature, etc. over time. VMD then uses an internal plotting program to plot the data for you.

\fbox{
\begin{minipage}{.2\textwidth}
\includegraphics[width=2.3 cm, height=2....
...ant data and then use the package {\tt xmgrace} for plotting.}
\end{minipage} }

1
Open VMD by clicking Start $\rightarrow$ Programs $\rightarrow$ VMD.

2
Launch the NAMD Plot plugin by clicking Extensions $\rightarrow$ Analysis $\rightarrow$ NAMD Plot in the VMD Main window.

3
In the NAMD Plot window, select File $\rightarrow$ Select NAMD Log File, select the file ubq_ws_eq.log and click Open. Be sure you are in the 1-2-sphere directory.

4
All the thermodynamic variables from the NAMD log file are available for plotting as shown in the VMD NAMD Plot window. TS stands for time step, BOND for bond energy, and so forth. Click the box marked TEMP and then select File $\rightarrow$ Plot Selected Data. This will get all the temperature data from the log file and plot it over time.

5
Try using NAMD Plot for TOTAL (total energy). You should see the variable 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!

6
When you are finished examining the plots, close the Multiplot window.

\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:

7
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. Find ubq_ws.psf in the common directory, and double click on it. Then click Load.

8
Click the Browse button in the Molecule File Browser window. Click on the directory 1-2-sphere, and choose ubq_ws_eq.dcd by double clicking on it. Then click Load. You have loaded the trajectory of your equilibration.

9
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]  
set sel [atomselect top "protein and backbone and noh"]  
# rmsd calculation loop  
for { set i 1 } { $i <= $nf } { incr i } {  
$sel frame $i
$sel move [measure fit $sel $frame0]
puts $outfile "[measure rmsd $sel $frame0]"
 
}  
close $outfile
 

10
The script does the following:

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

11
Open the TkCon window of VMD by clicking Extensions $\rightarrow$ Tk Console 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 a plotting program to see this data. Examples of these are gnuplot, xmgrace, Microsoft Excel, Mathematica, and scilab.

We will use Microsoft Excel to plot the values in the file rmsd.dat.

12
Open Excel by clicking Start $\rightarrow$ Programs and finding your version of Excel.

13
In Excel, click File $\rightarrow$ Open$\ldots$, navigate to the directory 1-2-sphere, and choose the file rmsd.dat. Make sure the dropdown menu Files of type is set to All Files.

14
If the Text Import Wizard appears, choose Delimited for your file type and click Finish. The RMSD values will appear in Column A, Rows 1-9.

15
We will specify the time in ps explicitly so that Excel plots values from 0-8 ps, not 1-9 ps. In cells B1-B9, write the values 0-8, one value for each cell.

16
Make a plot of the data by clicking Insert $\rightarrow$ Chart$\ldots$, choosing XY (Scatter) as your Chart Type, selecting the lower-right Chart sub-type, and clicking Next.

17
Click the Series tab and click the red button next to the X Values field. Select cells B1-B9 and click the red button to return to the form. Do the same for the Y Values field, selecting cells A1-A9. Click Next.

18
In Step 3, and enter the following text:

Chart Title: Ubiquitin RMSD  
Value (X) Axis: Time (ps)  
Value (Y) Axis: RMSD (A)
 

Click Next and then Finish.

19
Double-click the y-axis so that the Format Axis window appears. Click the Scale tab, set the Minimum to a suitable value to allow you to see your data clearly, and click Finish. Make any other stylistic changes to the chart you wish.

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_rmsdwin}
}
\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. Create an identical file to rmsd.tcl with a new name by typing copy rmsd.tcl rmsd_5.tcl in the Terminal window.

2
Open the new file rmsd_5.tcl using WordPad by clicking Start $\rightarrow$ Programs $\rightarrow$ Accessories $\rightarrow$ WordPad. Note that when you try to open the file, the dropdown menu Files of type should be set to All Files.

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 4: ...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 Excel 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 Excel.

8
Delete the current displayed molecule in VMD using the VMD Main window by clicking on ubq_ws.psf in the window, and selecting Molecule $\rightarrow$ Delete Molecule.


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