【发布时间】:2017-06-16 16:22:48
【问题描述】:
我已将残留编号列表重新编号为 new_residues=[18,19,20,21,22,34,35,36,37.... 130,131,132] 并且我想使用此列表更改我的 pdb 残留编号。你有重新编号的想法吗?
...
w=PDBIO()
structure=p.get_structure(" ", pdbfile)
for model in structure:
for chain in model:
chain_ID=model[chainID]
for residue in chain_ID:
#for i in range(len(residue.id)):
#resID=new_resnums[i]
residue.id=(" ",new_resnums[residue.id[1]], " ")
w.set_structure(structure)
w.save(pdbfile + "-new.pdb")
【问题讨论】:
标签: python biopython pdb pdb-files