.. # split from OEDockingFunctions.rst:1201


.. oe:namespace:: OEDocking

.. meta::
   :keywords: OESetScore

.. oe:function:: OESetScore

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

      .. oe:api::

         bool OESetScore(OEChem::OEMolBase& pose, OEDock& dock, std::string tag)

   .. oe:language:: python

      .. oe:api:: python

         OESetScore(arg1: Union[OEGraphMol,OEMol,OEQMol], scoreFxn: OEDock,
                    tag: str) -> bool

   Assigns the score of *pose*, using the :oe:meth:`OEDocking::OEDock::ScoreLigand`
   method of *dock*, to float generic data of *pose* with the given *tag*.

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

      .. oe:api::

         bool OESetScore(OEChem::OEMolBase& pose, OEScore& score,
                         std::string tag)

   .. oe:language:: python

      .. oe:api:: python

         OESetScore(arg1: Union[OEGraphMol,OEMol,OEQMol], scoreFxn: OEScore,
                    tag: str) -> bool

   Assigns the score of *pose*, using the :oe:meth:`OEDocking::OEScore::ScoreLigand`
   method of *score*, to float generic data of *pose* with the given *tag*.

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

      .. oe:api::

         bool OESetScore(OEChem::OEMCMolBase& poses, OEDock& dock,
                         std::string tag, bool sortPoses = false)

   .. oe:language:: python

      .. oe:api:: python

         OESetScore(ligand: OEMol, scoreFxn: OEDock, tag: str,
                    sortPoses: bool = False) -> bool

   Assigns the score of each pose of *poses*, using the 
   :oe:meth:`OEDocking::OEDock::ScoreLigand` method of *dock*,
   to float generic data of the pose with the given *tag*.

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

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

      .. oe:api::

         bool OESetScore(OEChem::OEMCMolBase& poses, OEScore& score,
                         std::string tag, bool sortPoses = false)

   .. oe:language:: python

      .. oe:api:: python

         OESetScore(ligand: OEMol, scoreFxn: OEScore, tag: str,
                    sortPoses: bool = False) -> bool

   Assigns the score of each pose of *poses*, using the 
   :oe:meth:`OEDocking::OEScore::ScoreLigand` method of *score*,
   to float generic data of the pose with the given *tag*.

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

