.. # split from OEDockingFunctions.rst:643


.. oe:namespace:: OEDocking

.. meta::
   :keywords: OEReceptorGetBoundLigand

.. oe:function:: OEReceptorGetBoundLigand

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

      .. oe:api::

         OEChem::OEGraphMol OEReceptorGetBoundLigand(const OEChem::OEMolBase& receptor)

   .. oe:language:: python

      .. oe:api:: python

         OEReceptorGetBoundLigand(rec: Union[OEGraphMol,OEMol,OEQMol]) -> OEGraphMol

   Returns a copy of the *receptor's* bound ligand.

   If the receptor does not have a bound ligand then an empty molecule will be returned

   It is only valid to call this function if *receptor* is a valid receptor 
   (i.e., :oe:func:`OEDocking::OEIsReceptor` returns true).

