Description Usage Arguments Details Value Author(s) See Also Examples
Generates a Rcdk molecule object from SMILES code, which is fully typed and
usable (in contrast to the built-in parse.smiles
).
1 | getMolecule(smiles)
|
smiles |
The SMILES code of the compound. |
NOTE: As of today (2012-03-16), Rcdk discards stereochemistry when loading the SMILES code! Therefore, do not trust this function blindly, e.g. don't generate InChI keys from the result. It is, however, useful if you want to compute the mass (or something else) with Rcdk.
A Rcdk IAtomContainer
reference.
Michael Stravs
1 2 3 4 | # Lindane:
getMolecule("C1(C(C(C(C(C1Cl)Cl)Cl)Cl)Cl)Cl")
# Benzene:
getMolecule("C1=CC=CC=C1")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.