{"action":"created","issue":{"url":"https://api.github.com/repos/biopython/biopython/issues/780","repository_url":"https://api.github.com/repos/biopython/biopython","labels_url":"https://api.github.com/repos/biopython/biopython/issues/780/labels{/name}","comments_url":"https://api.github.com/repos/biopython/biopython/issues/780/comments","events_url":"https://api.github.com/repos/biopython/biopython/issues/780/events","html_url":"https://github.com/biopython/biopython/issues/780","id":138146905,"number":780,"title":"Too many values to unpack in Bio.PDB.DSSP","user":{"login":"iCHAIT","id":8472314,"avatar_url":"https://avatars.githubusercontent.com/u/8472314?v=3","gravatar_id":"","url":"https://api.github.com/users/iCHAIT","html_url":"https://github.com/iCHAIT","followers_url":"https://api.github.com/users/iCHAIT/followers","following_url":"https://api.github.com/users/iCHAIT/following{/other_user}","gists_url":"https://api.github.com/users/iCHAIT/gists{/gist_id}","starred_url":"https://api.github.com/users/iCHAIT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iCHAIT/subscriptions","organizations_url":"https://api.github.com/users/iCHAIT/orgs","repos_url":"https://api.github.com/users/iCHAIT/repos","events_url":"https://api.github.com/users/iCHAIT/events{/privacy}","received_events_url":"https://api.github.com/users/iCHAIT/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-03-03T11:04:03Z","updated_at":"2016-03-03T19:11:21Z","closed_at":null,"body":"I took [this](https://github.com/BioPython/BioPython/blob/master/Bio%2FPDB%2FDSSP.py#L223-L231) from `Bio.PDB.DSSP` and ran it but it fails:\r\n\r\n```python\r\nimport Bio\r\nfrom Bio.PDB import PDBParser, DSSP\r\n\r\np = PDBParser()\r\nstructure = p.get_structure(\"1MOT\", \"1MOT.pdb\")\r\nmodel = structure[0]\r\ndssp = DSSP(model, \"1MOT.pdb\", dssp=\"dsspcmbi\"))\r\n# DSSP data is accessed by a tuple (chain_id, res_id)\r\na_key = list(dssp)[2]\r\n# residue object, secondary structure, solvent accessibility,\r\n# relative accessiblity, phi, psi\r\ndssp[a_key]\r\n```\r\n\r\nHere is the traceback:\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 12, in <module>\r\n  File \"/usr/lib64/python2.7/site-packages/Bio/PDB/AbstractPropertyMap.py\", line 49, in __getitem__\r\n    translated_id = self._translate_id(key)\r\n  File \"/usr/lib64/python2.7/site-packages/Bio/PDB/AbstractPropertyMap.py\", line 117, in _translate_id\r\n    chain_id, res_id = ent_id\r\nValueError: too many values to unpack\r\ntoo many values to unpack\r\n```\r\n\r\nThe `1M0T.pdb` file has been downloaded from [Tests/PDB/1MOT.pdb](https://github.com/BioPython/BioPython/blob/master/Tests%2FPDB%2F1MOT.pdb)"},"comment":{"url":"https://api.github.com/repos/biopython/biopython/issues/comments/191919137","html_url":"https://github.com/biopython/biopython/issues/780#issuecomment-191919137","issue_url":"https://api.github.com/repos/biopython/biopython/issues/780","id":191919137,"user":{"login":"JoaoRodrigues","id":237328,"avatar_url":"https://avatars.githubusercontent.com/u/237328?v=3","gravatar_id":"","url":"https://api.github.com/users/JoaoRodrigues","html_url":"https://github.com/JoaoRodrigues","followers_url":"https://api.github.com/users/JoaoRodrigues/followers","following_url":"https://api.github.com/users/JoaoRodrigues/following{/other_user}","gists_url":"https://api.github.com/users/JoaoRodrigues/gists{/gist_id}","starred_url":"https://api.github.com/users/JoaoRodrigues/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoaoRodrigues/subscriptions","organizations_url":"https://api.github.com/users/JoaoRodrigues/orgs","repos_url":"https://api.github.com/users/JoaoRodrigues/repos","events_url":"https://api.github.com/users/JoaoRodrigues/events{/privacy}","received_events_url":"https://api.github.com/users/JoaoRodrigues/received_events","type":"User","site_admin":false},"created_at":"2016-03-03T19:11:21Z","updated_at":"2016-03-03T19:11:21Z","body":"Indeed, this is an issue with the documentation on that particular docstring. The proper way to access the residue keys is by using dssp.keys(). Iterating over the dssp object goes over the dssp data."}}