首页 > 解决方案 > PDB retrieve_pdb_file 方法的“所需结构不存在”

问题描述

尝试使用 Biopython 的 Bio.PDB.PDBList 从 PDB 下载一些蛋白质数据

这是一分钟。可重现的例子:

from Bio.PDB import PDBList
pdbl=PDBList()
pdbl.retrieve_pdb_file('1GAV', file_format="pdb")

这将返回:

Downloading PDB structure '1GAV'...
Desired structure doesn't exists

期望的行为是将 PDB 文件下载到工作目录。

可能有用的信息:

标签: pythonbioinformaticsbiopython

解决方案


我们认为问题与我们的公司 VPN 有关,因为它在 VPN 关闭时工作(尽管代理仍然打开)。正如 sammam 所说,代码中没有问题。

不知道我们的 VPN 发生这种情况的具体原因,如果我发现会更新。


推荐阅读