Description Usage Arguments Value Author(s) See Also Examples
View source: R/ChemicalCuration.R
A small wrapper function to retrieve an InChIKey with webservices. Cactus
(https://cactus.nci.nih.gov/chemical/structure) is used to obtain a Key
from SMILES; if this fails the Chemical Translation Service (CTS,
http://cts.fiehnlab.ucdavis.edu/ is queried by name.
Future extensions possible. If SMILES is available and Open Babel is installed,
use getSuspectInChIKey.babel
instead.
1 | getSuspectInChIKey(smiles,name)
|
smiles |
Valid SMILES code used to retrieve the InChIKey. |
name |
Chemical name used to query CTS. Strange names will likely fail. |
Returns the InChIKey retrieved, or NA
.
Emma Schymanski <emma.schymanski@uni.lu>
1 | getSuspectInChIKey("c1ccccc1", "benzene")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.