[Biopython-dev] [Biopython (old issues only) - Bug #3146] DSSP ungraceful failure

redmine at redmine.open-bio.org redmine at redmine.open-bio.org
Wed Nov 9 10:11:46 UTC 2016


Issue #3146 has been updated by Peter Cock.

Description updated

It would appear the PDB parser is more noisy about warnings, but were you able to run the DSSP part as well Vincent?

----------------------------------------
Bug #3146: DSSP ungraceful failure
https://redmine.open-bio.org/issues/3146#change-15344

* Author: Patrick empty
* Status: New
* Priority: Low
* Assignee: Biopython Dev Mailing List
* Category: Main Distribution
* Target version: 1.53
* URL: 
----------------------------------------
The DSSP annotator should probably fail gracefully when the PDBParser and DSSP disagree about the existence of a residue at a certain position.  Here, DSSP reports values for residue 115 of chain A, while the PDBParser throws a key error.

from Bio.PDB import PDBParser
parser = PDBParser()
from Bio.PDB.DSSP import DSSP
structure=parser.get_structure("2p0i","pdb2p0i.ent")
model=structure[0]
dssp=DSSP(model, "pdb2p0i.ent")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/pymodules/python2.6/Bio/PDB/DSSP.py", line 175, in __init__
    res=chain[res_id]
  File "/usr/lib/pymodules/python2.6/Bio/PDB/Chain.py", line 71, in __getitem__
    return Entity.__getitem__(self, id)
  File "/usr/lib/pymodules/python2.6/Bio/PDB/Entity.py", line 38, in __getitem__
    return self.child_dict[id]
KeyError: (' ', 115, ' ')
>>> model['A'][114]
<Residue GLN het=  resseq=114 icode= >
>>> model['A'][116]
<Residue TYR het=  resseq=116 icode= >
>>> model['A'][115]
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/pymodules/python2.6/Bio/PDB/Chain.py", line 71, in __getitem__
    return Entity.__getitem__(self, id)
  File "/usr/lib/pymodules/python2.6/Bio/PDB/Entity.py", line 38, in __getitem__
    return self.child_dict[id]
KeyError: (' ', 115, ' ')

---Files--------------------------------
pdb2p0i.ent (2.24 MB)


-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here and login: http://redmine.open-bio.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.open-bio.org/pipermail/biopython-dev/attachments/20161109/ab1de3e7/attachment.html>


More information about the Biopython-dev mailing list