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

Module DSSP'

source code

Use the DSSP program to calculate secondary structure and accessibility.

You need to have a working version of DSSP (and a license, free for academic use) in order to use this. For DSSP, see U{http://swift.cmbi.ru.nl/gv/dssp/}.

The DSSP codes for secondary structure used here are:

H
Alpha helix (4-12)
B
Isolated beta-bridge residue
E
Strand
G
3-10 helix
I
pi helix
T
Turn
S
Bend
-
None

The following Accessible surface area (ASA) values can be used, defaulting to the Sander and Rost values:

Miller
Miller et al. 1987 http://dx.doi.org/10.1016/0022-2836(87)90038-6
Sander
Sander and Rost 1994 http://dx.doi.org/10.1002/prot.340200303
Wilke
Tien et al. 2013 http://dx.doi.org/10.1371/journal.pone.0080635
Classes [hide private]
  DSSP
Run DSSP and parse secondary structure and accessibility.
Functions [hide private]
 
_make_dssp_dict(handle)
Internal function used by mask_dssp_dict (PRIVATE).
source code
 
dssp_dict_from_pdb_file(in_file, DSSP='dssp')
Create a DSSP dictionary from a PDB file.
source code
 
make_dssp_dict(filename)
DSSP dictionary mapping identifers to properties.
source code
 
ss_to_index(ss)
Secondary structure symbol to index.
source code
Variables [hide private]
  __package__ = 'Bio.PDB'
  _dssp_cys = re.compile(r'[a-z]')
  residue_max_acc = {'Miller': {'ALA': 113.0, 'ARG': 241.0, 'ASN...
Function Details [hide private]

_make_dssp_dict(handle)

source code 

Internal function used by mask_dssp_dict (PRIVATE).

Return a DSSP dictionary that maps (chainid, resid) to an amino acid, secondary structure symbol, solvent accessibility value, and hydrogen bond information (relative dssp indices and hydrogen bond energies) from an open DSSP file object.

Parameters

handle : file
the open DSSP output file handle

dssp_dict_from_pdb_file(in_file, DSSP='dssp')

source code 

Create a DSSP dictionary from a PDB file.

Example:

>>> dssp_dict=dssp_dict_from_pdb_file("1fat.pdb")
>>> aa, ss, acc=dssp_dict[('A', 1)]

Parameters

in_file : string
pdb file
DSSP : string
DSSP executable (argument to os.system)

Returns

(out_dict, keys) : tuple
a dictionary that maps (chainid, resid) to amino acid type, secondary structure code and accessibility.

make_dssp_dict(filename)

source code 

DSSP dictionary mapping identifers to properties.

Return a DSSP dictionary that maps (chainid, resid) to aa, ss and accessibility, from a DSSP file.

Parameters

filename : string
the DSSP output file

ss_to_index(ss)

source code 

Secondary structure symbol to index.

H=0 E=1 C=2


Variables Details [hide private]

residue_max_acc

Value:
{'Miller': {'ALA': 113.0,
            'ARG': 241.0,
            'ASN': 158.0,
            'ASP': 151.0,
            'CYS': 140.0,
            'GLN': 189.0,
            'GLU': 183.0,
            'GLY': 85.0,
...