OESmilesToMol

bool OESmilesToMol(OEMolBase &mol, const std::string &str)

Converts a SMILES string into a molecule. After constructing the molecule the following properties are perceived:

The molecule object is cleared before parsing so the resulting molecule object only contains atoms and bonds from the SMILES. If one wishes to add atoms and bonds to an existing molecule, one can use the lower-level OEParseSmiles function, which preserves any existing atoms and bonds in the molecule.

See also