OEMolToCXSMILES¶
std::string OEMolToCXSMILES(const OEMolBase &mol)
Creates a CXSMILES from a molecule
by evoking the low-level OECreateSmiString
function with the OESMILESFlag::ISOMERIC
and OESMILESFlag::EnhStereo
options.
Prior to generating the CXSMILES the following properties are perceived if necessary:
The rings of the molecule are perceived by calling the
OEFindRingAtomsAndBonds
functionThe aromaticity is assigned by calling the
OEAssignAromaticFlags
function using theOEChem::OEAroModelOpenEye
aromaticity model.In case of a 3D molecule, the stereochemistry of the atoms and the bonds are set by calling the
OE3DToAtomStereo
and theOE3DToBondStereo
functions, respectively.
See also
OECXSMILESToMol
functionOESmilesToMol
functionUnique Representation section