|
|
本帖最后由 AxiEJohn 于 2025-12-20 18:58 编辑
本人利用amber19SB_OL21_OL3_lipid17.ff和OPC水模型进行模拟后欲gmx_MMPBSA进行自由能分析却出现报错- (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
- [INFO ] Starting gmx_MMPBSA 1.6.4
- [INFO ] Command-line
- 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
- [INFO ] Checking mmpbsa.in input file...
- [INFO ] Checking mmpbsa.in input file...Done.
- [INFO ] Checking external programs...
- [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
- [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
- [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
- [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
- [INFO ] Using GROMACS version > 5.x.x!
- [INFO ] gmx found! Using /home/ubuntu/下载/gromacs-2024.6/build/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 Protein_MOL (1_13) 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 Protein (1) 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 MOL (13) in _GMXMMPBSA_COM_index.ndx file as _GMXMMPBSA_LIG.pdb
- [INFO ] Checking the structures consistency...
- [INFO ]
- [INFO ] Using topology conversion. Setting radiopt = 0...
- [INFO ] Building Normal Complex Amber topology...
- 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>
- sys.exit(gmxmmpbsa())
- ^^^^^^^^^^^
- 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
- app.make_prmtops()
- 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
- self.FILES.mutant_receptor_prmtop, self.FILES.mutant_ligand_prmtop) = maketop.buildTopology()
- ^^^^^^^^^^^^^^^^^^^^^^^
- 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
- tops = self.gmxtop2prmtop()
- ^^^^^^^^^^^^^^^^^^^^
- 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
- com_top = self.cleantop(self.FILES.complex_top, self.indexes['COM']['COM'])
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 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
- rtemp_top = parmed.gromacs.GromacsTopologyFile(temp_top.name)
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 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__
- self.read(fname, defines, parametrize)
- 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
- bond, bond_type = self._parse_bonds(line, bond_types, molecule.atoms)
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 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
- funct = int(words[2])
- ~~~~~^^^
- IndexError: list index out of range
- Exiting. All files have been retained.
复制代码
捣鼓了一番找到一个解决方法。
笔者根据论坛中先前的讨论Gromacs额外水模型使用疑问6楼社长的课件,修改了从论坛中获取的适用于Gromacs2025之前版本的Amber19SB力场及其配套相关力场力场中的
opc.itp
和ffnonbonded.itp
之后便可正常进行MMPBSA分析了。在此感谢社长面对基础问题仍躬身指导和喵老师无私奉献劳动成果提供的力场。
顺带一提,由于该力场在笔者模拟时出现低浓度结晶现象,故而笔者将钠离子和氯离子的参数使用KBFF力场中的对应参数以作替代。
如各位老师发现有问题,恳请指教。
|
|