{"action":"closed","issue":{"url":"https://api.github.com/repos/chembl/chembl_webresource_client/issues/30","repository_url":"https://api.github.com/repos/chembl/chembl_webresource_client","labels_url":"https://api.github.com/repos/chembl/chembl_webresource_client/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/chembl/chembl_webresource_client/issues/30/comments","events_url":"https://api.github.com/repos/chembl/chembl_webresource_client/issues/30/events","html_url":"https://github.com/chembl/chembl_webresource_client/issues/30","id":274269747,"number":30,"title":"Improving time turnaround for activity requests","user":{"login":"spadavec","id":3453650,"avatar_url":"https://avatars1.githubusercontent.com/u/3453650?v=4","gravatar_id":"","url":"https://api.github.com/users/spadavec","html_url":"https://github.com/spadavec","followers_url":"https://api.github.com/users/spadavec/followers","following_url":"https://api.github.com/users/spadavec/following{/other_user}","gists_url":"https://api.github.com/users/spadavec/gists{/gist_id}","starred_url":"https://api.github.com/users/spadavec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spadavec/subscriptions","organizations_url":"https://api.github.com/users/spadavec/orgs","repos_url":"https://api.github.com/users/spadavec/repos","events_url":"https://api.github.com/users/spadavec/events{/privacy}","received_events_url":"https://api.github.com/users/spadavec/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-11-15T19:07:45Z","updated_at":"2017-11-16T17:05:57Z","closed_at":"2017-11-16T17:05:57Z","author_association":"NONE","body":"Hello \r\n\r\nIs there a way to improve the time it takes to retrieve activities against a target? The relevant code I'm using: \r\n\r\n```\r\nfor x in chembl_ids:\r\n        if x not in existing_files:\r\n                print(\"Checking CHEMBL id {}\".format(x))\r\n                res = activity.filter(target_chembl_id='{}'.format(x), relation='=', assay_type='B', standard_type=\"IC50\")\r\n\r\n                for sub in res:\r\n                        if sub['parent_molecule_chembl_id'] and sub['canonical_smiles'] and sub['standard_value'] is not None:\r\n                                ids.append(str(sub['parent_molecule_chembl_id']))\r\n                                smiles.append(str(sub['canonical_smiles']))\r\n                                ic50.append(float(sub['standard_value']))\r\n```\r\n\r\nCurrently, it takes ~2 minutes and 45 seconds per ID/request--and given that I want to pull ~5000 targets, I'm hoping to improve that time :) Is there a ```SETTINGS``` that decreases ping time?"}}
{"actor":{"display_login":"spadavec"}}