.. _oemedchem_examples_createmmpindex:

Matched Pair analysis generation of a MMP index
================================================================================

A program that performs a 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> CreateMMPIndex index.sdf output.mmpidx

.. oe:language:: python

   .. code-block:: console

      prompt> CreateMMPIndex.py index.sdf output.mmpidx

.. oe:language:: java

   .. code-block:: console

      prompt> CreateMMPIndex index.sdf output.mmpidx

.. oe:language:: csharp

   .. code-block:: console

      prompt> CreateMMPIndex index.sdf output.mmpidx


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

.. oe:language:: c++

   .. only:: oehtml

      .. admonition:: Download code

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

   .. only:: oepdf

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

.. oe:language:: python

   .. only:: oehtml

      .. admonition:: Download code

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

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

   .. only:: oepdf

      .. oe:source:: CreateMMPIndex.py
         :language: python

.. oe:language:: java

   .. only:: oehtml

      .. admonition:: Download code

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

   .. only:: oepdf

      .. oe:source:: CreateMMPIndex.java
         :language: java

.. oe:language:: csharp

   .. only:: oehtml

      .. admonition:: Download code

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

   .. only:: oepdf

      .. oe:source:: CreateMMPIndex.cs
         :language: csharp
