chembl / chembl_webresource_client

Official Python client for accessing ChEMBL API
https://www.ebi.ac.uk/chembl/api/data/docs
Other
368 stars 95 forks source link

'component_synonym' field does not support relations. #76

Closed sayonidas closed 4 years ago

sayonidas commented 4 years ago

Hi,

I updated the chembl package today that fixed #71 However, I am now getting a new error:

The 'component_synonym' field does not support relations.

for the following line of code:

full_targets = new_client.target.filter(target_synonym__iexact=gene_name).only('target_chembl_id', 'target_type', 'organism')

Please advise how to fix this. Have any of the API endpoints/usage been updated in the new release ?

gedeck commented 4 years ago

I get a similar error for:

    molecule = new_client.molecule
    results = molecule.filter(molecule_synonyms__molecule_synonym__icontains=identifier)

This stopped working on March 3rd.

eloyfelix commented 4 years ago

Thanks for reporting.

Some changes in our webservices https://github.com/chembl/chembl_webservices_py3 affected those functionalities. We are now looking into it.

eloyfelix commented 4 years ago

I'm closing this issue here as I opened one in the relevant repository:

https://github.com/chembl/chembl_webservices_py3/issues/5

eloyfelix commented 4 years ago

FYI, the issue was already fixed and deployed in our webservices so your queries should be working again.