docs - documentation files for the current tutorial
prep - scripts to prepare the structure for simulations
simul - directory to perform simulations
analysis - scripts to perform trajectory analysis
- Introduction
- System description and simulation strategy choice
- Installing software
- Obtaining force field files
- Pereparing system for simulations
This tutorial introduces students to molecular dynamics simulations method using GROMACS by the example of simulating the nucleosome core particle.
- Understand Molecular Dynamics Simulations method;
- Learn how to prepare a molecular system for MD simulations from a PDB file;
- Understand how to choose ForceField and correct stimulation conditions;
- Learn how to run MD simulations using GROMACS on a parallel computer cluster;
- Learn how to visualize and analyze MD trajectories;
- Provide a reusable set of scripts and examples that students may reuse to simulate their system of interest.
Basic knowledge of the following areas is required:
- Unix-like Operating System (e.g. Linux), recommended tutorial here;
- Terminal / Command line interface and Bash scripting, recommended tutorial here;
- Basic Physical Chemistry and Biochemistry;
- PDB structure files format, recommended tutorial here
- REQUIRED: Access to a Linux-like machine, ideally Ubuntu OS;
- REQUIRED: Gromacs v. 5.1, intallations instructions;
- REQUIRED: VMD v. 1.9.4, intallations instructions;
- OPTIONAL: Chimera v. 1.13, intallations instructions;
- OPTIONAL: Anaconda Python, intallations instructions;
- OPTIONAL: FoldX, download here
- OPTIONAL: Propka, installation instructions ...
- Bash CheatSheet [1] or [2]
- GROMACS manual
- Computer Simulation of Liquids, Allen and Tildesley, 1989
- Understanding Molecular Dynamics, Frenkel and Smith, 2002
- Molecular Driving Forces, Dill, 2003
- Intermolecular and Surface forces, Israelachvili, 1985
- Quick and easy tutorial Lysozyme in Water
Nucleosome is a basic unit of DNA packaging in eukaryotes. Nuclosome Core particle (NCP) consists of 1.67 left-handed super-helical turns of DNA wrapped around an octamer of histone proteins. NCP contains 145-147 bp of DNA. The octamer consists of 2 copies of each of the core histones H2A, H2B, H3, and H4.
Further information about various NCP structures by X-Ray (Nucleosome structural studies,, Davey, 2011)
In this tutorial we are going to use 1KX5 PDB structure. You can try to find it on RSCB PDB by yourself or download from this link. We have chosen this structure because it has the best resolution among other nucleosome structures - 1.94 A. The original article describing this structure is here.
TIP: The quality of the starting structure is essential for the whole analysis. It should be choosen very carefully. The X-ray structure resolution is the first parameter to look at. Check here to understand how X-ray resolution is related to the quality of the structure.
However, high X-ray resolution does not garantee a good structure, other metrics such as R-factor should be considered. See this paper for further details (Protein crystallography for non-cristallographers, Wlodawer A., 2008).
It is always advisable to read the orginial paper, it may provided details that are otherwise non-obvious from the PDB file alone.
In this tutorial we are going to work mostly with VMD. Consequently, it should be added to the PATH. Always check your .pdb file for entries listed under the comment MISSING, as these entries indicate either atoms or whole residues that are not present in the crystal structure. Then open your PDB structure in VMD using this command in command line Make sure you are in the exact directory where 1kx5.pdb was downloaded. Then type:
vmd 1kx5.pdb
Then you will see this:
Fig.1. VMD presentation of the molecule
The background was changed from black to white for better representation. It is not necessary for you. When you open your system in VMD the background is automaticaly black. Axes were also deleted.
For better and more understandable view open in VMD Main window:
Graphics > Representations
A new window called "Graphical Representation" will be opened. Then choose:
Drawing method > NewCartoon
You will see this:
Fig.2. NewCartoon Drawing Method
#### Coloring by occupancy and B-factor.At first, we need to understand what are occupancy and B-factor.
Macromolecule crystall consists of many individual molecules. These molecules are packed into a symmetrical unit. In some crystalls there are slight conformational differences between the molecules. Scienmtist use the occupancy to estimate the amount of each conformation that is observed in the crystal.
In the same window ("Graphical Representation"):
Coloring Method > Occupancy
Fig.3. Coloring by the Occupancy
Zero occupancy meaans that these parts of the structure was completed by computer programs and were not observed experimentally. CAUTION! You should always read the original article of the structure you use.
B-factor (often refered to as atomic displacement parameter/The Debye–Waller factor (DWF)/temperature factor) monitors the positional spread of each atom. It describes the displacement of the atomic positions from an average (mean) value. Lower resolution tends to correlate with higher B-factor. The formula for the B-factor is:
Where is the mean squared displacement. It is measured in units of Å^2.
The B-factors can be taken as indicating the relative vibrational motion of different parts of the structure. Atoms with low B-factors belong to a part of the structure that is well ordered. Atoms with large B-factors generally belong to part of the structure that is very flexible.
For coloring by B-factor choose:
Coloring Method > Beta
Fig.4. Coloring by B-factor
In this picture red is an area with low B-factor. It means that these areas are more flexible than blue ones. Consequently, atomic positions are less accurate in these zones.
Let's get back to the Fig.2 state with NewCartoon Drawing method. Now we're going to explore other molecules inside this system. We're going to start from water molecules.
We are still working with Graphical Representation window. First, you need to Create Rep. Tap on it and type "water" in Selected Atoms. Coloring method is VDW which is Van-der-Waals. You will see this:
Fig.5. Showing water molecules
The high resolution of this structure has allowed to define the location of bound water. In the articles with lower resolution this would be inpossible, but it doesn't mean that there is no bound water in it, it is just not defined.
For ions you need to create another representation.
Create Rep > Selection > Keyword: name > Value: CL MN
We have choosen these atoms because they are stated in .pdb structure. Then go back to Drawing style and choose VDW. You will see this:
Fig.6. Showing ions. Cl is red and Mn is blue.
Not only Na, K and Cl but heavy, ions like Mn or Ca, are often used for proper protein crystallization. These usually divalent ions are very difficult for dynamics because they can polarize the space around them. Such effects are difficult to describe using non-polarized force fields.
You can also choose DNA or protein the same way as described earlier. Now you know how to understand your PDB system.
So, at first we will retain the bound water. Then you need to check the ions through VMD program or by reading the .pdb file. Once you have noticed ions you need to decide leave them or delete. In the chosen structure there are only Mn and Cl. Mn is a divalent ion, consequently, it should be deleted because of the reasons showed above. Cl is not divalent, it is located in the places of high positive potential, so we are going to retain it.
Then you need to check the side chain conformation.
Basic information about side chain conformation here
Side chain conformation is not always determined correctly in the original .pdb structure. For example, the location of nitrogen or oxygen atoms in the end of asparagine and glutamine cannot usually be discern because they have similar electron densities.
The residues we need to check are asparagine, glutamine and histidine. Asn and Gln residues play important structural roles in proteins because of their side-chain amide groups. These groups can act as both hydrogen bond acceptors and donors. Such hydrogen bonds can stabilise the protein structure. In addition, these residues (also with His) are often found on the surface of proteins or in the active site of enzymes where the hydrogen bonds they form can be important in stabilising protein–protein or protein-substrate interactions.
We are going to use the FoldX program to check the side chain conformation.
FoldX is a protein design algorithm that uses an empirical force field. It can determine the energetic effect of point mutations as well as the interaction energy of protein complexes (including Protein-DNA).
We are using command RepairPDB which identifies those residues which have bad torsion angles, or VanderWaals' clashes, or total energy, and repairs them. The way it operates is the following: First it looks for all Asn, Gln and His residues and flips them by 180 degrees. This is done to prevent incorrect rotamer assignment in the structure due to the fact that the electron density of Asn and Gln carboxamide groups is almost symmetrical and the correct placement can only be discerned by calculating the interactions with the surrounding atoms. The same applies to His.
Type
foldx --command=PDBFile --pdb=1kx5.pdb
And you will get an error:
foldx: command not found
It means that the program is not in your PATH. Once you have downloaded FoldX, you need to put it in PATH. The FoldX docs were downloaded to the Soft directory and renamed to foldx. At first, type pwd which is Print Working Directory.
pwd
You will get this, copy it.
/home/username/Soft/foldx
Then
echo $PATH
export PATH=$PATH:/home/pospelova/Soft/foldx
This is how we can add the directory to your PATH. But it is right only for one time, after closing this terminal you will not call FoldX again. If you need your program to work everywhere, you may write inside the main Bash file - .bashrc. Type this:
pluma ~/.bashrc
It will open the file .bashrc. In the end of the file put this:
export PATH=$PATH:/home/pospelova/Soft/foldx
Now you have added FoldX to your path so you can call it every time you need. Now let's get back to our work. Get back to your working directory where the .pdb file is and then type:
foldx --command=PDBFile --pdb=1kx5.pdb
Notice that program prints in Bash what it found: any missed atoms and energies. After running RepairPDB you'll get two files to look at. The first one .pdb is a repaired one and the other .fxout contains energies of the repaired residues.
We have repaired our .pdb file. Now we are going to conduct protein pKa calculations. They are used to estimate the pKa values of amino acids as they exist within proteins. Install propka as it is showed here, click download to get the repository. After installation get back to your working directory and type this in terminal:
propka31 1kx5.pdb
The program needs time. After it has finished its calculation you'll get another file 1kx5.pka which contains pKa of all residues. pKa values play an important role in defining the pH-dependent characteristics of a protein.
Now let's open .pka file. You can scroll down to the "SUMMARY" and look for HIS residues. This table shows all Histidine pKas. Protonation state was done by comparing to pI and pH by hands.
Table 1. His residues and pKa
Residue | Number | Chain | pKa | Protonation state |
---|---|---|---|---|
HIS | 39 | A | 5.65 | protonated |
HIS | 113 | A | 6.19 | protonated |
HIS | 18 | B | 5.94 | protonated |
HIS | 75 | B | 5.56 | protonated |
HIS | 31 | C | 2.19 | protonated |
HIS | 82 | C | 4.02 | protonated |
HIS | 46 | D | 6.54 | protonated |
HIS | 79 | D | 5.27 | protonated |
HIS | 106 | D | 6.62 | protonated |
HIS | 39 | E | 5.70 | protonated |
HIS | 113 | E | 5.60 | protonated |
HIS | 18 | F | 6.79 | protonated |
HIS | 75 | F | 5.61 | protonated |
HIS | 31 | G | 2.75 | protonated |
HIS | 82 | G | 4.14 | protonated |
HIS | 46 | H | 6.56 | protonated |
HIS | 79 | H | 4.80 | protonated |
HIS | 106 | H | 6.68 | protonated |
Let's look at the histidine titration curve:
Now we need to compare pKa from propka and pH of our system. pH = 7 In this pH Histidine has NH3+ group and COO- group which means it is neutral. Our propka results showed that all histidines are protonated. That means that we should change protonation state before conducting molecular dynamics. How to make histidine neutral will be shown below. There are no histidine residues that have pKa > pH.
You have downloaded Chimera. Here is the installation guide: We need to make this file executable. In the directory with downloaded file type this:
chmod +x chimera-1.13-linux_x86_64.bin
./chimera-1.13-linux_x86_64.bin
When asked for installation location delete what is written and type this:
~/chimera/
yes
1
That's all.
Now we need to choose what to do with flexible histone tails. There are a lot of crystal structures where these parts of nucleosomes are not resolved experimentally. And in 1kx5 structure their postions are not very certain which was shown by the occupancy and B-factor earlier
There are a few possible strategies to deal with histone tails. Retain the original conformation of 1kx5 structure, truncate the flexible tails or reassign their conformation to some extended state.
In this tutorial we're going to truncate them as it is shown in this article. Let's look at the Fig.2 of the article:
Fig.7. Maximum observed RMSD deviations of individual amino acids (Cα atoms are blue; side-chain atoms are green) during simulations with respect to their positions in the initial X-ray structure (Shaytan et al.)
In this article the histone tails were truncated at the sites specified in Fig.7 by triangles. In this tutorial we're going to truncate histone tails at the different places by Chimera. Open your 1kx5 in Chimera. For example, in Unix command line type:
chimera 1kx5.pdb
You can also open the program using your desktop icon. Once you've opened Chimera with your structure you need to understand which chains you should change. The easiest way to do this is to go back to your structure in RCSB PDB. 'Annotation' contains the domain classification and chain names.
That is what we've got: Table 2. Chain letter and meaning
Chains | Polymer |
---|---|
I | DNA |
J | DNA |
A,E | H3 |
B,F | H4 |
C,G | H2A.1 |
D,H | H2B.2 |
Now with the new knowledge let's get back to work. You have opened Chimera, the next step is to cut flexible histone tails. In the top bar open:
Favourites > Sequence
You will see chains in the new window. We're going to start with histone H3, consequently, choose chain A. We will make minimalistic system without any tails. In the histone H3 we will delete residue 1 through 43 (the last should be also included). Highlight chosen residues using your mouse. Then look at the main Chimera window where the whole system is. The chosen place should be also highlighted in green.
Then still in the main window top bar:
Actions > Atoms/Bonds > delete
We will also delete the last three residues - ERA, numbers 134-136.
Fig.8 Histone H3 tail
That's all. Now you need to do the same to all other histones. Don't forget that they're paired! In H4 histone we will cut up to 24th residue. As it is shown in fig.8, 24th residue (D) is a part of secondary structure, but we delete it to save the equilibrium of charges. In H2A - 15th and from 119th to the end. In H2B - up to 29th
CAUTION! The numbering of residues in .pdb is different from real protein. You should always pay attention on the numbering. For instance in this case the recombinant version of H2B histone was used that lacks the first three aminoacids, consequently, the numbering differs.
Fig.9 Final structure
Don't forget to save your structure.
Box size
Simulation box size choice is very important for further analysis. Choosing the box size is a very delicate question when it comes to charged systems. In this tutorial we will use the same box size as was used in Ref. Shaytan et al. Usually a series of experiments with different box size should be conducted to understand which one is better for the system under study. We will use a rectangular box with a minimum distance between the solute and the box boundaries of 20 Å.
Ionic conditions
There are two questions we need to address about ionic conditions: which ions should be used and in which concentration. Usually sodium and chloride ions are used for molecular dynamics, because they are well parametrized. Our system is located in the nucleus, there are more potassium than sodium ions in nucleus, but modeling of potassim ions is complicated because force field parametrs are considered less reliable and less parametrized. Althogh we need to keep in mind that there are specific differences between potassium and sodium. (гарик папоян) In this tutorial we will add sodium ions for neutralization and then we will additionally add sodium and chloride for neutralisation at a concentration of 150 mM with respect to the volume of water.
There are two delicate moments - how to add and how to arrange them. The first one was discussed above. At first, we will add ions for neutralization. Secondary, we will add ions to get desired concentration. The other question is how to arrange ions inside your system. We will use GROMACS commands to do this. The program puts ions to the location of electrostatic maximum or minimum.
ссылка на сайт бионамберс - concentration of ions in cells если добавлять не объему, а по воде расчитать, сколько молекул воды, затем сколько ионов
The main problem in molecular dynamics is the right choice of a Force Field. Force Field refers to the functional form and parameter sets used to calculate the potential energy of a system of atoms.
There are two main Force Fields for protein and DNA molecular dynamics - AMBER and CHARMM. Historically, AMBER is used more for DNA simulations. Non the less charmm was also recently improved and is also used for DNA dynamics
We will use CHARMM36 force field with the following improvements from these papers:(Yoo & Aksiementiev, JPC, 2012) 2 статьи In the latest article by Yoo and Aksiementiev there are two tables: table 1 and table 2 where all corrections stated. For beeter understanding read the full article. - The original FF files should be modified to include these ionic paramters.
вернуться cu-fix non bonded fix charmm36+ latest nbfixes from yoo and aksimentiev (http://bionano.physics.illinois.edu/CUFIX) пока мы используем базовый чармм 36
GROMAX installation instructions here. At first, download latest version of GROMAX. Installation requires administration rights. This is the way of local installation:
tar xfz gromacs-5.1.4.tar.gz
cd gromacs-5.1.4
mkdir build
cd build
cmake .. -DGMX_BUILD_OWN_FFTW=ON -DCMAKE_INSTALL_PREFIX=/home/usr/dir_where_gromacx_will_be
make
make check
make install
source /usr/local/gromacs/bin/GMXRX
(In my case - source /home/pospelova/Soft/bin/GMXRC)
Everytime you will use GROMAX, you need to put the last string (with your address)
There is only one thing left before the stimulation start. We need to obtain force field files. Let's go to the MacKerell lab website, which regularly produces up-to-date CHARMM force field files in GROMACS format.
Download this file:
charmm36-jul2017.ff.tgz
Then unpack it inside the directory you're working it. Installation of the Force Field is done.
Now our system is almost ready and can be input into the first GROMACS module, pdb2gmx. The command gmx pdb2gmx reads a .pdb (or .gro) file. It searches for force fields by looking for a forcefield.itp file in subdirectories .ff of the current working directory. This command has a lot of additional functions. We're going to use -ter argument that stands for the protonation state of N- and C-termini, because we have cut the histone tails.
The purpose of pdb2gmx is to generate three files:
- The topology for the molecular system.
- A position restraint file.
- A post-processed structure file.
topol.top file which is the topology contains the information that defines molecules within the stimulation.
Execute pdb2gmx by this command:
gmx pdb2gmx -f 1kx5.pdb -o 1kx5_processed.gro -water tip3p -ter
The first question will be asked about the Force Field.
Select the Force Field:
From current directory: 1: CHARMM36 all-atom force field (July 2017) ...
As it was discussed above we will choose CHARMM36 FF. Type 1.
Then the selection of termini will be offered. First in DNA Chains choose 5TER and 3TER. Then you will have this error:
Fatal error: Atom OP1 in residue DT -72 was not found in rtp entry DT with 32 atoms while sorting atoms.
It means that the name of the atom in your .pdb is different from the same in the FF. At first you need to understand what is wrong with the atom. When you open your structure you understand that some atoms have different names. Do these commands:
sed s/OP1/O1P/g 1kx5.pdb
sed s/OP1/O1P/g 1kx5.pdb > 1kx5_edited.pdb
It looks for OP1 names in your .pdb and changes them to O1P. Then it creates the new .pdb file. Then try again the command above (with gmx2pdb). You will have a few more mistakes. This is how you can solve them.
sed s/OP2/O2P/g 1kx5_edited.pdb
sed s/OP2/O2P/g 1kx5_edited.pdb > 1kx5_edited_2.pdb
sed s/\ C7/C5M/g 1kx5_edited_2.pdb
sed s/\ C7/C5M/g 1kx5_edited_2.pdb > 1kx5_edited_3.pdb
So we have got the final version of our .pdb structure which is 1kx5_edited.pdb.
After you finish choosing termini in DNA chains, you will have to choose histone tails termini. We need non-charged termini (GLY-NH2/COOH/NH2)
Then after a few answers you will have another problem:
Fatal error: Residue 'CL' not found in residue topology database
It is almost the same error as above. Go to merged.rtp in CHARMM36 directory. Look for CL. You will find that the residue called CLA, not CL.
sed s/CL\ /CLA/g 1kx5_edited_3.pdb
sed s/CL\ /CLA/g 1kx5_edited_3.pdb > 1kx5_edited_4.pdb
Check your file through VMD program. You will see there are some weird connections between atoms. It happend because we have edited our file. Open in by the text editor and delet all the strings statrting with "CONECT". Then try again the command.
gmx pdb2gmx -f 1kx5_edited_4.pdb -o 1kx5_processed.gro -water tip3p -ter
If you did everything right you will get this:
You have successfully generated a topology from: 1kx5_edited_4.pdb. The Charmm36-jul2017 force field and the tip3p water model are used.
We have finally converted our PDB file into GROMACS native .gro file format. This command also shows you some useful info:
Now there are 30548 atoms and 4154 residues Total mass in system 228455.904 a.m.u. Total charge in system -234.000 e
Now we will put our dimer into a periodic box using the following command
gmx editconf -f 1kx5_processed.gro -o 1kx5_newbox.gro -c -d 2.0 -bt triclinic
The above command centers the protein in the box (-c), and places it at least 1.0 nm from the box edge (-d 2.0). The box type is defined as a rectangular (-bt triclinic). That is what you have got:
Read 30548 atoms Volume: 2101.66 nm^3, corresponds to roughly 945700 electrons No velocities found system size : 12.907 15.325 6.969 (nm) center : 4.539 8.970 0.651 (nm) box vectors : 10.595 18.117 10.949 (nm) box angles : 90.00 90.00 90.00 (degrees) box volume :2101.66 (nm^3) shift : 3.914 0.692 4.833 (nm) new center : 8.453 9.663 5.484 (nm) new box vectors : 16.907 19.325 10.969 (nm) new box angles : 90.00 90.00 90.00 (degrees) new box volume :3583.88 (nm^3)
Then we will add solvation.
gmx solvate -cp 1kx5_newbox.gro -cs spc216.gro -o 1kx5_solv.gro -p topol.top
-cs spc216.gro determines the water structure file The configuration of the protein (-cp) is contained in the output of the previous editconf step, and the configuration of the solvent (-cs) is part of the standard GROMACS installation.
Output configuration contains 354968 atoms in 112294 residues Volume : 3583.88 (nm^3) Density : 1011.77 (g/l) Number of SOL molecules: 111270
As the first command (pdb2gmx) told you - the system has -234 e charge. It means that you have to add ions to neutralize them and then add extra ions for 150 mM concentration. At first you need to download or create an ions.mdp file which is necessary for genion.
We will count how many ions we should add to get this concentration. N(ions) = C*N(water)/55,5(mol H2O)
We have got 111270 water molecules. This is the sum of prevous bounded water molecules and new solvate molecules.
0,15/55,5*111294=300 (it should actually be 301, but we will use 300) We need to add 300 positive ions + 234 additional positive ions and the 300 negative ions
gmx grompp -f ions.mdp -c 1kx5_solv.gro -p topol.top -o ions.tpr
gmx genion -s ions.tpr -o 1kx5_solv_ions.gro -p topol.top -pname NA -nname CL -np 534 -nn 300
When it is promted choose "SOL" (17). It will replace solvent molecules with positive ions. -pname and -nname defines names of positive and negative charges -np defines the amount of the positive charges -nn defines the amount of negative charges
Now let's open the latest edition of our system
vmd 1kx5_solv_ions.gro
In Representation/Select atoms type 'not water' instead of 'all' Then in Extensions/TK Console type 'pbc box', it will show you the periodic boundary conditions.
The system is now ready for relaxation. Before we can begin dynamics, we must ensure that the system has no steric clashes or inappropriate geometry. The structure is relaxed through a process called energy minimization (EM).
File minim.mdp contains the input parameters for energy minimization.
gmx grompp -f minim.mdp -c 1kx5_solv_ions.gro -p topol.top -o em.tpr
We are now ready to invoke mdrun to carry out the EM:
gmx mdrun -v -deffnm em
-v makes mdrun verbose, it makes mdrun write every step it makes on the screen. -deffnm - defines file names
There are two very important factors to evaluate to determine if EM was successful. The first is the potential energy (printed at the end of the EM process, even without -v). Epot should be negative, and (for a simple protein in water) on the order of 105-106, depending on the system size and number of water molecules. The second important feature is the maximum force, Fmax, the target for which was set in minim.mdp - "emtol = 1000.0" - indicating a target Fmax of no greater than 1000 kJ mol-1 nm-1.
Now let's do some analysis. The em.edr file contains all of the energy terms that GROMACS collects during EM. We are going to analyze them via GROMACS energy module.
gmx energy -f em.edr -o potential.xvg
At the prompt, select Potential; and zero (0) terminates input. You can use GNUplot or Xmgrace for visualization, the resulting plot should look something like this.
Energy minimization proved that everything is alright (geometry and solvent orientation). To begin real dynamics, we must equilibrate the solvent and ions around the protein. The first phase is conducted under an NVT ensemble (constant Number of particles, Volume, and Temperature). This ensemble is also referred to as "isothermal-isochoric" or "canonical." The timeframe for such a procedure is dependent upon the contents of the system, but in NVT, the temperature of the system should reach a plateau at the desired value.
In this step we will fix water and let move only water and ions. Use nvt.mdp. file nvt.mdp contains the input parameters for NVT equilibration.
gmx grompp -f nvt.mdp -c em.gro -p topol.top -o nvt.tpr
gmx mdrun -deffnm nvt
Then make a plot by this command and analyze it:
gmx energy -f nvt.edr -o temperature.xvg
Select Temperature at the prompt and zero exit. The resulting plot should look something like this.
The previous step, NVT equilibration, stabilized the temperature of the system. Equilibration of pressure is conducted under an NPT ensemble, wherein the Number of particles, Pressure, and Temperature are all constant. It means that in this step only water and ions move
We will call grompp and mdrun just as we did for NVT equilibration. Note that we are now including the -t flag to include the checkpoint file from the NVT equilibration; this file contains all the necessary state variables to continue our simulation.
gmx grompp -f npt.mdp -c nvt.gro -t nvt.cpt -p topol.top -o npt.tpr
gmx mdrun -deffnm npt
For analyzing:
gmx energy -f npt.edr -o pressure.xvg
Type "15 0" at the prompt to select the temperature of the system and exit. The resulting plot should look something like this.
We will also look at the density
gmx energy -f npt.edr -o density.xvg
Type "22 0" at the prompt to select the pressure and the density of the system and exit.
Then we will unfix protein. Create npt1.mdp from npt.mdp commenting the second string in it.
gmx grompp -f npt1.mdp -c nvt.gro -t nvt.cpt -p topol.top -o npt1.tpr
gmx mdrun -deffnm npt1
Now we are ready to run MD
gmx grompp -f md.mdp -c npt1.gro -t npt1.cpt -p topol.top -o md100ns.tpr
gmx mdrun -deffnm md100ns