#NOTE: THIS IS NOT 1000000000000000000000000000000's code. Copied and slightly modified from neolei's DSSPparser
DSSPparser is an easy tool to parse dssp file, and can transform PDB format file to dssp format file by dssp,also support the tansfrom between the PDB id and dssp format, hssp format and sequence.
stable verison
pip install DSSPparser
lastest version
pip install git+https://github.com/1000000000000000000000000000000/DSSPparser_Modified2.git
parse dssp file to pandas.dataframe
from DSSPparser import parseDSSP
parser = parseDSSP('2GW9.dssp')
parser.parse()
pddict = parser.dictTodataframe()
Transform between the PDB format and dssp format
- Note: please install the DSSP software.
conda install -c salilab dssp
from DSSPparser import pdbToxssp_local2
result = pdbToxssp_local2("2GW9")
Released under the MIT license.