Comments (5)
The issue here is that the target_chembl_id
needs to be changed to cell_chembl_id
, and the rest will work out.
Closing.
from chembl_webresource_client.
It appears I spoke too soon--
I'm using the following code block to (attempt) to download the bioactivities against the cell line CHEMBL3308372:
activities = new_client.activity
for x in chembl_ids:
print("Checking cell id {}".format(x))
res = activities.filter(cell_chembl_id='{}'.format(x),assay_type='F',standard_type="EC50", standard_value__isnull=False)
activities_df = pandas.DataFrame.from_dict(list(res))
print(activities_df)
This returns approximately ~20,0000 molecules, of which all show EC50 values against cell lines that aren't CHEMBL3308372. For example, one of the compounds reported is CHEMBL174698, which shows EC50 against a completely different cell line. Any ideas on how to fix this?
from chembl_webresource_client.
Please note, that the activitiy
enpoint (https://www.ebi.ac.uk/chembl/api/data/activity.json) doens't have a cell_chembl_id
field. This is why this filter gets (silently) ignored so it's equivalent to the following:
res = activities.filter(assay_type='F',standard_type="EC50", standard_value__isnull=False)
from chembl_webresource_client.
Sorry if I'm not understanding properly, but is it then not possible to download activities against a cell line? If you try to use target_chembl_id
and filter for functional assays and a specific standard type, it will return an empty list.
from chembl_webresource_client.
Yes, it's not possible. You can filter the assay
endpoint using cell_cehmbl_id
filter and then retrive all activities with the corresponding assays.
from chembl_webresource_client.
Related Issues (20)
- Substructure Search Returning Error HOT 3
- .filter for different names in "document_journal" column HOT 1
- Query hangs after reaching specific entry HOT 1
- Error for url https://www.ebi.ac.uk/chembl/api/data/activity.json, server response: <!doctype html> HOT 6
- Mechanism results do not match what is on the website HOT 3
- Isomeric SMILES string
- Problem with unichem.structure HOT 4
- Http Application error HOT 5
- Querying by inchi
- new_client is failing to import from chembl_webresource_client HOT 1
- Assay offsets and limit HOT 2
- How do I retrieve the Unichem Cross references as a dictionary/list for a CHEMBL compound?
- Fail to import new_client due to API problem HOT 5
- Fixed
- Space between words of the query
- HttpApplicationError HOT 8
- confidence score
- Error for url
- ChEMBL webresourse client issue
- status 500 with chembl_webresource_client.new_client
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chembl_webresource_client.