Parses a DSSP file to returns a dataframe
parse.dssp(file, keepfiles = FALSE)
file input dssp file.
keepfiles logical, if TRUE the dataframe will be saved in the working directory and we will keep the dssp file.
Returns a dataframe providing data for:
‘ss’: secondary structure element,
‘phi’: phi angle,
‘psi’: psi angle.
- Touw et al. (2015) Nucl. Ac. Res. 43(Database issue): D364-D368.
- Kabsch & Sander (1983) Biopolimers 22:2577-2637.
The ptm package contains a number of ancillary functions that deal with Protein Data Bank (PDB) files. These functions may be useful when structural 3D data need to be analyzed. The mentioned functions are:
- parse.dssp (the current document)
The DSSP (Define Secondary Structure of Proteins) algorithm allows to assign secondary structure to the amino acids of a protein using the atomic coordinates of the protein (a PDB file).
E = extended strand in parallel and/or anti-parallel β-sheet conformation. Min length 2 residues.
B = residue in isolated β-bridge (single pair β-sheet hydrogen bond formation)
T = hydrogen bonded turn (3, 4 or 5 turn)
S = bend (the only non-hydrogen-bond based assignment).
C = coil (residues which are not in any of the above conformations).
Given a PDB file (or its 4 letter ID) there are three different ways to get the corresponding dssp file. The one used by the function download.dssp() consist in downloading a pre-computed file making use of the REST API provided by the Centre for Molecular and Biomolecular Informatics.
For instance, let’s obtain the dssp file for the Dynein light chain 2.
compute.dssp(pdb = '2xqq')
##  "Work done!. See file at: ./2xqq.dssp"
We can now parse the obtained dssp file:
Dynein <- parse.dssp('./2xqq.dssp') kable(head(Dynein))
In addition, compute.dssp() also accepts a PDB file that you may have generated and therefore is not present in the PDB database (in this case you must pass the path to browse until the file as an argument). In any case, the function send the file to the XSSP server which will carry out the computation and returns a dssp file.
A drawback of this function is that it depends on the XSSP server and in ocasions it can take a long time to process the request. Thus, a third alternative option to convert a PDB file into a DSSP file is to carry out the computation on your in-house computer, using the function mkdssp(). To do that, previously you will have had to install the mkdssp program as an executable. Some help can be found here.
Dynein <- mkdssp(pdb = '2xqq',method = 'ptm') kable(tail(Dynein))
A warning words
PDB entries are notirously hard to parse. It is no unusual that the entry contains UNK residues, Cα-only residues, or residues with otherwise missin atoms, just to mention a few issues. For that reason we provide different alternative approaches to compute the desired dssp file, in the hope that they complement each other and together allow obtaining the desired calculations for a large majority of PDB files.