计算化学公社

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

[Amber] 在使用AmberTools25进行力场设置时,使用脚本出现报错

[复制链接 Copy URL]

1

帖子

0

威望

21

eV
积分
22

Level 1 能力者

脚本如下:# tleap.in
source leaprc.protein.ff19SB

#添加铁原子定义
addAtomTypes {
   { "FE" "Fe" "sp0" }
}

# 把 hem.mol2 当“prep”加载进来
loadoff hem.lib

# 加载 GAFF2 参数
loadAmberParams hem.frcmod

# 读入你的 PDB
system = loadpdb protonatedTlnA.pdb

#删除氢
removeH system

#添加氢
addH system

#检查和添加电荷
charge system

# (可选)加水盒、离子…
source leaprc.water.tip3p
solvateBox system TIP3PBOX 10.0
addIons system Na+ 0
addIons system Cl- 0

# 输出拓扑和坐标
saveAmberParm system TlnA_ff19.prmtop TlnA_ff19.inpcrd
quit
命令和报错如下:
(AmberTools25) -bash-5.0$ tleap -f tleap.in
-I: Adding /home/XZJ/miniconda3/envs/AmberTools25/dat/leap/prep to search path.
-I: Adding /home/XZJ/miniconda3/envs/AmberTools25/dat/leap/lib to search path.
-I: Adding /home/XZJ/miniconda3/envs/AmberTools25/dat/leap/parm to search path.
-I: Adding /home/XZJ/miniconda3/envs/AmberTools25/dat/leap/cmd to search path.
-f: Source tleap.in.

Welcome to LEaP!
(no leaprc in search path)
Sourcing: ./tleap.in
----- Source: /home/XZJ/miniconda3/envs/AmberTools25/dat/leap/cmd/leaprc.protein.ff19SB
----- Source of /home/XZJ/miniconda3/envs/AmberTools25/dat/leap/cmd/leaprc.protein.ff19SB done
Log file: ./leap.log
Loading parameters: /home/XZJ/miniconda3/envs/AmberTools25/dat/leap/parm/parm19.dat
Reading title:
PARM99 + frcmod.ff99SB + frcmod.parmbsc0 + OL3 for RNA + ff19SB
Loading parameters: /home/XZJ/miniconda3/envs/AmberTools25/dat/leap/parm/frcmod.ff19SB
Reading force field modification type file (frcmod)
Reading title:
ff19SB AA-specific backbone CMAPs for protein 07/25/2019
Loading library: /home/XZJ/miniconda3/envs/AmberTools25/dat/leap/lib/amino19.lib
Loading library: /home/XZJ/miniconda3/envs/AmberTools25/dat/leap/lib/aminoct12.lib
Loading library: /home/XZJ/miniconda3/envs/AmberTools25/dat/leap/lib/aminont12.lib

/home/XZJ/miniconda3/envs/AmberTools25/bin/teLeap: Warning!
atom type FE - unknown hybridization sp0
Loading library: ./hem.lib
Loading parameters: ./hem.frcmod
Reading force field modification type file (frcmod)
Reading title:
Ferric-high-spin.frcmod- Shahrokh,K; Orendt,A; Yost, G.S; and Cheatham III, T.E. Jour Comp Chem (2011)
Loading PDB file: ./protonatedTlnA.pdb
Created a new atom named: HD1 within residue: .R<HIE 4>
Created a new atom named: HD1 within residue: .R<HIE 17>
Created a new atom named: HD1 within residue: .R<HIE 113>
Created a new atom named: HD1 within residue: .R<HIE 266>
Created a new atom named: HD1 within residue: .R<HIE 290>
Created a new atom named: HD1 within residue: .R<HIE 332>
Created a new atom named: HD1 within residue: .R<HIE 348>
Created a new atom named: HD1 within residue: .R<HIE 356>
Created a new atom named: HD1 within residue: .R<HIE 362>
+Currently only Sp3-Sp3/Sp3-Sp2/Sp2-Sp2 are supported
+---Tried to superimpose torsions for: *-NB-FE-*
+--- With Sp3 - Sp0
+--- Sp0 probably means a new atom type is involved
+--- which needs to be added via addAtomTypes
+Currently only Sp3-Sp3/Sp3-Sp2/Sp2-Sp2 are supported
+---Tried to superimpose torsions for: *-NA-FE-*
+--- With Sp3 - Sp0
+--- Sp0 probably means a new atom type is involved
+--- which needs to be added via addAtomTypes
+Currently only Sp3-Sp3/Sp3-Sp2/Sp2-Sp2 are supported
+---Tried to superimpose torsions for: *-ND-FE-*
+--- With Sp3 - Sp0
+--- Sp0 probably means a new atom type is involved
+--- which needs to be added via addAtomTypes
+Currently only Sp3-Sp3/Sp3-Sp2/Sp2-Sp2 are supported
+---Tried to superimpose torsions for: *-NC-FE-*
+--- With Sp3 - Sp0
+--- Sp0 probably means a new atom type is involved
+--- which needs to be added via addAtomTypes
  total atoms in file: 6532
  Leap added 1 missing atom according to residue templates:
       1 H / lone pairs
  The file contained 9 atoms not in residue templates

/home/XZJ/miniconda3/envs/AmberTools25/bin/teLeap: Fatal Error!
Error from the parser:
       syntax error.
       Check for typos, misspellings, etc.
       Try help on the command name and desc on the command arguments.

Exiting LEaP: Errors = 1; Warnings = 1; Notes = 0.

检查过很多地方了,比如大小写等等,但是始终报错,用的hem.lib和hem.frcmod下载地址:PCPD/HEM.frcmod at main · JiangLab2020/PCPD · GitHub,求助各位大佬

5

帖子

0

威望

247

eV
积分
252

Level 3 能力者

2#
发表于 Post on 2025-7-4 10:56:12 | 只看该作者 Only view this author
  1. > removeH

  2. Error: Error from the parser:
  3.        syntax error.
  4.        Check for typos, misspellings, etc.
  5.        Try help on the command name and desc on the command arguments.

  6. > help
  7. Help is available on the following subjects:

  8. _cmd_options_       _types_             add                 addAtomTypes
  9. addH                addIons             addIons2            addIonsRand
  10. addPath             addPdbAtomMap       addPdbResMap        alias
  11. alignAxes           bond                bondByDistance      center
  12. charge              check               clearPdbAtomMap     clearPdbResMap
  13. clearVariables      combine             copy                createAtom
  14. createParmset       createResidue       createUnit          crossLink
  15. debugOff            debugOn             debugStatus         deleteBond
  16. deleteOffLibEntry   deleteRestraint     desc                deSelect
  17. displayPdbAtomMap   displayPdbResMap    edit                flip
  18. groupSelectedAtoms  help                impose              list
  19. listOff             loadAmberParams     loadAmberPrep       loadMol2
  20. loadMol3            loadOff             loadPdb             loadPdbUsingSeq
  21. logFile             matchVariables      measureGeom         quit
  22. relax               remove              restrainAngle       restrainBond
  23. restrainTorsion     saveAmberParm       saveAmberParmNetcdf saveAmberParmPert
  24. saveAmberParmPol    saveAmberParmPolPertsaveAmberPrep       saveMol2
  25. saveMol3            saveOff             saveOffParm         savePdb
  26. scaleCharges        select              sequence            set
  27. set_default         setBox              showdefault         solvateBox
  28. solvateCap          solvateDontClip     solvateOct          solvateShell
  29. source              transform           translate           verbosity
  30. zMatrix

  31. For a list of the current aliases, type "alias".
复制代码


看你的log,明显是在loadpdb后报错的,自然应该检查下一句命令。我这里没装AmberTools25,用的AmberTools23,并没有removeH这个命令,可能是你报错的原因。

本版积分规则 Credits rule

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

GMT+8, 2025-8-12 20:11 , Processed in 0.201982 second(s), 21 queries , Gzip On.

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