.. # split from OEDockingFunctions.rst:1351


.. oe:namespace:: OEDocking

.. meta::
   :keywords: OESetScoreComponent

.. oe:function:: OESetScoreComponent

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

      .. oe:api::

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

   .. oe:language:: python

      .. oe:api:: python

         OESetScoreComponent(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* float generic data (with tag *tag*) on *pose*.

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

      .. oe:api::

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

   .. oe:language:: python

      .. oe:api:: python

         OESetScoreComponent(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* float generic data (with tag *tag*) on *pose*.

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

      .. oe:api::

         bool OESetScoreComponent(OEChem::OEMCMolBase& pose, OEDock& dock,
                                  std::string component, std::string tag,
                                  bool sortPoses = false)

   .. oe:language:: python

      .. oe:api:: python

         OESetScoreComponent(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
   float generic data (with tag *tag*) on the pose.

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

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

      .. oe:api::

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

   .. oe:language:: python

      .. oe:api:: python

         OESetScoreComponent(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
   float generic data (with tag *tag*) on the pose.

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

