{"action":"opened","issue":{"url":"https://api.github.com/repos/biopython/biopython/issues/1130","repository_url":"https://api.github.com/repos/biopython/biopython","labels_url":"https://api.github.com/repos/biopython/biopython/issues/1130/labels{/name}","comments_url":"https://api.github.com/repos/biopython/biopython/issues/1130/comments","events_url":"https://api.github.com/repos/biopython/biopython/issues/1130/events","html_url":"https://github.com/biopython/biopython/issues/1130","id":219238169,"number":1130,"title":"Format change in prosite.dat","user":{"login":"francoiscoste","id":26253975,"avatar_url":"https://avatars1.githubusercontent.com/u/26253975?v=3","gravatar_id":"","url":"https://api.github.com/users/francoiscoste","html_url":"https://github.com/francoiscoste","followers_url":"https://api.github.com/users/francoiscoste/followers","following_url":"https://api.github.com/users/francoiscoste/following{/other_user}","gists_url":"https://api.github.com/users/francoiscoste/gists{/gist_id}","starred_url":"https://api.github.com/users/francoiscoste/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/francoiscoste/subscriptions","organizations_url":"https://api.github.com/users/francoiscoste/orgs","repos_url":"https://api.github.com/users/francoiscoste/repos","events_url":"https://api.github.com/users/francoiscoste/events{/privacy}","received_events_url":"https://api.github.com/users/francoiscoste/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-04-04T12:44:54Z","updated_at":"2017-04-04T12:44:54Z","closed_at":null,"body":"Hi and thanks for your work on this nice library!\r\n\r\nIn Biopython 1.68, the new date format of prosite.dat is not supported. Here is the error message:\r\n  \r\n/usr/lib64/python3.5/site-packages/Bio/ExPASy/Prosite.py in parse(handle)\r\n     34     handle   - handle to the file.\"\"\"\r\n     35     while True:\r\n---> 36         record = __read(handle)\r\n     37         if not record:\r\n     38             break\r\n\r\n/usr/lib64/python3.5/site-packages/Bio/ExPASy/Prosite.py in __read(handle)\r\n    172                (not dates[1].endswith('(DATA UPDATE)')) or \\\r\n    173                (not dates[2].endswith('(INFO UPDATE)')):\r\n--> 174                 raise ValueError(\"I don't understand date line\\n%s\" % line)\r\n    175             record.created = dates[0].rstrip(' (CREATED)')\r\n    176             record.data_update = dates[1].rstrip(' (DATA UPDATE)')\r\n\r\nValueError: I don't understand date line\r\nDT   01-APR-1990 CREATED; 01-APR-1990 DATA UPDATE; 01-APR-1990 INFO UPDATE.\r\n\r\nThe format of DT field changed indeed recently according to ftp://ftp.expasy.org/databases/prosite/NEWS to add a day field (and remove parenthesis!) :\r\n\r\nNew (current) format:\r\nDT DD-MMM-YYYY CREATED; DD-MMM-YYYY DATA UPDATE; DD-MMM-YYYY INFO UPDATE.\r\nOld format:\r\nDT MMM-YYYY (CREATED); MMM-YYYY (DATA UPDATE); MMM-YYYY (INFO UPDATE).\r\n\r\nExample:\r\nNew (current) format:\r\nDT 01-APR-1990 CREATED; 01-MAY-2005 DATA UPDATE; 01-OCT-2016 INFO UPDATE.\r\nOld format:\r\nDT APR-1990 (CREATED); MAY-2005 (DATA UPDATE); OCT-2016 (INFO UPDATE).\r\n\r\nThe release numbers seems to have changed also in January 2017....\r\nBest regard,\r\nFrançois\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"francoiscoste"}}