Thanks!
I was able to get it to run and the results seemed reasonable.
Based on this thread (
link), I decided that I don't need to include the membrane since the binding site is >15A from the membranes which saved a lot of memory/computation.
For others reference, here is how I rebuilt the system without the lipids/solvents:
# Variables for index numbers
ligand_group=22 # Assuming 22 is the index for the ligand group, adjust if necessary
protein_group=1 # Assuming 1 is the index for the protein group
#Remove periodic boundary conditions. Fit protein (1), write whole system (0)
echo -e "1\n0" | gmx trjconv -s step7_1.tpr -f "$input_xtc" -o step7_1_pbc.xtc -n -fit rot+trans
#Make a new index of only the protein ligand
echo -e "$protein_group | $ligand_group\nq" | gmx make_ndx -f step7_1.tpr -o complex.ndx
# Generate new tpr file for protein-ligand complex. 24= protein+ligand
echo -e "24" | gmx convert-tpr -s step7_1.tpr -o complex.tpr -n complex.ndx
# Generate new PDB file of protein-ligand complex
echo -e "24" | gmx trjconv -s step7_1.tpr -f step7_1.gro -o complex.pdb -n complex.ndx
# Modify the new PDB to add chain information for the ligand
sed -i 's/UNL /UNL A/g' complex.pdb
# Generate a clean index file for the complex
echo -e "1 | 13\nq" | gmx make_ndx -f complex.tpr -o complex_clean.ndx
# Create a new trajectory file for the complex
echo -e "24" | gmx trjconv -s step7_1.tpr -f step7_1_pbc.xtc -o complex.xtc -n complex.ndx
# Run MMPBSA calculations
mpirun -np 10 gmx_MMPBSA -O -i
mmpbsa.in -cs complex.tpr -ci complex_clean.ndx -ct complex.xtc -cg 1 13 -cp topol_complex.top -o FINAL_RESULTS_MMPBSA.dat -cr complex.pdb -nogui
A couple of notes:
1) For reasons I don't understand, the reference pdb had to have both the ligand and the protein. As a result, I had to assign a chain to the ligand using the sed command above
2) I manually edited the CHARMM-GUI topol.top file to omit everything but the ligand and protein and saved it as topol_complex.top (see attached).
3) I used the defaults specified by gmx_MMPBSA --create_input pb
Thanks for the great software!
Blessings,
C