This project has moved. For the latest updates, please go here.

DSSPParser.parse() using strings as keys for the returned dictionary

Oct 16, 2012 at 1:51 PM

Currently, the parse() method of DSSPParser uses string object for keys. Is there a case where these keys would be something else than the residue positions in the sequence? Otherwise it may be good to have the keys be integers instead...

Oct 16, 2012 at 2:06 PM
Edited Oct 16, 2012 at 2:07 PM

Unfortunately DSSP reads all residues from the ATOM fields in the PDB file. DSSP therefore outputs PDB sequence identifiers (sequence number + insertion code), not numeric SEQRES positions. Recall that PDB residue identifiers are stored in the property, which is of type string. More precisely, the "insertion code" part of the ID is a string. Here is the implementation of the property:

return str(self._sequence_number) + self._insertion_code
Oct 16, 2012 at 2:09 PM

Right, that explains it.