Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/TOOLS-post_convert.R
Functionality to convert between different chemical identifier formats: InChI, InChIKey, Mol, and SMILES.
1 2 3 4 5 6 7 8 | post_convert(
input,
inputFormat,
outputFormat,
apikey,
coerce = FALSE,
simplify = FALSE
)
|
input |
A character string in the specified |
inputFormat |
A character string indicating which format the input has. Can be one of the following: |
outputFormat |
A character string indicating which type of output is desired. Can be one of the following: |
apikey |
A 32-character string with a valid key for ChemSpider's API services. |
coerce |
|
simplify |
|
"Specify the input format as a string called 'inputFormat', and the output as a string called 'outputFormat'. Allowed conversions: from InChI to InChI Key, from InChI to Mol file, from InChI to SMILES, from InChIKey to InChI, from InChI Key to Mol file, from Mol file to InChI, from Mol file to InChI Key, from SMILES to InChI."
The identifier names are NOT case sensitive!
A character string with the desired converted identifier
Raoul Wolf (https://github.com/RaoulWolf/)
https://developer.rsc.org/compounds-v1/apis/post/tools/convert
1 2 3 4 5 6 7 8 9 | ## Not run:
## Convert the InChI string of caffeine to a SMILES formula
input <- "InChI=1S/C8H10N4O2/c1-10-4-9-6-5(10)7(13)12(3)8(14)11(6)2/h4H,1-3H3"
inputFormat <- "InChI"
outputFormat <- "SMILES"
apikey <- "A valid 32-character Chemspider API key"
post_convert(input = input, inputFormat = inputFormat, outputFormat = outputFormat, apikey = apikey)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.