pdbli = PDBList()
pdbli.download_pdb_files([’6m6r‘], pdir='raw_pdb', file_format='pdb')
结果文件名为
pdb6m6r.ent
google后结果:.ent和.pdb没有区别。所以一样可以读出结构:
pdb_file = os.path.join('raw_pdb','pdb'+’6m6r‘+'.ent')
parser = PDBParser()
struct = parser.get_structure(self.pdb_id,pdb_file)
参考链接:
ENT efile extension should be recognized as PDB
how to change format of ent file into PDB format?