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 = dssp.keys()[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)
|
|
__init__(self,
model,
pdb_file,
dssp='dssp')
@param model: the first model of the structure
@type model: L{Model} |
source code
|
|
|
Inherited from AbstractPropertyMap.AbstractPropertyMap:
__contains__,
__getitem__,
__iter__,
__len__,
has_key,
keys
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__str__
|
|
Inherited from object:
__class__
|
__init__(self,
model,
pdb_file,
dssp='dssp')
(Constructor)
| source code
|
@param model: the first model of the structure
@type model: L{Model}
@param pdb_file: a PDB file
@type pdb_file: string
@param dssp: the dssp executable (ie. the argument to os.system)
@type dssp: string
- Overrides:
object.__init__
|