Description Usage Arguments Value Author(s) See Also Examples
View source: R/ChemicalCuration.R
A small wrapper function to convert SMILES to an InChIKey with OpenBabel
(http://openbabel.org/wiki/Main_Page). Requires pre-installation of
OpenBabel. If this is not the case, use webservices instead via
getSuspectInChIKey
. Note this creates "temp_smiles.smi"
in the temp_dir
directory and will overwrite any previous file of the same name.
This function uses Babel default InChI options; standard InChIKeys will be generated.
This is superceded by getInChIKey.obabel
.
1 | getSuspectInChIKey.babel(smiles,babel_dir,temp_dir)
|
smiles |
Valid SMILES code used to convert to the InChIKey. |
babel_dir |
Location of folder containing |
temp_dir |
Location of folder to save |
Returns the InChIKey retrieved, or alternative output from Babel. Run
InChIKey_test
to determine if valid.
Emma Schymanski <emma.schymanski@uni.lu>
getSuspectInChIKey
, getInChIKey.obabel
, InChIKey_test
.
1 2 3 4 | getSuspectInChIKey.babel("c1ccccc1", "C:/Program Files (x86)/OpenBabel-2.3.2", "C:/DATA")
Various failed conversions:
getSuspectInChIKey.babel("blah", "C:/Program Files (x86)/OpenBabel-2.3.2", "C:/DATA")
getSuspectInChIKey.babel("", "C:/Program Files (x86)/OpenBabel-2.3.2", "C:/DATA")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.