GithubHelp home page GithubHelp logo

Comments (5)

spadavec avatar spadavec commented on May 23, 2024

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.

spadavec avatar spadavec commented on May 23, 2024

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.

mnowotka avatar mnowotka commented on May 23, 2024

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.

spadavec avatar spadavec commented on May 23, 2024

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.

mnowotka avatar mnowotka commented on May 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.