Entering edit mode
3.4 years ago
anasjamshed
▴
140
I am trying to get RSA through the DSSP module of PDB by using :
from Bio.PDB import *
parser = PDBParser()
io = PDBIO()
structure = parser.get_structure('X', '1mot.pdb')
model = structure[0]
dssp = DSSP(model, '1mot.pdb',acc_array='Miller')
residues = list(dssp)
But it is giving me following error:
FileNotFoundError Traceback (most recent call last)
<ipython-input-62-714e350773f8> in <module>
4 structure = parser.get_structure('X', '1mot.pdb')
5 model = structure[0]
----> 6 dssp = DSSP(model, '1mot.pdb',acc_array='Miller')
7 residues = list(dssp)
Although I have a 1mot pdb file in my directory
plz help me
The pdb file is present in my working directory
In that case you most likely don't have the
dssp
executable at all, or the system can't find it. In Linux it is simply a matter of puttingdssp
anywhere in the$PATH
and I think it is the same for Windows, but not sure. You may have to compile the program for Windows:https://github.com/cmbi/dssp
how can I add them to the path?
Google is your friend.
https://www.google.com/search?q=windows+%24path
adding in the path does not remove error
dssp
executable for your operating system needs to be placed into a directory (or folder) that is defined in the$PATH
variable. I don't have the time to explain all of this one terse statement or question at a time. You should have enough information do solve this on you own by doing some research.mkdssp is a ddsp executable as mentioned in Github .
i add this link C:\Users\USER\Desktop\dssp-master\doc\mkdssp to my environment path but still it is showing error