.. # split from OEDockingFunctions.rst:1146


.. oe:namespace:: OEDocking

.. meta::
   :keywords: OESetSDScore

.. oe:function:: OESetSDScore

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

      .. oe:api::

         bool OESetSDScore(OEChem::OEMolBase& pose, OEDock& dock,
                           std::string sdtag)

   .. oe:language:: python

      .. oe:api:: python

         OESetSDScore(ligand: 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 SD data of *pose* with the given *sdtag*.

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

      .. oe:api::

         bool OESetSDScore(OEChem::OEMolBase& pose, OEPosit& poser,
                           std::string sdtag)

   .. oe:language:: python

      .. oe:api:: python

         OESetSDScore(ligand: Union[OEGraphMol,OEMol,OEQMol],
                      scoreFxn: OEPosit, tag: str) -> bool
         OESetSDScore(ligand: Union[OEGraphMol,OEMol,OEQMol], scoreFxn: OEPosit) -> bool

   Assigns the score of *pose*, using the :oe:meth:`OEDocking::OEPosit::ScoreLigand`
   method of *poser*, to SD data of *pose* with the given *sdtag*.

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

      .. oe:api::

         bool OESetSDScore(OEChem::OEMolBase& pose, OEScore& score,
                           std::string sdtag)

   .. oe:language:: python

      .. oe:api:: python

         OESetSDScore(ligand: 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 SD data of *pose* with the given *sdtag*.

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

      .. oe:api::

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

   .. oe:language:: python

      .. oe:api:: python

         OESetSDScore(ligand: OEMol, scoreFxn: OEDock, tag: str,
                      sortPoses: bool = False) -> bool
         OESetSDScore(ligand: OEMol, scoreFxn: OEPosit, 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 SD data of the pose with the given *sdtag*.

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

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

      .. oe:api::

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

   .. oe:language:: python

      .. oe:api:: python

         OESetSDScore(ligand: OEMol, scoreFxn: OEScore, tag: str,
                      sortPoses: bool = False) -> bool
         OESetSDScore(ligand: OEMol, scoreFxn: OEPosit, 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 SD data of the pose with the given *sdtag*.

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

