.. _oemedchem_examples_mcsfragdatabase:

MCS Similarity score reporting
================================================================================

A program that loads a previously generated MCS fragment database, then returns the highest
Maximum Common Substructure (Tanimoto) scores from the provided input query structures.

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

   **Schematic representation of the MCS fragment index and search process**

.. seealso::

   * :ref:`OEMCSFragDatabase <OEMedChem_OEMCSFragDatabase>` class
   * :ref:`OEMCSFragDatabaseOptions <OEMedChem_OEMCSFragDatabaseOptions>` class

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

   .. code-block:: console

      prompt> MCSFragDatabase -indb index.mcsfrag -query queries.sdf

.. oe:language:: python

   .. code-block:: console

      prompt> MCSFragDatabase.py -indb index.mcsfrag -query queries.sdf

.. oe:language:: java

   .. code-block:: console

      prompt> MCSFragDatabase -indb index.mcsfrag -query queries.sdf

.. oe:language:: csharp

   .. code-block:: console

      prompt> MCSFragDatabase -indb index.mcsfrag -query queries.sdf

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

.. oe:language:: c++

   .. only:: oehtml

      .. admonition:: Download code

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

   .. only:: oepdf

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

.. oe:language:: python

   .. only:: oehtml

      .. admonition:: Download code

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

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

   .. only:: oepdf

      .. oe:source:: MCSFragDatabase.py
         :language: python

.. oe:language:: java

   .. only:: oehtml

      .. admonition:: Download code

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

   .. only:: oepdf

      .. oe:source:: MCSFragDatabase.java
         :language: java

.. oe:language:: csharp

   .. only:: oehtml

      .. admonition:: Download code

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

   .. only:: oepdf

      .. oe:source:: MCSFragDatabase.cs
         :language: csharp

