-
Notifications
You must be signed in to change notification settings - Fork 30
/
Gromacs Codes
262 lines (191 loc) · 7.79 KB
/
Gromacs Codes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
#LINUX and GROMACS UNIVERSAL TUTORIAL
----INSTALL UBUNTU-----
UPGRADE AND UPDATE LIBRARIES OF UBUNTU BY FOLLOWING COMMANDS
Commands:
sudo apt update
sudo apt upgrade
sudo apt install gcc
sudo apt install cmake
sudo apt install build-essential
sudo apt install libfftw3-dev OR
sudo apt-get install -y libfftw3-dev
ONCE THE ABOVE COMMANDS ARE INTERED AND LINUX SYSTEM IS UPDATED, PROCEED TO INSTALL GROMACS
---------------GROMACS DIRTY INSTALLATION COMMAND--------------
sudo apt install gromacs
sudo apt remove gromacs
--------------------Install Pymol------------------------
sudo apt-get install -y pymol
--------------Install google chrome----------------------
get https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt install ./google-chrome-stable_current_amd64.deb
-----------------Install Chimera------------------------
Download the set-up file from "https://www.cgl.ucsf.edu/chimera/download.html"
Move the file to desired folder.
In tht folder open terminal
Command:
ls (to check the name of setup file)
chmod +x CHIMERA-INSTALLER.bin
./CHIMERA-INSTALLER.bin
-----------------Autodoc-Vinna------------------------
Go to download page "http://vina.scripps.edu/download.html"
Move the file to desired folder.
In that folder open terminal
Command:
ls (to check the name of setup file)
tar -xzvf autodock_vina_1_1_2_linux_x86.tgz
-------------------Install-GRACE----------------------
sudo apt-get install grace
------------------------VMD---------------------------
https://www.ks.uiuc.edu/Development/Download/download.cgi?PackageName=VMD
1. Save the .tar.gz file in working folder
2. open the extracted folder and run command './configure' by opening the termianl
3. Open the folder src in terminal and run the command 'sudo make install'
4. type 'vmd' in termial and program should run.
###################MANNUAL-GROMACS-COMPILATION###########################
# Download Gromacs from : #
# https://manual.gromacs.org/current/download.html# #
# #
###################################CUDA TOOLKIT:#########################
# https://developer.nvidia.com/cuda-downloads #
# #Follow the steps and copy the commands #
# #
#########################Gromacs Compilation Process#####################
# tar xfz gromacs-2020.2.tar.gz #
# cd gromacs-2020.2 #
# mkdir build #
# cd build #
# cmake .. -DGMX_GPU=CUDA -DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda #
# make #
# make check #
# sudo make install #
# source /usr/local/gromacs/bin/GMXRC #
#########################################################################
#########STEPS FOR MD AS FOLLOWS#########
---PREPARE LIGAND AND RECEPTOR IN CHIMERA----
1. open the best pose ligand with the receptor Protein.pdb file
2. Delete the chain of protein, in the residual ligand, add hydrogens and save it as LIG.mol2 as 'LIG.mol2'
#Open the LIG.mol2 file and in the second line
#Correction to be made in LIG.mol2
#Open LIG.mol2 by using gedit command or simplyopening file in any text editor.
2.1. "@<TRIPOS>MOLECULE" make sure this is the first line in file
delete the header and empty space if you have to
2.2. "@<TRIPOS>MOLECULE” there will be name after this line maybe xxx.pdb or ****** or anything else
change it to LIG
2.3. bond orders "@<TRIPOS>BOND" will be arranged differently in each file
arrange them in specific order to avoid errors use
perl sort_mol2_bonds.pl LIG.mol2 LIG.mol2 script
3. Go to SwissParam "http://www.swissparam.ch/" and upload the 'Lig.mol2 file'
4. Download the .zip folder
5. Again open the best pose ligand with the receptor .pdb file, delete ligand, Perform DockPrep of protein as save it as .pdb file as 'REC.pdb'
6. Make a working Folder for Gromacs, copy contents of the downloaded zip file into this folder, copy the DockPrep 'rec.pdb' in to working folder
7. Copy all the .mdp files into this working folder
8. Open the terminal in this working folder and proceed with Gromacs.
---------GROMACS UBUNTU TUTORIAL-----------
source /usr/local/gromacs/bin/GMXRC (If Gromacs is manually compiled / not for dirty install)
gmx pdb2gmx -f REC.pdb -ignh
8 (CHARMM27)
1 (TIP3P)
gmx editconf -f LIG.pdb -o LIG.gro
gedit conf.gro LIG.gro
*(Copy content from 3rd line of lig.gro to the conf.gro file up to the 2nd last line)
*(Check the column number from where the lig.gro data ends (x) in conf.gro and replace the value in 2nd line by x-3)
*(Open file in chimera to check ligand and receptor)
-----EDIT THE FOLLOWING in topol.top -----
gedit topol.top
(add
; Include ligand topology
#include "LIG.itp"
below- Include forcefield parameters
#include "amberGS.ff/forcefield.itp")
AT THE BOTTOM OF THE SAME FILE PERFORM FOLLOWING CHANGES
(add LIG 1
align exactly below-
Protein_chain_E 1)
-----EDIT THE FOLLOWING in lig.itp -----
gedit lig.itp
[ moleculetype ]
; Name nrexcl
lig_gmx2 3
TO
[ moleculetype ]
; Name nrexcl
LIG 3
(in certain cases this will already be LIG 3 so for such case no change is needed)
----------
gmx editconf -f conf.gro -d 1.0 -bt triclinic -o box.gro
gmx solvate -cp box.gro -cs spc216.gro -p topol.top -o box_sol.gro
gmx grompp -f ions.mdp -c box_sol.gro -p topol.top -o ION.tpr
(OR)
gmx grompp -f ions.mdp -c box_sol.gro -maxwarn 2 -p topol.top -o ION.tpr
gmx genion -s ION.tpr -p topol.top -conc 0.1 -neutral -o box_sol_ion.gro
15
gmx grompp -f EM.mdp -c box_sol_ion.gro -p topol.top -o EM.tpr (OR)
gmx grompp -f EM.mdp -c box_sol_ion.gro -maxwarn 2 -p topol.top -o EM.tpr
gmx mdrun -v -deffnm EM
gedit nvt.mdp (This file is already modified)
Now make index files
gmx make_ndx -f LIG.gro -o index_LIG.ndx
> 0 & ! a H*
> q
gmx genrestr -f LIG.gro -n index_LIG.ndx -o posre_LIG.itp -fc 1000 1000 1000
> select group "3"
Now, open topol.top file
at the end of the document
after
"; Include Position restraint file
#ifdef POSRES
#include "posre.itp"
#endif
"Here"
add this
; Ligand position restraints
#ifdef POSRES
#include "posre_LIG.itp"
#endif
Again, Make other Index file for System
gmx make_ndx -f EM.gro -o index.ndx
> 1 | 13
> q
-----[NVT]-----
gedit NVT.mdp (This file is already modified)
gmx grompp -f NVT.mdp -c EM.gro -r EM.gro -p topol.top -n index.ndx -maxwarn 2 -o NVT.tpr
gmx mdrun -deffnm NVT
-----[NPT]-----
gedit NPT.mdp (This file is already modified)
gmx grompp -f NPT.mdp -c NVT.gro -r NVT.gro -p topol.top -n index.ndx -maxwarn 2 -o NPT.tpr
gmx mdrun -deffnm NPT
-----[FINAL MD RUN/PRODUCTION]-----
gedit NPT.mdp (Change MD RUN TIME as per your need)
gmx grompp -f MD.mdp -c NPT.gro -t NPT.cpt -p topol.top -n index.ndx -maxwarn 2 -o MD.tpr
gmx mdrun -deffnm MD
----[Recentering and Rewrapping Coordinates]----
gmx trjconv -s MD.tpr -f MD.xtc -o MD_center.xtc -center -pbc mol -ur compact
#Choose "Protein" for centering and "System" for output.
#To extract the first frame (t = 0 ns) of the trajectory, use trjconv -dump with the recentered trajectory:
gmx trjconv -s MD.tpr -f MD_center.xtc -o start.pdb -dump 0
------RMSD Calculations-----
gmx rms -s MD.tpr -f MD_center.xtc -o rmsd.xvg
gmx rms -s MD.tpr -f MD_center.xtc -o rmsd.xvg -tu ns
4
13
#(Select appropritate 2 options one by one and then open the output files in Grace) Select Backbone and then LIG
xmgrace rmsd.xvg
------RMSF Calculations-----
gmx rmsf -s MD.tpr -f MD_center.xtc -o rmsf.xvg
4
(Select appropritate Backbone open the output files in Grace)
xmgrace output.xvg
-----------h-bonds-------------------
gmx hbond -s MD.tpr -f MD_center.xtc -num hb.xvg
gmx hbond -s MD.tpr -f MD_center.xtc -num hb.xvg -tu ns
1
13
xmgrace hb.xvg
--------------Gyration Radius------------------
gmx gyrate -s MD.tpr -f MD_center.xtc -o gyrate1.xvg
#Choose the group of your choice
xmgrace gyrate1.xvg
-------------ENERGY Calculations---------------
gmx energy -f MD.edr -o energy1.xvg
#Choose the option of your choice
xmgrace -nxy energy1.xvg