-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Description
Dear webchem developers,
I am aware that converting CAS to SMILES is usually not that complicated. However, under the current circumstances I've spended quite some time on this problem without success so far, so I thought you might be able to help me out.
What I have tried
- Converting CAS to SMILES using the
cts_convert
function. This didn't return a result for any CAS I tried, so I visited the CTS Proxy showing me "Error 500 When calling /rest/to values" - Converting CAS to SMILES using ChemSpider i.e. the
cs_convert
function. At this ChemSpider Web Page I was able to turn a single CAS number into a molecule description including a SMILES code. I signed in to ChemSpider and created an API key to automate the process for multiple CAS numbers. However, the methodcs_convert
refused to accept the argumentfrom="CAS"
, yieldingError in match.arg(from, choices=valid) : 'arg' should be one of "csid", "inchikey", "inchi", "smiles", "mol"
. If ChemSpider generally supports conversion of CAS registry numbers, it would be a nice feature to extend thecs_convert
method to perform this conversion as well. - I was able to convert CAS to SMILES using CACTUS, but I couldn't find support for this API in
webchem
(or any other R package) and I would rather not rely on shell scripts as they are brittle and highly platform dependent. Did I probably overlook some existing support for CACTUS? - I tried the
ci_query
function to retrieve the SMILES code, which ran intoService not available. Returning NA
Any help is very appreciated
Metadata
Metadata
Assignees
Labels
No labels