.. # split from OEDockingFunctions.rst:1295


.. oe:namespace:: OEDocking

.. meta::
   :keywords: OESetSDScoreComponent

.. oe:function:: OESetSDScoreComponent

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

      .. oe:api::

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

   .. oe:language:: python

      .. oe:api:: python

         OESetSDScoreComponent(ligand: Union[OEGraphMol,OEMol,OEQMol],
                               scoreFxn: OEDock, component: str, tag: str) -> bool

   Assigns the *component* of *pose's* score,
   calculated with *dock's* 
   :oe:meth:`OEDocking::OEDock::ScoreLigandComponent` method, to
   *pose's* SD data (with tag *sdtag*).

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

      .. oe:api::

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

   .. oe:language:: python

      .. oe:api:: python

         OESetSDScoreComponent(ligand: Union[OEGraphMol,OEMol,OEQMol],
                               scoreFxn: OEScore, component: str, tag: str) -> bool

   Assigns the *component* of *pose's* score,
   calculated with *score's* 
   :oe:meth:`OEDocking::OEScore::ScoreLigandComponent` method, to
   *pose's* SD data (with tag *sdtag*).

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

      .. oe:api::

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

   .. oe:language:: python

      .. oe:api:: python

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

   Assigns the *component* of the score of each pose of *poses*,
   calculated with *dock's* 
   :oe:meth:`OEDocking::OEDock::ScoreLigandComponent` method, to
   SD data (with tag *sdtag*) on the pose.

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

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

      .. oe:api::

         bool OESetSDScoreComponent(OEChem::OEMCMolBase& ligand,
                                    OEDock& scoreFxn, std::string component,
                                    std::string tag, bool sortPoses = false)

   .. oe:language:: python

      .. oe:api:: python

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

   Assigns the *component* of the score of each pose of *poses*,
   calculated with *score's* 
   :oe:meth:`OEDocking::OEScore::ScoreLigandComponent` method, to
   SD data (with tag *sdtag*) on the pose.

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

