.. # split from OEPBFunctions.rst:50

.. include:: ../substitutions

.. oe:namespace:: OEPB

.. meta::
   :keywords: OEZapBind

.. oe:function:: OEZapBind

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

      .. oe:api::

         bool OEZapBind(const OEChem::OEMolBase& protein,
                        const OEChem::OEMolBase& ligand, OEBindResults& results)
         bool OEZapBind(const OEChem::OEMolBase& protein,
                        const OEChem::OEMolBase& ligand,
                        OESimpleBindResults& results)

   .. oe:language:: python

      .. oe:api:: python

         OEZapBind(protein: Union[OEGraphMol,OEMol,OEQMol],
                   ligand: Union[OEGraphMol,OEMol,OEQMol],
                   results: OESimpleBindResults) -> bool
         OEZapBind(protein: Union[OEGraphMol,OEMol,OEQMol],
                   ligand: Union[OEGraphMol,OEMol,OEQMol],
                   results: OEBindResults) -> bool

   Convenience functions for obtaining :ref:`OEBindResults <OEPB_OEBindResults>` or
   :ref:`OESimpleBindResults <OEPB_OESimpleBindResults>` of a ``ligand`` and ``protein``.
   Both ``protein`` and ``ligand`` must have 3D coordinates, partial
   charges, and VDW radii assigned.

