.. _chapter_oemodelsexamples:

********************************************************************************
OEModels Examples
********************************************************************************

The following table lists the currently available **OEModels** examples:

.. oe:language:: c++

   .. list-table::
      :widths: 100 100
      :header-rows: 1

      * - Program
        - Description

      * - :ref:`docking<section_examples_rocs_query_model>`
        - Building ROCS Query Model

.. oe:language:: python

   .. list-table::
      :widths: 100 100
      :header-rows: 1

      * - Program
        - Description

      * - :ref:`docking<section_examples_rocs_query_model>`
        - Building ROCS Query Model

.. _section_examples_rocs_query_model:

Building ROCS Query Model
--------------------------------------------------------------------------------

The following code example shows how to create a ROCS query
model from a set of known ligands in their binding modes. The
input ligands should be prepared by aligning the protein crystal 
structures.

.. seealso::

   * :ref:`OEROCSQueryModelBuilder <OEModels_OEROCSQueryModelBuilder>` class

.. oe:source:: RocsQueryModelBuilder.cpp
   :language: c++
   :caption:  Building ROCS Query Model
   :refnum:   1

.. oe:language:: c++

   .. only:: oehtml

      .. admonition:: Download code

         :download:`RocsQueryModelBuilder.cpp <../../../../sublibs/tklibs/docking/examples/RocsQueryModelBuilder.cpp>`

.. oe:source:: RocsQueryModelBuilder.py
   :language: python
   :caption:  Building ROCS Query Model
   :refnum:   1

.. oe:language:: python

   .. only:: oehtml

      .. admonition:: Download code

         :download:`RocsQueryModelBuilder.py <../../../../wrappers/python/examples/docking/RocsQueryModelBuilder.py>`

