Conversation
Co-authored-by: hechth <12066490+hechth@users.noreply.github.com>
|
@copilot use CHEBI:60888 for the testing entity - the results can be found here: https://www.ebi.ac.uk/chebi/CHEBI:60888 |
Co-authored-by: hechth <12066490+hechth@users.noreply.github.com>
Updated the test entity to |
|
@copilot I think your API url is wrong - the query to search for the chebi ID is https://www.ebi.ac.uk/chebi/backend/api/public/compound/CHEBI:60888/ also add a test for the name search function using the name "bapta" as can be seen in this url: https://www.ebi.ac.uk/chebi/backend/api/public/es_search/?term=bapta&page=1&size=15 |
Co-authored-by: hechth <12066490+hechth@users.noreply.github.com>
Fixed in the latest commit. The endpoints are now:
Also added |
Co-authored-by: hechth <12066490+hechth@users.noreply.github.com>
Co-authored-by: hechth <12066490+hechth@users.noreply.github.com>
Co-authored-by: hechth <12066490+hechth@users.noreply.github.com>
…ata for CHEBI:60888 Co-authored-by: hechth <12066490+hechth@users.noreply.github.com>
Co-authored-by: hechth <12066490+hechth@users.noreply.github.com>
|
@copilot add "InChI=1S/C22H24N2O10/c25-19(26)11-23(12-20(27)28)15-5-1-3-7-17(15)33-9-10-34-18-8-4-2-6-16(18)24(13-21(29)30)14-22(31)32/h1-8H,9-14H2,(H,25,26)(H,27,28)(H,29,30)(H,31,32)" as inchi for the tests and also add Iupac name "2,2',2'',2'''-[ethane-1,2-diylbis(oxy-2,1-phenylenenitrilo)]tetraacetic acid" - also the iupac name should be usable as input and output if that is allowed by the api |
…ter and tests Co-authored-by: hechth <12066490+hechth@users.noreply.github.com>
Done. Added in the latest commit:
|
Adds a new
ChEBIconverter backed by the ChEBI REST API, exposing chemical entity lookups and cross-identifier conversions.Changes
MSMetaEnhancer/libs/converters/web/ChEBI.py/search?query=...&searchCategory={CHEBI_NAME|INCHI_KEY|INCHI|SMILES}&maximumResults=10&stars=ALL/chemicalentity/{chebiId}chebiid,compound_name,inchikey,inchi,smiles,formulacreate_top_level_conversion_methods, consistent with existing convertersMSMetaEnhancer/libs/converters/web/__init__.pyChEBIadded to__all__and imported alongside existing converterstests/test_ChEBI.pychebiid↔inchikey, etc.), raw response format validation, andget_conversion_functions()outputExample usage: