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

How to extract all the activities measured for a protein #54

Closed
wmmxk opened this issue Apr 2, 2019 · 3 comments
Closed

How to extract all the activities measured for a protein #54

wmmxk opened this issue Apr 2, 2019 · 3 comments

Comments

@wmmxk
Copy link

wmmxk commented Apr 2, 2019

I was trying to download all the measured activities for this protein (CHEMBL5455). I can download the csv file from the following link:
https://www.ebi.ac.uk/chembl/g/#browse/activities/filter/target_chembl_id%3ACHEMBL5455

Is there a way to automate this in Python?

Thanks,
Xiaokang

@MatthewMasters
Copy link

Absolutely. If you follow the examples in the README, you should be able to piece together

from chembl_webresource_client.new_client import new_client
activity = new_client.activity
result = activity.filter(target_chembl_id="CHEMBL5455")
print(result[0])
print(result[0].find("molecule_chembl_id")

@wmmxk
Copy link
Author

wmmxk commented Apr 7, 2019 via email

@MatthewMasters
Copy link

Great! I'm glad that was helpful. Be sure to close the issue if everything is good ;)

@wmmxk wmmxk closed this as completed Apr 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants