Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 如何正确初始化PDB.DSSP对象_Python_Ubuntu_Biopython - Fatal编程技术网

Python 如何正确初始化PDB.DSSP对象

Python 如何正确初始化PDB.DSSP对象,python,ubuntu,biopython,Python,Ubuntu,Biopython,我正在尝试获取PDB文件的DSSP,但python正在抛出未找到的文件 我从Windows的Ubuntu下载了dssp。 在ubuntu终端中调用哪个dssp会给出“/usr/bin/dssp” 使用pdb文件调用dssp将给出正确的输出。 我的ide中可能存在路径错误 p = PDB.PDBParser() structure = p.get_structure(PDB_file[:-4].upper(), dir + "/" + PDB_file) model = str

我正在尝试获取PDB文件的DSSP,但python正在抛出未找到的文件

我从Windows的Ubuntu下载了dssp。 在ubuntu终端中调用哪个dssp会给出“/usr/bin/dssp” 使用pdb文件调用dssp将给出正确的输出。 我的ide中可能存在路径错误


 p = PDB.PDBParser()      
 structure = p.get_structure(PDB_file[:-4].upper(), dir + "/" + PDB_file)
 model = structure[0]
 dssp=DSSP(model,PDB_file)
前面的三行工作正常。我尝试将dir(目录)添加到构造函数中,但没有效果