.. _section_example_oebio_printinteractions:

Perceive and Print Protein-Ligand Interactions
================================================================================

The program that perceives protein-ligand interactions and prints them out.

An example command would be:

.. oe:language:: c++

   .. code-block:: console

      prompt> printinteractions complex.pdb

.. oe:language:: python

   .. code-block:: console

      prompt> printinteractions.py complex.pdb

.. oe:language:: java

   .. code-block:: console

      prompt> PrintInteractions complex.pdb

.. oe:language:: csharp

   .. code-block:: console

      prompt> PrintInteractions complex.pdb

Code
--------------------------------------------------------------------------------

.. oe:language:: c++

   .. only:: oehtml

      .. admonition:: Download code

         :download:`printinteractions.cpp <../../../../../sublibs/tklibs/bio/examples/printinteractions.cpp>`

   .. only:: oepdf

      .. oe:source:: printinteractions.cpp
         :language: c++

.. oe:language:: python

   .. only:: oehtml

      .. admonition:: Download code

         :download:`printinteractions.py <../../../../../wrappers/python/examples/bio/printinteractions.py>`

      ..    literalinclude:: ../../../../../wrappers/python/examples/bio/printinteractions.py

   .. only:: oepdf

      .. oe:source:: printinteractions.py
         :language: python


.. oe:language:: java

   .. only:: oehtml

      .. admonition:: Download code

         :download:`PrintInteractions.java <../../../../../wrappers/java/examples/openeye/examples/oebio/PrintInteractions.java>`

   .. only:: oepdf

      .. oe:source:: PrintInteractions.java
         :language: java

.. oe:language:: csharp

   .. only:: oehtml

      .. admonition:: Download code

         :download:`PrintInteractions.cs <../../../../../wrappers/csharp/Csharp-Examples/OEBio/PrintInteractions.cs>`

   .. only:: oepdf

      .. oe:source:: PrintInteractions.cs
         :language: csharp


.. seealso::

   * :oe:func:`OEBio::OESplitMolComplex` function
   * :ref:`OEInteractionHintContainer <OEBio_OEInteractionHintContainer>` class
   * :oe:func:`OEBio::OEGetActiveSiteInteractionHintTypes` function
   * :ref:`OEInteractionHint <OEBio_OEInteractionHint>` and
     :ref:`OEInteractionHintFragment <OEBio_OEInteractionHintFragment>` classes
   * :oe:func:`OEBio::OEIsValidActiveSite` function
   * :oe:func:`OEBio::OEPerceiveInteractionHints` function
   * :oe:func:`OEBio::OEGetResidues` function
   * :ref:`OELigandInteractionHintComponent <OEBio_OELigandInteractionHintComponent>` and
     :ref:`OEProteinInteractionHintComponent <OEBio_OEProteinInteractionHintComponent>` classes
   * :ref:`OEHasResidueInteractionHint <OEBio_OEHasResidueInteractionHint>` and
     :ref:`OEHasInteractionHint <OEBio_OEHasInteractionHint>` predicate classes
