.. _oemedchem_examples_createmmpindexthreaded:

Matched Pair analysis using a multi-threaded generation of a MMP index
================================================================================

A program that performs a multi-threaded matched pair analysis of a set of structures for
indexing and saves the generated index file for subsequent loading and querying.

.. figure:: images/searchmmp.*
   :align:  center
   :width:  400pt

   **Schematic representation of the Matched Pair Analysis process**

.. seealso::

   * :ref:`OEMatchedPairAnalyzer <OEMedChem_OEMatchedPairAnalyzer>` class
   * :ref:`OEMatchedPairAnalyzerOptions <OEMedChem_OEMatchedPairAnalyzerOptions>` class
   * :oe:func:`OEMedChem::OEMatchedPairApplyTransforms` function

Command Line Interface
----------------------
.. oe:language:: c++

   .. code-block:: console

      prompt> CreateMMPIndexThreaded [ -threads num_threads ] index.sdf output.mmpidx

.. oe:language:: python

   .. code-block:: console

      prompt> CreateMMPIndexThreaded.py [ -threads num_threads ] index.sdf output.mmpidx

.. oe:language:: java

   .. code-block:: console

      prompt> CreateMMPIndexThreaded [ -threads num_threads ] index.sdf output.mmpidx

.. oe:language:: csharp

   .. code-block:: console

      prompt> CreateMMPIndexThreaded [ -threads num_threads ] index.sdf output.mmpidx

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

.. oe:language:: c++

   .. only:: oehtml

      .. admonition:: Download code

         :download:`CreateMMPIndexThreaded.cpp <../../../../sublibs/tklibs/medchem/examples/CreateMMPIndexThreaded.cpp>`

   .. only:: oepdf

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

.. oe:language:: python

   .. only:: oehtml

      .. admonition:: Download code

         :download:`CreateMMPIndexThreaded.py <../../../../wrappers/python/examples/medchem/CreateMMPIndexThreaded.py>`

   ..   literalinclude:: ../../../../wrappers/python/examples/medchem/CreateMMPIndexThreaded.py

   .. only:: oepdf

      .. oe:source:: CreateMMPIndexThreaded.py
         :language: python

.. oe:language:: java

   .. only:: oehtml

      .. admonition:: Download code

         :download:`CreateMMPIndexThreaded.java <../../../../wrappers/java/examples/openeye/examples/oemedchem/CreateMMPIndexThreaded.java>`

   .. only:: oepdf

      .. oe:source:: CreateMMPIndexThreaded.java
         :language: java

.. oe:language:: csharp

   .. only:: oehtml

      .. admonition:: Download code

         :download:`CreateMMPIndexThreaded.cs <../../../../wrappers/csharp/Csharp-Examples/OEMedChem/CreateMMPIndexThreaded.cs>`

   .. only:: oepdf

      .. oe:source:: CreateMMPIndexThreaded.cs
         :language: csharp
