计算化学公社

 找回密码 Forget password
 注册 Register
Views: 256|回复 Reply: 0
打印 Print 上一主题 Last thread 下一主题 Next thread

[GROMACS] 关于gmx_MMPBSA不兼容amber19SB_OL21_OL3_lipid17.ff的解决方法

[复制链接 Copy URL]

69

帖子

0

威望

945

eV
积分
1014

Level 4 (黑子)

本帖最后由 AxiEJohn 于 2025-12-20 18:58 编辑

本人利用amber19SB_OL21_OL3_lipid17.ff和OPC水模型进行模拟后欲gmx_MMPBSA进行自由能分析却出现报错
  1. (ana) ubuntu@ubuntu-01:~/下载/MDSRC$ mpirun -np 1 gmx_MMPBSA -O -i mmpbsa.in -cs md.tpr -ct md.xtc -ci index.ndx -cg 1 13 -cp topol.top -o FINAL_RESULTS_MMPBSA.dat -eo FINAL_RESULTS_MMPBSA.csv
  2. [INFO   ] Starting gmx_MMPBSA 1.6.4
  3. [INFO   ] Command-line
  4.   gmx_MMPBSA -O -i mmpbsa.in -cs md.tpr -ct md.xtc -ci index.ndx -cg 1 13 -cp topol.top -o FINAL_RESULTS_MMPBSA.dat -eo FINAL_RESULTS_MMPBSA.csv

  5. [INFO   ] Checking mmpbsa.in input file...
  6. [INFO   ] Checking mmpbsa.in input file...Done.

  7. [INFO   ] Checking external programs...
  8. [INFO   ] cpptraj found! Using /home/ubuntu/PyMOL_3.1.1_Linux_x86_64/PyMOL_3.1.1_Linux_x86_64/pymol/envs/ana/bin/cpptraj
  9. [INFO   ] tleap found! Using /home/ubuntu/PyMOL_3.1.1_Linux_x86_64/PyMOL_3.1.1_Linux_x86_64/pymol/envs/ana/bin/tleap
  10. [INFO   ] parmchk2 found! Using /home/ubuntu/PyMOL_3.1.1_Linux_x86_64/PyMOL_3.1.1_Linux_x86_64/pymol/envs/ana/bin/parmchk2
  11. [INFO   ] sander found! Using /home/ubuntu/PyMOL_3.1.1_Linux_x86_64/PyMOL_3.1.1_Linux_x86_64/pymol/envs/ana/bin/sander
  12. [INFO   ] Using GROMACS version > 5.x.x!
  13. [INFO   ] gmx found! Using /home/ubuntu/下载/gromacs-2024.6/build/bin/gmx
  14. [INFO   ] Checking external programs...Done.

  15. [INFO   ] Building AMBER topologies from GROMACS files...
  16. [INFO   ] Get PDB files from GROMACS structures files...
  17. [INFO   ] Making gmx_MMPBSA index for complex...
  18. [INFO   ] Normal Complex: Saving group Protein_MOL (1_13) in _GMXMMPBSA_COM_index.ndx file as _GMXMMPBSA_COM.pdb
  19. [INFO   ] No receptor structure file was defined. Using ST approach...
  20. [INFO   ] Using receptor structure from complex to generate AMBER topology
  21. [INFO   ] Normal Receptor: Saving group Protein (1) in _GMXMMPBSA_COM_index.ndx file as _GMXMMPBSA_REC.pdb
  22. [INFO   ] No ligand structure file was defined. Using ST approach...
  23. [INFO   ] Using ligand structure from complex to generate AMBER topology
  24. [INFO   ] Normal Ligand: Saving group MOL (13) in _GMXMMPBSA_COM_index.ndx file as _GMXMMPBSA_LIG.pdb
  25. [INFO   ] Checking the structures consistency...
  26. [INFO   ]
  27. [INFO   ] Using topology conversion. Setting radiopt = 0...
  28. [INFO   ] Building Normal Complex Amber topology...
  29.   File "/home/ubuntu/PyMOL_3.1.1_Linux_x86_64/PyMOL_3.1.1_Linux_x86_64/pymol/envs/ana/bin/gmx_MMPBSA", line 7, in <module>
  30.     sys.exit(gmxmmpbsa())
  31.              ^^^^^^^^^^^
  32.   File "/home/ubuntu/PyMOL_3.1.1_Linux_x86_64/PyMOL_3.1.1_Linux_x86_64/pymol/envs/ana/lib/python3.11/site-packages/GMXMMPBSA/app.py", line 98, in gmxmmpbsa
  33.     app.make_prmtops()
  34.   File "/home/ubuntu/PyMOL_3.1.1_Linux_x86_64/PyMOL_3.1.1_Linux_x86_64/pymol/envs/ana/lib/python3.11/site-packages/GMXMMPBSA/main.py", line 681, in make_prmtops
  35.     self.FILES.mutant_receptor_prmtop, self.FILES.mutant_ligand_prmtop) = maketop.buildTopology()
  36.                                                                           ^^^^^^^^^^^^^^^^^^^^^^^
  37.   File "/home/ubuntu/PyMOL_3.1.1_Linux_x86_64/PyMOL_3.1.1_Linux_x86_64/pymol/envs/ana/lib/python3.11/site-packages/GMXMMPBSA/make_top.py", line 125, in buildTopology
  38.     tops = self.gmxtop2prmtop()
  39.            ^^^^^^^^^^^^^^^^^^^^
  40.   File "/home/ubuntu/PyMOL_3.1.1_Linux_x86_64/PyMOL_3.1.1_Linux_x86_64/pymol/envs/ana/lib/python3.11/site-packages/GMXMMPBSA/make_top.py", line 566, in gmxtop2prmtop
  41.     com_top = self.cleantop(self.FILES.complex_top, self.indexes['COM']['COM'])
  42.               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  43.   File "/home/ubuntu/PyMOL_3.1.1_Linux_x86_64/PyMOL_3.1.1_Linux_x86_64/pymol/envs/ana/lib/python3.11/site-packages/GMXMMPBSA/make_top.py", line 853, in cleantop
  44.     rtemp_top = parmed.gromacs.GromacsTopologyFile(temp_top.name)
  45.                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  46.   File "/home/ubuntu/PyMOL_3.1.1_Linux_x86_64/PyMOL_3.1.1_Linux_x86_64/pymol/envs/ana/lib/python3.11/site-packages/parmed/gromacs/gromacstop.py", line 346, in __init__
  47.     self.read(fname, defines, parametrize)
  48.   File "/home/ubuntu/PyMOL_3.1.1_Linux_x86_64/PyMOL_3.1.1_Linux_x86_64/pymol/envs/ana/lib/python3.11/site-packages/parmed/gromacs/gromacstop.py", line 407, in read
  49.     bond, bond_type = self._parse_bonds(line, bond_types, molecule.atoms)
  50.                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  51.   File "/home/ubuntu/PyMOL_3.1.1_Linux_x86_64/PyMOL_3.1.1_Linux_x86_64/pymol/envs/ana/lib/python3.11/site-packages/parmed/gromacs/gromacstop.py", line 600, in _parse_bonds
  52.     funct = int(words[2])
  53.                 ~~~~~^^^
  54. IndexError: list index out of range
  55. Exiting. All files have been retained.
复制代码

捣鼓了一番找到一个解决方法。

笔者根据论坛中先前的讨论Gromacs额外水模型使用疑问6楼社长的课件,修改了从论坛中获取的适用于Gromacs2025之前版本的Amber19SB力场及其配套相关力场力场中的
opc.itp
和ffnonbonded.itp
之后便可正常进行MMPBSA分析了。在此感谢社长面对基础问题仍躬身指导和喵老师无私奉献劳动成果提供的力场。

顺带一提,由于该力场在笔者模拟时出现低浓度结晶现象,故而笔者将钠离子和氯离子的参数使用KBFF力场中的对应参数以作替代。



如各位老师发现有问题,恳请指教。




改正错误有两个途径,一是别人发现,听取别人的批评;二是自我发现,进行自我批评。

本版积分规则 Credits rule

手机版 Mobile version|北京科音自然科学研究中心 Beijing Kein Research Center for Natural Sciences|京公网安备 11010502035419号|计算化学公社 — 北京科音旗下高水平计算化学交流论坛 ( 京ICP备14038949号-1 )|网站地图

GMT+8, 2026-1-25 05:38 , Processed in 0.164129 second(s), 22 queries , Gzip On.

快速回复 返回顶部 返回列表 Return to list