error while running mmpbsa "TypeError: string indices must be integers"

34 views
Skip to first unread message

Tawsif Al Arian

unread,
Feb 22, 2024, 3:57:02 PMFeb 22
to gmx_MMPBSA
gmx_MMPBSA -O -i mmpbsa.in -cs MD.tpr -ct traj_comp.xtc -ci index.ndx -cg 3 4 -cp topol.top -o FINAL_RESULTS_MMPBSA.dat -eo FINAL_RESULTS_MMPBSA.csv

Output:
hwloc/linux: Ignoring PCI device with non-16bit domain.
Pass --enable-32bits-pci-domain to configure to support such devices
(warning: it would break the library ABI, don't enable unless really needed).
[INFO   ] Starting gmx_MMPBSA v1.6.1
[INFO   ] Command-line
  gmx_MMPBSA -O -i mmpbsa.in -cs MD.tpr -ct traj_comp.xtc -ci index.ndx -cg 3 4 -cp topol.top -o FINAL_RESULTS_MMPBSA.dat -eo FINAL_RESULTS_MMPBSA.csv

tets
[INFO   ] Checking mmpbsa.in input file...
[INFO   ] Checking mmpbsa.in input file...Done.

[INFO   ] Checking external programs...
[INFO   ] cpptraj found! Using /home/arian/miniconda3/envs/gmxMMPBSA/bin/cpptraj
[INFO   ] tleap found! Using /home/arian/miniconda3/envs/gmxMMPBSA/bin/tleap
[INFO   ] parmchk2 found! Using /home/arian/miniconda3/envs/gmxMMPBSA/bin/parmchk2
[INFO   ] sander found! Using /home/arian/miniconda3/envs/gmxMMPBSA/bin/sander
[INFO   ] mmpbsa_py_nabnmode found! Using /home/arian/miniconda3/envs/gmxMMPBSA/bin/mmpbsa_py_nabnmode
[INFO   ] gbnsr6 found! Using /home/arian/miniconda3/envs/gmxMMPBSA/bin/gbnsr6
[INFO   ] Using GROMACS version > 5.x.x!
[INFO   ] gmx found! Using /usr/local/gromacs/bin/gmx
[INFO   ] Checking external programs...Done.

[INFO   ] Building AMBER topologies from GROMACS files...
[INFO   ] Get PDB files from GROMACS structures files...
[INFO   ] Making gmx_MMPBSA index for complex...
[INFO   ] Normal Complex: Saving group C-alpha_Backbone (3_4) in _GMXMMPBSA_COM_index.ndx file as _GMXMMPBSA_COM.pdb
[INFO   ] No receptor structure file was defined. Using ST approach...
[INFO   ] Using receptor structure from complex to generate AMBER topology
[INFO   ] Normal Receptor: Saving group C-alpha (3) in _GMXMMPBSA_COM_index.ndx file as _GMXMMPBSA_REC.pdb
[INFO   ] No ligand structure file was defined. Using ST approach...
[INFO   ] Using ligand structure from complex to generate AMBER topology
[INFO   ] Normal Ligand: Saving group Backbone (4) in _GMXMMPBSA_COM_index.ndx file as _GMXMMPBSA_LIG.pdb
  File "/home/arian/miniconda3/envs/gmxMMPBSA/bin/gmx_MMPBSA", line 8, in <module>
    sys.exit(gmxmmpbsa())
  File "/home/arian/miniconda3/envs/gmxMMPBSA/lib/python3.9/site-packages/GMXMMPBSA/app.py", line 98, in gmxmmpbsa
    app.make_prmtops()
  File "/home/arian/miniconda3/envs/gmxMMPBSA/lib/python3.9/site-packages/GMXMMPBSA/main.py", line 687, in make_prmtops
    self.FILES.mutant_receptor_prmtop, self.FILES.mutant_ligand_prmtop) = maketop.buildTopology()
  File "/home/arian/miniconda3/envs/gmxMMPBSA/lib/python3.9/site-packages/GMXMMPBSA/make_top.py", line 123, in buildTopology
    self.gmx2pdb()
  File "/home/arian/miniconda3/envs/gmxMMPBSA/lib/python3.9/site-packages/GMXMMPBSA/make_top.py", line 492, in gmx2pdb
    self.resi, self.resl, self.orderl = res2map(self.indexes, self.complex_str)
  File "/home/arian/miniconda3/envs/gmxMMPBSA/lib/python3.9/site-packages/GMXMMPBSA/utils.py", line 601, in res2map
    for e in value['num']:
TypeError: string indices must be integers
Exiting. All files have been retained.
topol.top
mmpbsa.in
MD.tpr
gmx_MMPBSA.log
index.ndx
index_LIG.ndx

gmx_MMPBSA

unread,
Feb 22, 2024, 4:15:57 PMFeb 22
to gmx_MMPBSA
seems you are not selecting the proper groups, it should be 1 and 13

Tawsif Al Arian

unread,
Feb 22, 2024, 4:26:12 PMFeb 22
to gmx_MMPBSA

gmx_MMPBSA does not support water/ions molecules in any structure, but we found 1 molecules in the complex.

Check the gmx_MMPBSA.log file to report the problem.

Exiting. All files have been retained.

Tawsif Al Arian

unread,
Feb 22, 2024, 4:26:53 PMFeb 22
to gmx_MMPBSA
after making the proper group i am now facing this problem

Mario E. Valdes-Tresanco

unread,
Feb 22, 2024, 4:27:54 PMFeb 22
to Tawsif Al Arian, gmx_MMPBSA
Please attach the LIG.itp file

--
You received this message because you are subscribed to the Google Groups "gmx_MMPBSA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gmx_mmpbsa+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gmx_mmpbsa/c680fec1-22a3-40ec-a2a8-74473400c41dn%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tawsif Al Arian

unread,
Feb 22, 2024, 4:28:53 PMFeb 22
to gmx_MMPBSA
index.png
this is my index

Tawsif Al Arian

unread,
Feb 22, 2024, 4:29:53 PMFeb 22
to gmx_MMPBSA
LIG.itp

Tawsif Al Arian

unread,
Feb 22, 2024, 4:32:29 PMFeb 22
to gmx_MMPBSA
Screenshot from 2024-02-23 03-31-39.png
this occurs if i enter 1 and 13 as input before the -cg
On Friday, February 23, 2024 at 3:15:57 AM UTC+6 gmx_MMPBSA wrote:

Mario E. Valdes-Tresanco

unread,
Feb 22, 2024, 4:34:30 PMFeb 22
to Tawsif Al Arian, gmx_MMPBSA

--
You received this message because you are subscribed to the Google Groups "gmx_MMPBSA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gmx_mmpbsa+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages