Skip to content

Convert CAS to SMILES #333

@pstahlhofen

Description

@pstahlhofen

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

  1. 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"
  2. 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 method cs_convert refused to accept the argument from="CAS", yielding Error 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 the cs_convert method to perform this conversion as well.
  3. 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?
  4. I tried the ci_query function to retrieve the SMILES code, which ran into Service not available. Returning NA

Any help is very appreciated

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions