-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert CAS to SMILES #333
Comments
Hi @pstahlhofen, thanks for raising this issue.
You can also use pubchem to get smiles from cas. Again for ethanol, Let me know if these answer your question. Also I'll keep this issue open until |
Hi @stitam, thanks for the quick answer!
|
It looks like CTS is down completely right now. Looks like someone has already opened an issue: https://bitbucket.org/fiehnlab/ctsproxy/issues/38/error-500 Looks like they haven't closed any issues in quite some time. |
Related? #257 |
Yes, I think so |
To clarify, if I remember correctly CTS has had a lot of issues in the past, probably because of all the API dependencies it has, and it might be worthwhile contacting someone at the Fiehn Lab to get an idea of their long-term goals for the project before putting any effort into changing/fixing |
Thanks @Aariq, that is correct, CTS REST API is not yet implemented in webchem. I contacted them last time the service was down, I'll contact them again, ask about their long-term goals and then we can decide.. |
Hi All, Update on this issue: the service is back online, but queries are still not working as they used to. This one works: webchem::cts_convert("3380-34-5", "cas", "inchikey")
#> $`3380-34-5`
#> [1] "XEFQLINVKFYRCS-UHFFFAOYSA-N" "ZRWRPGGXCSSBAO-UHFFFAOYSA-N" Created on 2021-11-25 by the reprex package (v2.0.1) This one doesn't: webchem::cts_convert("triclosan", "chemical name", "inchikey")
#> $triclosan
#> [1] NA Created on 2021-11-25 by the reprex package (v2.0.1) |
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
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"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.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?ci_query
function to retrieve the SMILES code, which ran intoService not available. Returning NA
Any help is very appreciated
The text was updated successfully, but these errors were encountered: