Wilke:ParseDSSP: Difference between revisions

From OpenWetWare
Jump to navigationJump to search
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Image:DSSPData.txt]] is a python script created to allow easy parsing of DSSP files.
{{WilkeMenu}}
__NOTOC__
 
=DSSP Parser=
[https://github.com/clauswilke/WilkeLabProteinEvolutionToolbox/blob/master/python/dssp_parse.py Here] is a python script created to allow easy parsing of DSSP files.
 
For some reason, openwetware does not like the '.py' extension. 
Thus, you will have to download the txt file and change the extension from '.txt' to '.py'


To use it:
To use it:
Line 22: Line 29:


   getResnums()
   getResnums()
   getChainType()
   getChain()
  getInsCode()
   getAAs()
   getAAs()
   getSecStruc()
   getSecStruc()
Line 42: Line 50:


The secondary structure method does not strip white space because it is necessary for decoding the output.
The secondary structure method does not strip white space because it is necessary for decoding the output.
If you find any bugs let me (Austin Meyer... find me on the main page) know and I'll fix it.  Thanks to Alan Rathke for helping me fix an insertion code issue.

Latest revision as of 12:15, 8 August 2014

Notice: The Wilke Lab page has moved to http://wilkelab.org.
The page you are looking at is kept for archival purposes and will not be further updated.
THE WILKE LAB

Home        Contact        People        Research        Publications        Materials


DSSP Parser

Here is a python script created to allow easy parsing of DSSP files.

For some reason, openwetware does not like the '.py' extension. Thus, you will have to download the txt file and change the extension from '.txt' to '.py'

To use it:

Load the script in python:

 import DSSPData as dd

Instantiate an object instance:

 dd_ob = dd.DSSPData()

Input a dssp data file:

 dd_ob.parseDSSP( dssp_file_name )

To get data for example:

 accesibilities = dd_ob.getACC()

Will return all of the solvent accesibilties. Each column in the dssp output file has its own getter. Here are all the getters:

 getResnums()
 getChain()
 getInsCode()
 getAAs()
 getSecStruc()
 getBP1()
 getBP2()
 getACC()
 getH_NHO1()
 getH_NHO2()
 getH_OHN1()
 getH_OHN2()
 getTCO()
 getKAPPA()
 getALPHA()
 getPHI()
 getPSI()
 getX()
 getY()
 getZ()

The secondary structure method does not strip white space because it is necessary for decoding the output.

If you find any bugs let me (Austin Meyer... find me on the main page) know and I'll fix it. Thanks to Alan Rathke for helping me fix an insertion code issue.