.. # split from OEMedChemFunctions.rst:235


.. oe:namespace:: OEMedChem

.. meta::
   :keywords: OEGetBemisMurcko

.. oe:function:: OEGetBemisMurcko

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

      .. oe:api::

         OESystem::OEIterBase<OEChem::OEAtomBondSet>* OEGetBemisMurcko(OEChem::OEMolBase& mol,
                                                                       const OEBemisMurckoOptions& options = OEBemisMurckoOptions())

   .. oe:language:: python

      .. oe:api:: python

         OEGetBemisMurcko(mol: Union[OEGraphMol,OEMol,OEQMol],
                          options: OEBemisMurckoOptions = OEBemisMurckoOptions()) -> OEAtomBondSetIter

   .. warning::

      The following function is deprecated. Please use the more generic function above.
      
   .. oe:language:: c++ java csharp

      .. oe:api::

         OESystem::OEIterBase<OEChem::OEAtomBondSet>* OEGetBemisMurcko(OEChem::OEMolBase& mol,
                                                                       unsigned perceivetype)

   .. oe:language:: python

      .. oe:api:: python

         OEGetBemisMurcko(mol: Union[OEGraphMol,OEMol,OEQMol],
                          perceivetype: int) -> OEAtomBondSetIter

   The :oe:func:`OEMedChem::OEGetBemisMurcko` function partitions the
   given molecule into ring, linker and side chain fragments as
   defined in [Bemis-1996]_ .  It returns an iterator over
   :ref:`OEAtomBondSet <OEChem_OEAtomBondSet>` objects where each
   :ref:`OEAtomBondSet <OEChem_OEAtomBondSet>` container stores the atoms and the
   bonds of an identified region.  Each
   :ref:`OEAtomBondSet <OEChem_OEAtomBondSet>` returned is tagged with a role that
   identifies which group the set identifies.

   The :ref:`OEBemisMurckoOptions <OEMedChem_OEBemisMurckoOptions>` class can be used to
   specify both the :oe:constns:`OEMedChem::OERegionType` and also add additional
   functional groups to fragments. The `perceiveType` parameter only allows modification 
   of the :oe:constns:`OEMedChem::OERegionType` of the fragments returned.

   .. seealso::

      * :ref:`OEAtomBondSet <OEChem_OEAtomBondSet>` and :ref:`OEMolBase <OEChem_OEMolBase>` classes in the *OEChem TK* manual
      * :ref:`OERole <OESystem_OERole>` in the *OEChem TK* manual
      * :ref:`OEBemisMurckoOptions <OEMedChem_OEBemisMurckoOptions>`
      * :oe:constns:`OEMedChem::OERegionType`
      * :oe:func:`OEMedChem::OEGetRingLinkerSideChainFragments`
      * :ref:`chapter_fragmentation` chapter


