在7月17-24日期间,本论坛仅限等级≥level 4的成员发新的主题贴,带来的不便请谅解!(此期间请勿给管理员Sobereva发私信问学术问题)

计算化学公社

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

[Amber] 求助ambpdb生成PDB文件出错

[复制链接 Copy URL]

13

帖子

0

威望

125

eV
积分
138

Level 2 能力者

老师们好,我正在用MCPB.PY生成金属蛋白的力场参数,在用H++生成蛋白的拓扑和坐标文件后,其是显示在网页上,我将其复制到我自己创建的文件中去,然后运行ambpdb -p 0.15_80_10_pH6.5_cxm3.top -c 0.15_80_10_pH6.5_cxm3.crd > cxm3_H.pdb,出现如下报错,请问下是什么原因啊

QQ截图20240103205329.png (76.61 KB, 下载次数 Times of downloads: 100)

QQ截图20240103205329.png

0.15_80_10_pH6.5_cxm3.crd.rar

48.34 KB, 下载次数 Times of downloads: 0

0.15_80_10_pH6.5_cxm3.top.rar

204.11 KB, 下载次数 Times of downloads: 0

13

帖子

0

威望

130

eV
积分
143

Level 2 能力者

2#
发表于 Post on 2025-4-9 22:24:52 | 只看该作者 Only view this author
解决了吗?我也遇到了

1

帖子

0

威望

11

eV
积分
12

Level 1 能力者

3#
发表于 Post on yesterday 00:05 | 只看该作者 Only view this author
本帖最后由 Prisca 于 2026-7-22 11:26 编辑

这个报错好像是因为H++现在生成的top文件里包含CMAP标签,而ambpdb(包括cpptraj)格式解析比较严格。
ParmEd的解析兼容度似乎更高一些,
在官方文档里有写可以传入拓扑文件prmtop“The primary file in Amber defining the system topology and the parameters defining the force field for that system is called the prmtop file, whose format is detailed on http://ambermd.org/formats.html. There are several variants of this extensible file format, and these parsers rigorously implement the format specification.”以及坐标文件“The main class that deals with this is the Rst7 class. This class will automatically detect the file format of any inpcrd/restart file, and whether velocities and/or unit cell information is present. There are 2 ways you can instantiate a Rst7.”,成功绕过了这个报错:
echo -e "outpdb Protein_H.pdb\nquit" | parmed 0.15_80_10_pH6.5_cxm3.top -c 0.15_80_10_pH6.5_cxm3.crd,
如果有不对之处,还请各位前辈指正
补充:
应该也可以直接删除含有CMAP_INDEX这一行,再运行ambpdb命令
ParmEd:ATOM      1  N   ILE     1     134.616  81.244 122.818  0.00  0.00           N  
ambpdb:ATOM      1  N   ILE     1     134.616  81.244 122.818  1.00  0.00           N  
差别在于占有率不同,我使用的时候抽查了开头结尾和中间几个残基,以及原子数量都是一样的


本版积分规则 Credits rule

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

GMT+8, 2026-7-23 02:30 , Processed in 0.227221 second(s), 23 queries , Gzip On.

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