{"action":"created","issue":{"url":"https://api.github.com/repos/bridgedb/BridgeDb/issues/14","labels_url":"https://api.github.com/repos/bridgedb/BridgeDb/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/bridgedb/BridgeDb/issues/14/comments","events_url":"https://api.github.com/repos/bridgedb/BridgeDb/issues/14/events","html_url":"https://github.com/bridgedb/BridgeDb/issues/14","id":98347822,"number":14,"title":"Fix unigene URI pattern for organism+clusterId","user":{"login":"stain","id":253413,"avatar_url":"https://avatars.githubusercontent.com/u/253413?v=3","gravatar_id":"","url":"https://api.github.com/users/stain","html_url":"https://github.com/stain","followers_url":"https://api.github.com/users/stain/followers","following_url":"https://api.github.com/users/stain/following{/other_user}","gists_url":"https://api.github.com/users/stain/gists{/gist_id}","starred_url":"https://api.github.com/users/stain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stain/subscriptions","organizations_url":"https://api.github.com/users/stain/orgs","repos_url":"https://api.github.com/users/stain/repos","events_url":"https://api.github.com/users/stain/events{/privacy}","received_events_url":"https://api.github.com/users/stain/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bridgedb/BridgeDb/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-31T09:05:40Z","updated_at":"2015-07-31T12:37:29Z","closed_at":null,"body":"http://ops2.few.vu.nl/QueryExpander/dataSource/U\r\n\r\nsays:\r\n```\r\nprimary UriPattern\r\n    http://www.ncbi.nlm.nih.gov/UniGene/clust.cgi?UGID=1548618&SEARCH=$id\r\nURI Pattern\r\n    http://purl.uniprot.org/unigene/$id\r\nidExample\r\n    Hs.553708\r\n```\r\n\r\nbut this URL only works for the example id, as http://www.ncbi.nlm.nih.gov/UniGene/clust.cgi?UGID=1548618&SEARCH=whatever will still show UGID:1548618 and just put `whatever` into the search box.\r\n\r\nhttp://www.ncbi.nlm.nih.gov/UniGene/clust.cgi?ORG=Hs&CID=656875 does work correctly - but is not possible to use in BridgeDb as we don't support split identifiers.\r\n\r\nThe pattern http://purl.uniprot.org/unigene/Hs.553708 is valid and used internally by Uniprot, but does not resolve to anything meaningful (\"Can't handle namespace: unigene\"). \r\n\r\nNote that confusingly there is also the \"Unigene number\" - http://ops2.few.vu.nl/QueryExpander/dataSource/unigene which uses UGID - e.g. http://www.ncbi.nlm.nih.gov/UniGene/clust.cgi?UGID=$id  \r\n"},"comment":{"url":"https://api.github.com/repos/bridgedb/BridgeDb/issues/comments/126677005","html_url":"https://github.com/bridgedb/BridgeDb/issues/14#issuecomment-126677005","issue_url":"https://api.github.com/repos/bridgedb/BridgeDb/issues/14","id":126677005,"user":{"login":"stain","id":253413,"avatar_url":"https://avatars.githubusercontent.com/u/253413?v=3","gravatar_id":"","url":"https://api.github.com/users/stain","html_url":"https://github.com/stain","followers_url":"https://api.github.com/users/stain/followers","following_url":"https://api.github.com/users/stain/following{/other_user}","gists_url":"https://api.github.com/users/stain/gists{/gist_id}","starred_url":"https://api.github.com/users/stain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stain/subscriptions","organizations_url":"https://api.github.com/users/stain/orgs","repos_url":"https://api.github.com/users/stain/repos","events_url":"https://api.github.com/users/stain/events{/privacy}","received_events_url":"https://api.github.com/users/stain/received_events","type":"User","site_admin":false},"created_at":"2015-07-31T12:37:29Z","updated_at":"2015-07-31T12:37:29Z","body":"Thanks for the pointers, @Christian-B! I think adding support for split identifiers is a bit overkill (unless we know of other such cases), and rather we can keep just http://purl.uniprot.org/unigene as the primary - which is what is needed to match the Uniprot linksets anyway.\r\n\r\nI seriously don't hope the old format of http://www.ncbi.nlm.nih.gov/UniGene/clust.cgi?UGID=1548618&SEARCH=$id is used anywhere - as it would always return that Olfactory receptor.\r\n\r\nI must admit I don't understand why Unigene has two sets of their own identifiers at all - the clusterId is not even consistent across organisms, so it's not like I can check at the mouse by changing to `ORG=Mm`.\r\n\r\nSee also http://www.ncbi.nlm.nih.gov/UniGene/help.cgi?item=FAQ#q12 - sadly the split clust.cgi format is the official link format here.\r\n\r\n\r\nWe can always request Uniprot if they could consider a redirect to UniGene's clust.cgi rather than the current 400 Bad Request after redirecting to http://www.uniprot.org/?query=purl:unigene/Hs.553708."}}