Introduction To Gromacs
Introduction To Gromacs
29/11/2017
1/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 1 / 80
1 Molecular mechanics (MD)
Basics
Force field
Workflow
2 What is gromacs and when to use it?
Description
Technical characteristics
3 How to use gromacs?
Gromacs general usage
Instructions Tutorial
Task01: Water box simulation
Task02: GFP protein in water simulation
Task03: Membrane simulation using CHARMMGUI
Task04: Simulation of a transmembrane protein using Martini
4 Appendixes
Commands cheatsheet
2/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 2 / 80
Molecular mechanics (MD) Basics
3/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 3 / 80
Molecular mechanics (MD) Force field
d 2 ri
mi = Fi = −∇ri U(r1 , r2 , . . . , rN ) (1)
dt 2
4/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 4 / 80
Molecular mechanics (MD) Force field
5/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 5 / 80
Molecular mechanics (MD) Force field
Bond Improper
Angle Coulomb
6/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 6 / 80
Molecular mechanics (MD) Workflow
Coordinates Analysis
7/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 7 / 80
What is gromacs and when to use it? Description
What is GROMACS?
In short
GROMACS is a versatile package to perform molecular dynamics, i.e.
simulate the Newtonian equations of motion for systems with hundreds to
millions of particles.
Area of usage
It is primarily designed for biochemical molecules like proteins, lipids and
nucleic acids that have a lot of complicated bonded interactions, but since
GROMACS is extremely fast at calculating the nonbonded interactions
(that usually dominate simulations) many groups are also using it for
research on non-biological systems, e.g. polymers.
8/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 8 / 80
What is gromacs and when to use it? Technical characteristics
9/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 9 / 80
What is gromacs and when to use it? Technical characteristics
10/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 10 / 80
What is gromacs and when to use it? Technical characteristics
All Atom
ff Protein Membrane Sugars DNA/RNA
charmm charmm36 charmm36 charmm36 charmm36
amber amber99sb-ildn slipids glycam06h amber99sb-ildn
oplsaa oplsaa Macrog (very basic) no
United Atom
ff Protein Membrane Sugars DNA/RNA
gromos yes yes (very basic) yes
Coarse Grained
ff Protein Membrane Sugars DNA/RNA
martini yes yes (very basic) yes
11/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 11 / 80
How to use gromacs? Gromacs general usage
gmx prefix
Starting from gromacs 5 you should invoke all the tools using the gmx
prefix. Starting from version 5.1 this is in fact the only way to access
gromacs tools
Executing gmx
gmx [-[no]h] [-[no]quiet] [-[no]version] [-[no]copyright] [-nice <int>]
[-[no]backup]
12/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 12 / 80
How to use gromacs? Gromacs general usage
Available commands:
anadock Cluster structures from Autodock runs
anaeig Analyze eigenvectors/normal modes
analyze Analyze data sets
angle Calculate distributions and correlations for angles and dihedrals
bar Calculate free energy difference estimates through Bennett’s acceptance ratio
bundle Analyze bundles of axes, e.g., helices
check Check and compare files
... ...
13/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 13 / 80
How to use gromacs? Gromacs general usage
A free advise
Do not reinvent the wheel. Check before starting creating your own tools.
The chances that gromacs has what you need is really high. And likely it
will do it better and faster that you can!! This will save a lot of your
valuable time.
14/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 14 / 80
How to use gromacs? Gromacs general usage
DESCRIPTION
gmx solvate can do one of 2 things:
1) Generate a box of solvent. Specify -cs and -box. Or specify -cs and -cp with a structure file with a box, but without atoms.
2) Solvate a solute configuration, e.g. a protein, in a bath of solvent
...
OPTIONS
Options to specify input files:
-cp [<.gro/.g96/...>] (protein.gro) (Opt.) Structure file: gro g96 pdb brk ent esp tpr
-cs [<.gro/.g96/...>] (spc216.gro) (Lib.) Structure file: gro g96 pdb brk ent esp tpr
Options to specify input/output files:
...
15/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 15 / 80
How to use gromacs? Instructions Tutorial
General Instructions
Only use the folder provided to perform the tasks included in this
course.
cd $HOME/task-material/
Do not change the file names used in the tasks.
In real life this is not necessary but it is to minimize wasting time
during this course.
All exercises provide solution files prefixed with ”EX”.
Never modify these files. They are provided as reference only.
Before using them copy them:
cp EX-$FILENAME $FILENAME
If you are stuck ask for help immediately to the professors.
16/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 16 / 80
How to use gromacs? Task01: Water box simulation
17/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 17 / 80
How to use gromacs? Task01: Water box simulation
Minimization protocol:
Water box
1 cp EX-01-min.mdp 01-min.mdp -3
Minimization
Potential
2 cp EX-00-water.top 00-water.top -3.5
(kJ/mol)* 1E5
-4.5
3 gmx grompp -c 00-water.gro
-5
-f 01-min.mdp -p 00-water.top
-5.5
-o 01-water-min.tpr
-6
0 50 100 150 200
-po 01-mdout-min.mdp Time (ps)
19/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 19 / 80
How to use gromacs? Task01: Water box simulation
Equilibration protocol:
1 cp EX-01-water-min.gro 01-water-min.gro
Water box
Equilibration
2 cp EX-02-eq.mdp 02-eq.mdp (notice that 400
we use berendsen)
300
3 gmx grompp -c 01-water-min.gro
-f 02-eq.mdp -p 00-water.top
T (K)
200
-o 02-water-eq.tpr -po 02-mdout-eq.mdp
4 gmx mdrun -v -deffnm 02-water-eq 100
Temperature
5 echo ”Temperature” |gmx energy
-f 02-water-eq.edr 0
0 20 40 60 80 100
Time (ps)
-o 02-temperature-eq.xvg
6 xmgrace -free -nxy 02-temperature-eq.xvg
20/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 20 / 80
How to use gromacs? Task01: Water box simulation
(kg/m^3)
-f 03-md.mdp -p 00-water.top 970
-o 03-water-md.tpr -po 03-mdout-md.mdp
4 gmx mdrun -v -deffnm 03-water-md 965
21/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 21 / 80
How to use gromacs? Task01: Water box simulation
Visualization protocol:
1 Fix broken molecules across periodic boundary
conditions
gmx trjconv -f 03-water-md.xtc -s 03-water-md.tpr
-o 03-water-md-mol.xtc -pbc mol
2 Visualize water box in VMD
vmd 02-water-eq.gro 03-water-md-mol.xtc
Visualize the hydrogen bond formation destruction
during the simulation.
NOTE: Select ”Update Selection Every Frame”
22/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 22 / 80
How to use gromacs? Task01: Water box simulation
5 vmd 04-NACL-solution-genion.gro
Create separate representations for water (lines)
and ions (VDW)
23/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 23 / 80
How to use gromacs? Task01: Water box simulation
Simulation protocol (use the mdp files from the water simulation):
1 Minimization:
1 gmx grompp -f 01-min.mdp -c 04-NACL-solution-genion.gro -p 04-ions.top
-o 05-ions-min.tpr -po 05-ions-min-mdout.mdp
2 gmx mdrun -v -deffnm 05-ions-min
2 Equilibration:
1 gmx grompp -f 02-eq.mdp -c 05-ions-min.gro -p 04-ions.top -o 06-ions-eq.tpr
-po 06-ions-eq-mdout.mdp
2 gmx mdrun -v -deffnm 06-ions-eq
3 Production simulation:
1 gmx grompp -f 03-md.mdp -c 06-ions-eq.gro -p 04-ions.top -o 07-ions-md.tpr
-po 07-ions-md-mdout.mdp
2 gmx mdrun -v -deffnm 07-ions-md
24/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 24 / 80
How to use gromacs? Task01: Water box simulation
25/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 25 / 80
How to use gromacs? Task01: Water box simulation
Analyzing simulation
26/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 26 / 80
How to use gromacs? Task02: GFP protein in water simulation
27/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 27 / 80
How to use gromacs? Task02: GFP protein in water simulation
Where to start?
Analysis
Coordinates
28/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 28 / 80
How to use gromacs? Task02: GFP protein in water simulation
29/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 29 / 80
How to use gromacs? Task02: GFP protein in water simulation
Observations:
1 There are two different chains
2 There are few crystallized waters
3 Read REMARKS 350 465 470!!
30/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 30 / 80
How to use gromacs? Task02: GFP protein in water simulation
Analysis
Coordinates
31/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 31 / 80
How to use gromacs? Task02: GFP protein in water simulation
All atom
charmm36, amber99sb-ildn , oplsaa, charmm27
United atom
GROMOS96 54a7
Coarse-grained
Martini
The force field to be selected for this task
Not good but seldom used.
Never good – You MUST know what are you doing.
32/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 32 / 80
How to use gromacs? Task02: GFP protein in water simulation
Coordinates Analysis
33/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 33 / 80
How to use gromacs? Task02: GFP protein in water simulation
gmx pdb2gmx
Tool provided by gromacs to convert coordinate files to topology and force
field compliant coordinate files. Mainly used for proteins.
gmx pdb2gmx reads a .pdb (or .gro) file, reads some database files, adds
hydrogens to the molecules and generates coordinates in GROMACS
format and a topology in GROMACS format. These files can subsequently
be processed to generate a run input file.
Normal execution
gmx pdb2gmx -f protein.pdb
34/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 34 / 80
How to use gromacs? Task02: GFP protein in water simulation
Try to generate the topology for 00-1GFL.pdb using pdb2gmx using amber99sb-ildn
using tip3p water model
WARNING: Residue 65 named SER of a molecule in the input topology anyhow, use the option -missing
file was mapped to an entry in the topology database, but the OPTION:
atom O used in an interaction of type improper in that entry is -[no]missing (no) Continue when atoms are missing,
not found in the input file. Perhaps your atom and/or residue dangerous
35/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 35 / 80
How to use gromacs? Task02: GFP protein in water simulation
Clean 00-1GFL.pdb
1 Remove all HETATM lines
grep -v ”HETATM” 00-1GFL.pdb > 01-1GFL-noHETATM.pdb
Be aware that some nonstandards residues might be input as
HETATM, e.g. Selenomethionine.
2 Remove chain B from pdb (for convenience of the exercise)
grep -v ” B ” 01-1GFL-noHETATM.pdb >02-1GFL-A-raw.pdb
Notice that B is surrounded by one space in each side
This is a very crude method. It is often better to open the pdb with a
raw text editor (e.g. vi, emacs, nano) and do these tasks manually.
36/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 36 / 80
How to use gromacs? Task02: GFP protein in water simulation
pdb4amber
Tool shiped with ambertools which prepare pdbs for further
processing in tleap which add missing heavy atoms.
Among its capabilities it can remove waters, create Disulfide bonds,
estimate the protonation state bases on the hydrogen atoms in the
histidines . . .
37/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 37 / 80
How to use gromacs? Task02: GFP protein in water simulation
This method will not correct for missing residues. For this you can
use Modeller which can also be used to correct for missing atoms.
38/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 38 / 80
How to use gromacs? Task02: GFP protein in water simulation
39/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 39 / 80
How to use gromacs? Task02: GFP protein in water simulation
40/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 40 / 80
How to use gromacs? Task02: GFP protein in water simulation
41/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 41 / 80
How to use gromacs? Task02: GFP protein in water simulation
[ moleculetype ]
; Name nrexcl
1GFL 3
[ atoms ]
; nr type resnr residue atom cgnr charge mass typeB chargeB massB
; residue 1 ALA rtp NALA q +1.0
1 N3 1 ALA N 1 0.1414 14.01 ; qtot 0.1414
2 H 1 ALA H1 2 0.1997 1.008 ; qtot 0.3411
3 H 1 ALA H2 3 0.1997 1.008 ; qtot 0.5408
...
3576 3593 3591 3592 4
3591 3595 3593 3594 4
3595 3606 3605 3607 4
; Include Position restraint file
#ifdef POSRES
#include ”EX-04-1GFL-posres.itp”
#endif
42/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 42 / 80
How to use gromacs? Task02: GFP protein in water simulation
Coordinates Analysis
43/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 43 / 80
How to use gromacs? Task02: GFP protein in water simulation
44/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 44 / 80
How to use gromacs? Task02: GFP protein in water simulation
46/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 46 / 80
How to use gromacs? Task02: GFP protein in water simulation
Coordinates Analysis
47/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 47 / 80
How to use gromacs? Task02: GFP protein in water simulation
48/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 48 / 80
How to use gromacs? Task02: GFP protein in water simulation
50/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 50 / 80
How to use gromacs? Task02: GFP protein in water simulation
Coordinates Analysis
51/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 51 / 80
How to use gromacs? Task02: GFP protein in water simulation
52/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 52 / 80
How to use gromacs? Task02: GFP protein in water simulation
Solution
gmx genion -s 08-1GFL-genion.tpr -p 08-1GFL-solvated.top -o 08-1GFL-genion.gro
-neutral -conc 0.15
Select ”SOL”
Note: It does not really provide 150 mMol!!
53/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 53 / 80
How to use gromacs? Task02: GFP protein in water simulation
54/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 54 / 80
How to use gromacs? Task02: GFP protein in water simulation
Coordinates Analysis
55/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 55 / 80
How to use gromacs? Task02: GFP protein in water simulation
56/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 56 / 80
How to use gromacs? Task02: GFP protein in water simulation
(nm^3)
-po 10-1GFL-solvated-eq-pr-mdout.mdp 212
-f 10-1GFL-solvated-eq-pr.edr 209
0 200 400 600 800 1000
Time (ps)
-o 10-1GFL-solvated-eq-pr-Volume.xvg
4 xmgrace 10-1GFL-solvated-eq-pr-Volume.xvg
57/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 57 / 80
How to use gromacs? Task02: GFP protein in water simulation
Analysis
Equilibration free GFP in water
1 echo ”Total-Energy” |gmx energy
1 cp 10-eq-pr.mdp 11-eq.mdp
-f 11-1GFL-solvated-eq.edr
2 Comment ”define = -DPOSRES”
-o 11-1GFL-solvated-eq-Total-Energy.xvg
line in 11-eq.mdp with ”;”
2 xmgrace 11-1GFL-solvated-eq-Total-Energy.xvg
3 gmx grompp -f 11-eq.mdp
-2.15
-c 10-1GFL-solvate-eq-pr.gro
-2.155
-p 08-1GFL-solvated.top Total Energy
-2.16
-o 11-1GFL-solvated-eq.tpr
-po 11-1GFL-solvated-eq- (1e+5 kJ/mol) -2.165
mdout.mdp -2.17
58/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 58 / 80
How to use gromacs? Task02: GFP protein in water simulation
Coordinates Analysis
59/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 59 / 80
How to use gromacs? Task02: GFP protein in water simulation
60/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 60 / 80
How to use gromacs? Task02: GFP protein in water simulation
Coordinates Analysis
61/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 61 / 80
How to use gromacs? Task02: GFP protein in water simulation
62/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 62 / 80
How to use gromacs? Task02: GFP protein in water simulation
Coordinates Analysis
63/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 63 / 80
How to use gromacs? Task02: GFP protein in water simulation
64/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 64 / 80
How to use gromacs? Task02: GFP protein in water simulation
Coordinates Analysis
65/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 65 / 80
How to use gromacs? Task02: GFP protein in water simulation
Analyzing simulation
Radius of gyration:
1 echo ”Protein” | gmx gyrate -f 12-1GFL-solvated-md-whole.xtc
-s 12-1GFL-solvated-md.tpr -o 12-1GFL-solvated-md-ana-gyrate.xvg
66/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 66 / 80
How to use gromacs? Task02: GFP protein in water simulation
67/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 67 / 80
How to use gromacs? Task02: GFP protein in water simulation
do dssp Assign secondary structure and calculate solvent accessible surface area
dos Analyze density of states and properties based on that
dyecoupl Extract dye dynamics from trajectories
dyndom Interpolate and extrapolate structure rotations
enemat Extract an energy matrix from an energy file
freevolume Calculate free volume
gangle Calculate angles
gyrate Calculate the radius of gyration
h2order Compute the orientation of water molecules
hbond Compute and analyze hydrogen bonds
helix Calculate basic properties of alpha helices
helixorient Calculate local pitch/bending/rotation/orientation inside helices
hydorder Compute tetrahedrality parameters around a given atom
mdmat Calculate residue contact maps
mindist Calculate the minimum distance between two groups
mk angndx Generate index files for ’gmx angle’
morph Interpolate linearly between conformations
msd Calculates mean square displacements
nmeig Diagonalize the Hessian for normal mode analysis
68/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 68 / 80
How to use gromacs? Task02: GFP protein in water simulation
69/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 69 / 80
How to use gromacs? Task02: GFP protein in water simulation
70/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 70 / 80
How to use gromacs? Task02: GFP protein in water simulation
Coordinates Analysis
71/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 71 / 80
How to use gromacs? Task03: Membrane simulation using CHARMMGUI
72/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 72 / 80
How to use gromacs? Task03: Membrane simulation using CHARMMGUI
http://www.charmm-gui.org/
CHARMMGUI is a free web resource that will help you to generate input
files for most common biologically relevant systems. It produces files
compatible with Gromacs v5 and uses the modern charmm36 force field
73/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 73 / 80
How to use gromacs? Task03: Membrane simulation using CHARMMGUI
74/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 74 / 80
How to use gromacs? Task03: Membrane simulation using CHARMMGUI
75/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 75 / 80
How to use gromacs? Task03: Membrane simulation using CHARMMGUI
76/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 76 / 80
How to use gromacs? Task03: Membrane simulation using CHARMMGUI
Concatenating trajectories
1 gmx trjcat -f step7*.trr -o total.xtc (You can remove the *.trr files that occupy several GB)
77/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 77 / 80
How to use gromacs? Task04: Simulation of a transmembrane protein using Martini
78/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 78 / 80
How to use gromacs? Task04: Simulation of a transmembrane protein using Martini
79/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 79 / 80
Appendixes Commands cheatsheet
Gromacs
gmx command -h
Prepare simulation files:
gmx pdb2gmx
(protein itp file form pdb)
gmx grompp xmgrace: (Plotting xvg files)
(tpr file from top, gro and mdp) xmgrace -free -nxy XVGFILE
Run simulation:
gmx mdrun -v -deffnm TPRFILE vmd: (Vissualizing trajectories
(run MD from tpr file) vmd GROFILE XTCFILE WHOLE
Post-processing trajectory:
gmx energy -f EDRFILE
(Output trajectories observables)
gmx trjconv
(process trajectory for analysis)
80/80
Hector Martinez-Seara, Lukasz Cwiklik Intro Gromacs 5 29/11/2017 80 / 80