.. _chapter_pka_search:
.. include:: ../substitutions
.. include:: ../../apps-substitutions

================
Search Buttons
================

There are a total of five search options.

.. figure:: ../images/buttons.png
   :scale: 75
   :align: center
   :alt: Search Buttons
   
   **Search Buttons**

Analog Search
-------------

.. index:: Analog Search

This is the default search, which is performed whenever a new molecule is loaded into the application.
It attempts to find the best model compounds in the database by exhaustively searching in a chemically 
aware manner. Firstly if there is an exact match in the database the measurements associated with 
that molecule are reported first. Then the application performs a rooted maximum common
subgraph search beginning at each ionizable region, and applies a positive score for matches and a penalty 
for substitutions, graded based upon the electronic commutative distance to the ionizable atom. The sum 
of these scores for each ionizable region match determines the overall rank of the molecule and its measurements. 
Only molecules with measurements that pass the property filters will be reported back. If you do not wish this
search to be performed every time you load a new molecule simply turn that option off in the preferences.

Exact Search
------------

.. index:: Exact Search

This search attempts to find an exact match in the database, and reports back only those measurements which 
pass the property filters.

Property Search
---------------

.. index:: Property Search

.. _figure_Propery:

.. figure:: ../images/propertysearch.png
   :scale: 25
   :align: center
   :alt: Property Search
   
   **Property Search**

This search ignores any query molecule information and simply reports back those 
molecules which pass the property
filters. The query molecule depiction is deemphasized, and the results view does not
have a query molecule in the first row. :ref:`Figure: Property Search<figure_Propery>`

Substructure Search
-------------------
.. index:: Substructure Search

.. _figure_lasso_sub:

.. figure:: ../images/lasso.png
   :scale: 50
   :align: center
   :alt: Lasso a Substructure
   
   **Lasso a Substructure**

This search will look for molecules that have a common substructure with the query molecule. A subset of the 
query molecule can be used by lassoing with the mouse. :ref:`Figure: Lasso a Substructure<figure_lasso_sub>` 
Again only molecules with measurements that pass the property filter will be reported.

.. _figure_subsearch2:

.. figure:: ../images/subsearch.png
   :scale: 50
   :align: center
   :alt: Sub Structure Search
   
   **Substructure Search**

Similarity Search
-----------------

.. index:: Similarity Search

This search will perform a circular fingerprint search which is generated by exhaustively enumerating all circular fragments grown radially from each heavy atom of the molecule up to a given radius and then hashing these fragments into a fixed-length bit vector. Only measurements which pass both the property filter and are above the Tanimoto cutoff 
value will be reported.
