HSExposure() 模块不可调用
from Bio.PDB import *
parser=PDBParser()
structure=parser.get_structure('cal1','3CLN.pdb')
model=structure[0]
chain=model["A"]
hse=HSExposure()
expca=hse.calc_hs_exposure(model,option='CA3')
print expca[chain[40]]
当我执行此代码时,我收到此错误:
File "D:\python\Core\pdb_2.py", line 6, in <module>
hse=HSExposure()
TypeError: 'module' object is not callable
有什么问题吗?
from Bio.PDB import *
parser=PDBParser()
structure=parser.get_structure('cal1','3CLN.pdb')
model=structure[0]
chain=model["A"]
hse=HSExposure()
expca=hse.calc_hs_exposure(model,option='CA3')
print expca[chain[40]]
When I execute this code, I'm getting this error:
File "D:\python\Core\pdb_2.py", line 6, in <module>
hse=HSExposure()
TypeError: 'module' object is not callable
What's wrong with it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
对于像我这样仍在寻找答案的人:
大多数教程似乎都有这个错误。对我有用的是
请注意,HSEalpha 对于链的第一个和最后一个残基是未定义的。
For anyone like me still looking for the answer:
Most tutorials seem to have this wrong. What worked for me was
Please note that HSEalpha is undefined for the first and last residues of a chain.
HSExposure
是一个模块,而不是一个类,因此您无法实例化它。该模块中有一个一堆类,所以我假设您想要其中之一。HSExposure
is a module, not a class, so you can't instantiate it. There's a bunch of classes in that module, so I assume you want one of them.