Icon

Retrieve ChEMBL ID from SMILES

This example URL works in the browser, but will cause the GET Request node to fail due to illegalcharacters: https://www.ebi.ac.uk/chembl/api/data/molecule/Cc1cc(-n2ncc(=O)[nH]c2=O)ccc1C(=O)c1ccccc1ClThe trick is to replace the special characters with their URL encoding (e.g as here:https://www.tutorialspoint.com/de/html/html_url_encoding.htm) dictionaryreplace all characters that are illegal in the GET Request nodeconvert SMILES to stringcreate URLparse xml response Table Reader GET Request Table Creator String Replacer(Dictionary) String Manipulation String Manipulation XPath This example URL works in the browser, but will cause the GET Request node to fail due to illegalcharacters: https://www.ebi.ac.uk/chembl/api/data/molecule/Cc1cc(-n2ncc(=O)[nH]c2=O)ccc1C(=O)c1ccccc1ClThe trick is to replace the special characters with their URL encoding (e.g as here:https://www.tutorialspoint.com/de/html/html_url_encoding.htm) dictionaryreplace all characters that are illegal in the GET Request nodeconvert SMILES to stringcreate URLparse xml responseTable Reader GET Request Table Creator String Replacer(Dictionary) String Manipulation String Manipulation XPath

Nodes

Extensions

Links