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]]
当我执行这段代码时,我得到了一个错误:
^{pr2}$
怎么了?在
Tags:
对于像我这样还在寻找答案的人:
大多数教程似乎都错了。对我有用的是
请注意,对于链的第一个和最后一个残基,HSEalpha是未定义的。在
HSExposure
是一个模块,而不是一个类,因此不能实例化它。有一个bunch of classes in that module,所以我想你想要一个。在相关问题 更多 >
编程相关推荐