.. # split from OEDockingFunctions.rst:1102


.. oe:namespace:: OEDocking

.. meta::
   :keywords: OESetEnergyScore

.. oe:function:: OESetEnergyScore

   .. oe:language:: c++ java csharp

      .. oe:api::

         bool OESetEnergyScore(OEChem::OEMolBase& pose, OEDock& dock)

   .. oe:language:: python

      .. oe:api:: python

         OESetEnergyScore(ligand: Union[OEGraphMol,OEMol,OEQMol],
                          scoreFxn: OEDock) -> bool

   Sets the energy of *pose* (:oe:meth:`OEChem::OEMolBase::GetEnergy`) to the score
   of the pose calculated with the :oe:meth:`OEDocking::OEDock::ScoreLigand`
   method of *dock*.

   .. oe:language:: c++ java csharp

      .. oe:api::

         bool OESetEnergyScore(OEChem::OEMolBase& pose, OEScore& score)

   .. oe:language:: python

      .. oe:api:: python

         OESetEnergyScore(ligand: Union[OEGraphMol,OEMol,OEQMol],
                          scoreFxn: OEScore) -> bool

   Sets the energy of *pose* (:oe:meth:`OEChem::OEMolBase::GetEnergy`) to the score
   of the pose calculated with the :oe:meth:`OEDocking::OEScore::ScoreLigand`
   method of *score*.

   .. oe:language:: c++ java csharp

      .. oe:api::

         bool OESetEnergyScore(OEChem::OEMCMolBase& poses, OEDock& dock,
                               bool sortPoses = false)

   .. oe:language:: python

      .. oe:api:: python

         OESetEnergyScore(ligand: OEMol, scoreFxn: OEDock,
                          sortPoses: bool = False) -> bool

   Sets the energy of each pose of *poses* (:oe:meth:`OEChem::OEMolBase::GetEnergy`)
   to the score of the pose calculated with the 
   :oe:meth:`OEDocking::OEDock::ScoreLigand` method of *dock*.

   If *sortPoses* is true the poses of will also be sorted by score.

   .. oe:language:: c++ java csharp

      .. oe:api::

         bool OESetEnergyScore(OEChem::OEMCMolBase& poses, OEScore& score,
                               bool sortPoses = false)

   .. oe:language:: python

      .. oe:api:: python

         OESetEnergyScore(ligand: OEMol, scoreFxn: OEScore,
                          sortPoses: bool = False) -> bool

   Sets the energy of each pose of *poses* (:oe:meth:`OEChem::OEMolBase::GetEnergy`)
   to the score of the pose calculated with the 
   :oe:meth:`OEDocking::OEScore::ScoreLigand` method of *score*.

   If *sortPoses* is true the poses will also be sorted by score.

