﻿.. _fred_theory:
.. include:: ../substitutions
.. include:: ../../apps-substitutions

..  program:: fred

*************************
FRED Theory
*************************

:ref:`chapter_fred` docks multiconformer molecules into a single 
:ref:`receptor<receptor_theory>` using an exhaustive search that systematically
searches rotations and translations of each conformer of the ligand within the
active site.  Following the exhaustive search the top scoring poses are
optimized and assigned a final score.  These two steps are described in more
detail below

*Exhaustive Search*

  #. Enumerates, to given resolution, every possible rotation and translation
     of each conformer of the ligand being docked within a box enclosing the
     active site. The resolution of the exhaustive search is determined by
     the overall resolution setting of :option:`fred -dock_resolution` flag.

  #. Discard poses that either clash with the protein or extend too far
     from the binding site using the receptor's negative image outer contour
     (see :ref:`receptor_theory_negative_image` section).  

  #. If the negative image inner contour is enabled discard any poses that
     do not have at least one heavy atom that falls within the inner contour.
     (see :ref:`receptor_theory_negative_image` section).  

  #. Discard any poses that do no match any user specified constraints.
     (see :ref:`receptor_theory_constraints` section).

  #. Score all remaining poses using :ref:`theory_algorithm_chemgauss3`.

  #. Sort poses by score and pass the top scoring poses to optimization.

*Optimization*

  #. Enumerate nearby positions of each pose by having the initial pose
     take one positive and one negative step for each translational and
     rotational degree of freedom (729 poses total).  The resolution of
     these steps is half that of the exhaustive search, and is determined
     by the setting of the :option:`-dock_resolution` flag.

  #. Each pose is scored with :ref:`theory_algorithm_chemgauss4`.

  #. The best scoring poses are retained.  The number of poses retained is
     determined by the setting of the :option:`-num_poses` parameter.

  #. The overall score of the molecule, used to rank the molecule against
     other molecules in the docking database, is set to the best scoring
     pose's score.




   
