:orphan:

.. _section_example_fastrocs_besttverskyshapeoverlay:

Best Tversky Shape Overlay
==============================

Return the database for each query sorted by their rank in that
search. Attaches the shape Tversky as SD data.  Demonstrates a 
simple usage of the OEShapeDatabase including keeping a
parallel list of compressed in-memory molecules to be used as output.

.. note::
   The OEShapeDatabase does not store molecular information, only
   coordinate information from each conformer. If the original molecule
   is required for output it is the responsibility of the programmer to
   maintain the relationship of the OEShapeDatabase indices to
   the molecule. The reason for this design decision is to not force an
   additional memory overhead for an already memory intensive
   OEShapeDatabase object.

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

.. oe:language:: c++

   .. code-block:: console

      prompt> besttverskyshapeoverlay <database> [<queries> ... ]

   .. only:: oehtml

      .. admonition:: Download code

         :download:`besttverskyshapeoverlay.cpp <../../../../../sublibs/tklibs/fastrocs/examples/besttverskyshapeoverlay.cpp>`

   .. only:: oepdf

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

.. oe:language:: python

   .. code-block:: console

      prompt> BestTverskyShapeOverlay.py <database> [<queries> ... ]
   
   .. only:: oehtml

      .. admonition:: Download code

         :download:`BestTverskyShapeOverlay.py <../../../../../wrappers/python/examples/fastrocs/BestTverskyShapeOverlay.py>`

      .. :ref:`Full listing. <listing-BestTverskyShapeOverlay.py>`

      .. literalinclude:: ../../../../../wrappers/python/examples/fastrocs/BestTverskyShapeOverlay.py



   .. only:: oepdf

      .. oe:source:: BestTverskyShapeOverlay.py
         :language: python

.. oe:language:: java

   .. code-block:: console

      prompt> BestTverskyShapeOverlay <database> [<queries> ... ]
   
   .. only:: oehtml

      .. admonition:: Download code

         :download:`BestTverskyShapeOverlay.java <../../../../../wrappers/java/examples/openeye/examples/oefastrocs/BestTverskyShapeOverlay.java>`

   .. only:: oepdf

      .. oe:source:: BestTverskyShapeOverlay.java
         :language: java

