Description Usage Arguments Value Author(s) See Also Examples
View source: R/ChemicalCuration.R
This basic function using string manipulation to extract a formula from the front of an InChI string, returning the second field (the formula). Note: this does NOT account for labeling, i.e. it is the formula associated with the structural skeleton (the InChIKey first block).
1 | MolFormFromInChI(InChI)
|
InChI |
InChI string to extract the formula. |
Returns the molecular formula as is in the InChI string.
Emma Schymanski <emma.schymanski@uni.lu>
1 2 | inchi <- "InChI=1S/C2H4O2/c1-2(3)4/h1H3,(H,3,4)"
MolFormFromInChI(inchi)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.