Note
The aromaticity (see Aromaticity Perception chapter) has to be perceived by calling
the OEAssignAromaticFlags function prior to calling
OEPerceiveCIPStereo.
OEPerceiveCIPStereo¶
unsigned int OEPerceiveCIPStereo(const OEMolBase& mol, const OEAtomBase* atom);
Perceives the Cahn-Ingold-Prelog descriptor for the given atom.
The return value is taken from the OECIPAtomStereo namespace.
For a chiral atom center the function returns
either
OECIPAtomStereo::RorOECIPAtomStereo::S, if the atom has specified stereochemistryOECIPAtomStereo::UnspecStereoif the CIP atom stereo center has no specified stereo (i.e. whenOEAtomBase::HasStereoSpecifiedreturns false),
The function always returns OECIPAtomStereo::NotStereo for the following atoms:
non-chiral atoms
atoms that have invalid valence (checked by
OECheckAtomValence)
See also
OESetCIPStereoto set atom stereo from CIP stereo descriptorCIP Stereo Perception section
unsigned int OEPerceiveCIPStereo(const OEMolBase& mol, const OEBondBase* bond);
Perceives the Cahn-Ingold-Prelog descriptor for the given bond stereo center.
The return value is taken from the OECIPBondStereo namespace.
For a double bond, the function returns
either
OECIPBondStereo::EorOECIPBondStereo::Z, if the bond has specified stereochemistryOECIPBondStereo::UnspecStereoif the CIP bond stereo center has no specified stereo (i.e. whenOEBondBase::HasStereoSpecifiedreturns false)
For a non-chiral bond, the function always returns OECIPBondStereo::NotStereo.
See also
OESetCIPStereoto set bond stereo from CIP stereo descriptorCIP Stereo Perception section