chembl / chembl_webresource_client

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

Synonyms #112

Open RetrosynthesisAI opened 2 years ago

RetrosynthesisAI commented 2 years ago

How should I alter the below function to retrieve the ChEMBL IDS of multiple molecule synonyms?

results = molecule.filter(molecule_synonyms__molecule_synonym__iexact='aspirin').only('molecule_chembl_id')