Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase speed of the ranker #1

Open
jacobwindsor opened this issue Jun 18, 2016 · 0 comments
Open

Increase speed of the ranker #1

jacobwindsor opened this issue Jun 18, 2016 · 0 comments

Comments

@jacobwindsor
Copy link
Owner

Currently the ranker (DataManipulators/Counter.py) runs one query to PubChem for each compound in the dataset. Obviously this is incredibly slow and laborious but could be made faster with one query.

A request to https://pubchem.ncbi.nlm.nih.gov/sdq/sdqagent.cgi takes an SQL query string encoded in JSON as the query.

Example JSON:

{"select": "*", "collection": "biosystem", "where": {"cid": 1234}, "start": 1, "limit": 10}

Could use SQLs GROUP statement to group by CIDs and query for all of the CIDs in the dataset at once to get the counts. This is easily possible with bioassays since each bioassay has only one CID. However, the biosystems have multiple CIDs so cannot group by CIDs. Maybe there is an alternative solution though...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant