Skip to content

Using VMD and NAMD for molecular dynamics simulation of protein PDB files.

Notifications You must be signed in to change notification settings

Sarah-Hesham-2022/BioPhysics-Molecular-Dynamics-Simulation

Repository files navigation

BioPhysics-Molecular-Dynamics-Simulation

Using VMD and NAMD for molecular dynamics simulation of protein PDB files.

-Steps done are listed below:

● Build Protein Structure File.

● Protein Solvation.

● Run Molecular Dynamic simulation using Parameter Files.

● DCD trajectory file analysis (Plot the RMSD vs. frame number)

-First ,let us explain how to do these steps using Visualization Molecular Dynamics (VMD) and Nanoscale Molecular Dynamics (NAMD) bioinformatics tools.

image

https://www.ks.uiuc.edu/

image

image

image

https://www.rcsb.org/

image

image

image

-Now after becoming familiar with using these tools ,let us take a look at the the actual results done here after applying all these steps on the 1j4n.pdb file molecule.

-Here are links, to know more about the molecule:

https://www.rcsb.org/structure/1j4n

https://www.ebi.ac.uk/pdbe/entry/pdb/1j4n

https://www.ncbi.nlm.nih.gov/Structure/pdb/1J4N

https://pdbj.org/mine/summary/1j4n

-In order to run any MD simulation, NAMD requires at least four things:

  1. A Protein Data Bank (pdb) file which stores atomic coordinates and/or velocities for the system.

  2. Protein Structure File (psf) which stores structural information of the protein, such as various types of bonding interactions.

  3. A force field parameter file. A force field is a mathematical expression of the potential which atoms in the system experience. CHARMM, X-PLOR, AMBER, and GROMACS are four types of force fields, and NAMD is able to use all of them. The parameter file defines bond strengths, equilibrium lengths, etc.

  4. A configuration file, in which the user specifies all the options that NAMD should adopt in running a simulation. The configuration file tells NAMD how the simulation is to be run.

• Steps:

• Download the PDB file: 1j4n(.pdb) from the Protein Data Bank website.

• Open the VMD program from the start menu to start a new VMD session. Start → Programs → VMD

• Create a folder as your working space. Place the downloaded protein file 1j4n.pdb inside the folder.

• Then change the directory in the VMD shell to set your working space as the current working directory.

• cd < Folder Path>

• Any generated output files during your current VMD session will be stored in that folder.

image

-Step1:

• Generate Protein Structure File (PSF)

• Load the molecule into VMD: File → New Molecule → Browse (choose 1j4n.pdb protein file) → Load.

image

• Build Protein Structure File: Extensions → Modeling → Automatic PSF Builder

image

• From the Automatic PSF Builder Window apply the following in order:

a. Load input files

b. Guess and split chains using current selections.

c. Create chains

d. Apply patches and finish PSF/PDB (optional if PSF is generated from the third step)

image

→ Note that the X-ray structure from the Protein Data Bank does not contain the hydrogen atoms of Ubiquitin molecule.

→ Because X-ray crystallography usually cannot resolve hydrogen atom since their sizes are too small to interact with the radiation and since they contain only a single electron.

→After these steps: hydrogens have been generated as hydrogen doesn’t come naturally with the PDB file. Moreover, two files are generated: a new pdb file (.pdb) that now contain the hydrogen atoms and the corresponding protein structure file (.psf).

• Delete current molecules in VMD Main:

image

• Step2:

• Solvating the Protein

• The protein needs to be solvated, i.e., put inside water, to more closely resemble the cellular environment.

• 1. Load the auto generated PSF file to the VMD main first, then load on top of it the new PDB (with hydrogen atoms) and make sure the frames column has changed from 1 to 0

image

• 2. Create a Water Box around the molecule to simulate the cellular environment:

Extensions → Modeling → Add Solvation Box

image

image

• After these steps, a water box will be create to surround the protein and two files will be generated respectively: a modified .pdb file to include the water box and the corresponding .psf file.

• Step 3:

• Configuration File Preparation

• Add the NAMD application path to the end of PATH environment variable:

image

• 1.Load the solvated protein molecule “PSF” into the VMD main.

• 2. Load on top of the PSF file, the solvated protein molecule PDB file.

• 3. Open the VMD TK console

image

• 4. Run the following command to select all atoms of the molecule: set everyone [atomselect top all]

• 5. Run the following command to extract the minimum and maximum coordinates of the water box: measure minmax $everyone

image

image

image

-Open the NAMD graphical interface from the VMD main: Extensions → Simulation → NAMD Graphical Interface

image

•You can rename the simulation base name to another informative name or leave it as it is; let it be 1j4n_wb_md to refer to molecular dynamics

•Select suitable parameter files for the loaded molecule.

•If you don’t have any non-protein molecules (such as ions), the default parameter files will be just fine. Parameter files for different types of molecules can be found in the VMD installation folder: "C:\Program Files\University of Illinois\VMD\plugins\noarch\tcl\readcharmmpar1.3"

-To avoid any crash during the NAMD run; add all possible parameter files that may be needed for your molecule especially if you don’t have enough information about the atom types that exist in your loaded molecule.

•Select the following checkboxes from the timesteps section:  Minimization  Molecular dynamics

•Modify the temperature in which the simulation will be carried out: Edit → Ensemble →NVT stands for number, volume and temperature

image

•Set temperature to 310 KO ( equivalent to 37 CO ) Select periodic boundary conditions checkbox ( to tell the NAMD to keep the volume of the cube the same through out the simulation, which hold “v” in NVT constant).

image

•Edit the periodic boundary conditions with the dimensions and origin calculated above.

image

-Step 4:

• Run MD Simulation

• Now the configuration file is set up, and NAMD is ready to run the simulation:

• Click on the run NAMD button, and observe the status.

• Check your working director and observe the files generated, if the simulation is performing well you should see two output files in your folder:

• .dcd file: is coordinate trajectory output file. This file stores the trajectory of all atom position coordinates which you can convert into PDB files.

• .xst file: is extended system (periodic cell) trajectory output file. This file essentially record the trajectory of the cell boundaries over the run time.

image

-Step 5:

• Loading Trajectory File

• Trajectory files are typically large binary files that contain the time varying atomic coordinates for the system. Each set of coordinates corresponds to one frame in time.

• An example of a trajectory file is a DCD file.

• Trajectory files usually do not contain structural information as found in protein structure files (PSF). Therefore, we must first load the structure file, and then add the trajectory data to the same molecule, so that VMD has access to both the structure and trajectory information.

• 1. Load the solvated protein PSF file: File → New Molecule → Browse (choose 1j4n_wb.psf protein file) → Load.

• 2. Load the DCD trajectory file on top of the solvated protein PSF file: File → New Molecule → Browse (choose 1j4n_wb_md.dcd trajectory file) → Load.

image

• 3.Display Molecule using Different Representations: Graphics → Representations

image

image

image

-Step 6:

• RMSD Analysis

image

• Analyze the DCD trajectory file: Extensions → Analysis → RMSD Trajectory Tool

• The active molecule should be the Protein Structure File loaded in the main window of the VMD.

• The selection for which RMSD will be computed is all of the protein atoms, excluding hydrogen atoms (since the noh checkbox is on).

• The RMSD will be calculated for each frame (time t1 in Eq. 1) with the reference to frame 0 (time t2 in Eq. 1). Make sure the Plot checkbox is selected.

• Align Step: This will align each frame of the trajectory with respect to the reference frame (in this case, frame 0) to minimize RMSD, by applying only rigid-body translations and rotations. This step is not necessary, but is desirable in most cases, because we are interested only in RMSD that arises from the fluctuations of the structure and not from the displacements and rotations of the molecule as a whole. The result of the alignment can be seen in the OpenGL display.

• RMSD Step: The protein RMSD (in °Angstroms) vs. frame number is displayed in a plot

image

image

image

image

image

-PDB Uploading

image

-Automatics PSF Building

image

-PSF and PDB Uploading

image

-Solvate Box Creation

image

image

image

-Solvate Atoms Number 10827

image

-NAMD Status Running

image

-NAMD Visualization

image

-PSF and DCD Uploading

image

-Graphical Representation Creation Water and Protein

image

image

-Align for RMSD

image

-Files Generated

image

-Now we can also prepare the protein trajectory files:

  1. Download and install VideoMach:

http://www.gromada.com/VideoMach.html

image

image

image

image

image

image

image

image

image

image

image

image

image

image

image

image

-Results of the trajectory and video making are added ,but this time applied on 1ubq.pdb molecule and not 1j4n.pdb, in order to carry them out, you will have to prepare all needed files first by following steps in task 1.

-Here are links to know more about the 1ubq.pdb molecule:

https://www.rcsb.org/structure/1UBQ

https://www.ncbi.nlm.nih.gov/Structure/pdb/1UBQ

https://pdbj.org/mine/summary/1ubq

https://www.ebi.ac.uk/pdbe/entry/pdb/1ubq/index

image

image

-In task one we generated a water box around the protein but !?

-What about if we want to make it a sphere instead???

-Let us write a TCL/TK Script to help us through this mission.

image

-Results after uploading TCL Script on 1j4n:

-Script to immerse our protein 1j4n.pdb in a sphere of water just large enough to cover it

-This script will place 1j4n in the smallest possible water sphere

  • which completely immerses the protein.

  • The output of the tcl script will be the center and radius of the water sphere.

-Determine the center of mass of the molecule and store the coordinates

-Solvate the molecule in a water box with enough padding (15 Angestrom)

-Determine which water molecules need to be deleted and use a for loop to delete them

-First Upload Script to run after setting working directory as usual:

image

-Final Console Output

image

image

-Final Result

image

image

-PSF and PDB Uploading :

image

-The question here is what kind of center was calculated???

image

-Next:

-Solvation Applied

image

image

-Solvation Number of Atoms

image

-Number of Atoms after deletion of del_atoms

image

-New Solvated results after deletion

image

image

-Final New generated files:

image

image

-When carrying out these steps, you can face many technical issues related to the interaction between VMD, NAMD and your operating system.

-The 2 most commonly repeated ones here are :

  1. You have to add the NAMD execution file path to your environment path BEFORE applying the steps of getting configuration files preparation, to be safe just do it at as a first step in applying this project.

  2. Sometimes VMD doesn't work when you set the current directory (cd) in its cmd with a path having spaces in it.

-So to avoid any consequences of problem number 2 , don't use for example : "File Path/Folder" , instead use a path : "FilePath/Folder" .