
.. include:: ../substitutions

.. oe:namespace:: OEBio

.. meta::
   :keywords: OEIsValidActiveSite

..  _oebio_oeisvalidactivesite:

.. oe:function:: OEIsValidActiveSite

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

      .. oe:api::

         bool OEIsValidActiveSite(const OEInteractionHintContainer& asite)

   .. oe:language:: python

      .. oe:api:: python

         OEIsValidActiveSite(asite: OEInteractionHintContainer) -> bool

   Returns true if the interaction container contains exactly two molecules.
   One typed as "ligand" (:ref:`OELigandInteractionHintComponent <OEBio_OELigandInteractionHintComponent>`), the other
   as "protein" (:ref:`OEProteinInteractionHintComponent <OEBio_OEProteinInteractionHintComponent>`).

   .. seealso::

       * :ref:`OELigandInteractionHintComponent <OEBio_OELigandInteractionHintComponent>` class
       * :ref:`OEProteinInteractionHintComponent <OEBio_OEProteinInteractionHintComponent>` class

   .. note::

      Valid active sites can be depicted with the **Grapheme TK**

      .. seealso::

         * :oe:func:`OEDocking::OEAddDockingInteractions` function in the **OEDocking TK** manual
         * :oe:func:`OEGrapheme::OEPrepareActiveSiteDepiction` and
           :oe:func:`OEGrapheme::OERenderActiveSite` functions in the **Grapheme TK** manual
