.. oe:namespace:: OEIUPAC

.. meta::
   :keywords: OEGetCIPStereo

.. oe:function:: OEGetCIPStereo

   .. oe:language:: c++ java csharp

      .. oe:api::

         char OEGetCIPStereo(const OEChem::OEMolBase& mol,
                             const OEChem::OEAtomBase* atm)
         char OEGetCIPStereo(const OEChem::OEMolBase& mol,
                             const OEChem::OEBondBase* bnd)

   .. oe:language:: python

      .. oe:api:: python

         OEGetCIPStereo(mol: Union[OEGraphMol,OEMol,OEQMol], atm: OEAtomBase) -> str
         OEGetCIPStereo(mol: Union[OEGraphMol,OEMol,OEQMol], bnd: OEBondBase) -> str

   These functions return the Cahn-Ingold-Prelog descriptor for the given
   atom or bond stereo center, from the stereochemistry set on the
   :ref:`OEMolBase <OEChem_OEMolBase>`. For chiral atom centers,
   the :ref:`OEAtomBase <OEChem_OEAtomBase>` form of this function returns
   either 'R' or 'S' for specified CIP stereo centers,
   'N' for CIP stereo centers that don't have stereo specified
   (*i.e.* :oe:meth:`OEChem::OEAtomBase::HasStereoSpecified`
   returns ``false``), and 'X' for atoms that are not CIP stereo centers.
   For double bonds, the :ref:`OEBondBase <OEChem_OEBondBase>` form
   of this function returns either 'E' or 'Z' specified CIP stereo
   centers, 'N' for CIP stereo centers that don't have stereo specified
   (*i.e.* :oe:meth:`OEChem::OEBondBase::HasStereoSpecified`
   returns ``false``), and 'X' for bonds that are not CIP stereo centers.
