Package Bio :: Package PDB :: Module DSSP' :: Class DSSP
[hide private]
[frames] | no frames]

Class DSSP

source code

                                object --+        
                                         |        
   AbstractPropertyMap.AbstractPropertyMap --+    
                                             |    
AbstractPropertyMap.AbstractResiduePropertyMap --+
                                                 |
                                                DSSP

Run DSSP on a pdb file, and provide a handle to the DSSP secondary structure and accessibility.

Note that DSSP can only handle one model.

Example:

>>> p = PDBParser()
>>> structure = p.get_structure("1MOT", "1MOT.pdb")
>>> model = structure[0]
>>> dssp = DSSP(model, "1MOT.pdb")
>>> # DSSP data is accessed by a tuple (chain_id, res_id)
>>> a_key = list(dssp)[2]
>>> # residue object, secondary structure, solvent accessibility,
>>> # relative accessiblity, phi, psi
>>> dssp[a_key]
(<Residue ALA het=  resseq=251 icode= >,
'H',
72,
0.67924528301886788,
-61.200000000000003,
-42.399999999999999)
Instance Methods [hide private]
 
__init__(self, model, pdb_file, dssp='dssp')
x.__init__(...) initializes x; see help(type(x)) for signature
source code

Inherited from AbstractPropertyMap.AbstractPropertyMap: __contains__, __getitem__, __iter__, __len__, has_key, keys

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, model, pdb_file, dssp='dssp')
(Constructor)

source code 
x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • model (Model) - the first model of the structure
  • pdb_file (string) - a PDB file
  • dssp (string) - the dssp executable (ie. the argument to os.system)
Overrides: object.__init__