GROMACS version: 2018.8
I am doing membrane simulation, where I am doing umbrella sampling by pulling my substrate through the transporter and generating bins and doing umbrella sampling.
I am trying to add positional restraint on Phosphate atoms of lipid during the pulling part, for which I am using “gmx select” command to select phosphates of lipid whichare farther than 0.5nm from protein, and using the output index file to feed in “gmx genrestr” to generate .ipt file for the positional restraints.
I am getting this error:
ERROR 1 [file lipid_05.itp, line 5]:
Atom index (3687) in position_restraints out of bounds (1-134).
This probably means that you have inserted topology section
“position_restraints”
in a part belonging to a different molecule than you intended to.
In that case move the “position_restraints” section to the right molecule.
My topol.top file:
;;
;; Generated by CHARMM-GUI FF-Converter
;;
;; Correspondance:
;; jul316@lehigh.edu or wonpil@lehigh.edu
;;
;; The main GROMACS topology file
;;
; Include forcefield parameters
#include “toppar/forcefield.itp”
#include “toppar/SOD.itp”
#include “toppar/CLA.itp”
#include “toppar/TIP3.itp”
#include “toppar/CARA.itp”
#include “toppar/PROA.itp”
#include “toppar/POPC.itp”
[ system ]
; Name
Title
[ molecules ]
; Compound #mols
PROA 1
CARA 1
POPC 161
SOD 32
CLA 43
TIP3 12246
My POPC.itp file: (last few lines)
.
.
.
125 128 131 132 9
125 128 131 133 9
125 128 131 134 9
129 128 131 132 9
129 128 131 133 9
129 128 131 134 9
130 128 131 132 9
130 128 131 133 9
130 128 131 134 9
[ dihedrals ]
; ai aj ak al funct q0 cq
31 30 33 32 2
40 39 42 41 2
#ifdef POSRES
[ position_restraints ]
20 1 0.0 0.0 POSRES_FC_LIPID
#endif
#ifdef DIHRES
[ dihedral_restraints ]
25 36 28 30 1 -120.0 2.5 DIHRES_FC
60 63 65 67 1 0.0 0.0 DIHRES_FC
#endif
; Include restraints on lipids which are farther than 0.5nm from protein
#ifdef PORSE_PHOSPHATE
#include “lipid_05.itp”
#endif
here I am defining new restrain file i have generated using “gmx genrestr”
my lipid_05.itp file: (first few lines)
; position restraints for phosphate_notwithin0.5_protein_f0_t0.000 of Title
[ position_restraints ]
; i funct fcx fcy fcz
3687 1 0 0 2000
4759 1 0 0 2000
4893 1 0 0 2000
5027 1 0 0 2000
5563 1 0 0 2000
5697 1 0 0 2000
5831 1 0 0 2000
5965 1 0 0 2000
6099 1 0 0 2000
6233 1 0 0 2000
6501 1 0 0 2000
6769 1 0 0 2000
6903 1 0 0 2000
7037 1 0 0 2000
7171 1 0 0 2000
7305 1 0 0 2000
7439 1 0 0 2000
7573 1 0 0 2000
7707 1 0 0 2000
7841 1 0 0 2000
7975 1 0 0 2000
.
.
.
pulling.mdp file: (first few lines, where i am defining restrains)
title = Umbrella pulling simulation
define = -DPORSE_PULL -DPORSE_PHOSPHATE -DPORSE_CA
; Run parameters
integrator = md
dt = 0.002
tinit = 0
nsteps = 4000000 ; 8000 ps
nstcomm = 10
.
.
.
When i am doing the same thing for Protein C-alpha restrain it is working fine, so why not for lipids?
how I can add lipid restrains for selective lipids only?
Please suggest me a correct way of doing this