GROMACS version: 2025.2
GROMACS modification: No
I got membrane from charmm-gui and equilibrated it for 5 ns with 4 steps of NVT and 2 steps of NPT. No matter what I do the waters above membrane always shrink. So I decided to remove waters from the equilibrated membrane, added some peptides and resolvated the system.
For peptide,
gmx pdb2gmx -f peptide.pdb -o peptide.gro -p peptide.top -i peptide.itp
Select charmm36 and TIP3P , same as the membrane system in Charmm-GUI.
Then, I ran
gmx edifconf -f membrane.gro -o file.gro -c -box x y z (last line of membrane.gro file)
gmx make_ndx -f file.gro -n index.ndx ;Selected the entire system
gmx -trjconv -f file.gro -o new.gro -pbc mol -n index.ndx ; (selected the system) To keep the system at bottom as I expand the box only above the membrane.
Then,
gmx make_ndx -f new.gro -n index.ndx ; Selected only the membrane systems
; Only keeps the membrane in the box, removes everything else)
gmx editconf -f new.gro -o only_membrane.gro -n index.ndx
I deleted the ions and water from my topol.top file
: Resolvate
gmx solvate -cp only_membrane.gro -cs spc216.gro -o solvated.gro
topol.top changed as usual.
; Adding peptides
gmx insert-molecules -f out.gro -ci peptide.gro -o pept_mem.gro -nmol 25 -replace -rot z -ip positions.dat
Only 11 molecules were inserted.
Things get complicated here. So I add the peptide numbers to topol.top like this:
;;
;; Generated by CHARMM-GUI FF-Converter
;;
;; Correspondance:
;; jul316@lehigh.edu or wonpil@lehigh.edu
;;
;; The main GROMACS topology file
;;
; Include forcefield parameters
#include “toppar2/forcefield.itp”
#include “toppar/POPG.itp”
#include “toppar/TIP3P.itp”
#include “peptide.top”
[ system ]
; Name
Title in water
**[ molecules ]
; Compound #mols
POPG 460
DCLE 2277
SOL 53900
peptide 11
**
After that I try to minimize the system with :
gmx grompp -f mdout.mdp -c pept_mem.gro -p topol.top -o minim.tpr
But I keep getting the error:
Fatal error:
Syntax error - File forcefield.itp, line 11
Last line read:
‘[ defaults ]’
Invalid order for directive defaults