.. include:: ../substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OEAtomSetResidue

.. oe:function:: OEAtomSetResidue

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

      .. oe:api::

         bool OEAtomSetResidue(OEAtomBase* atm, const OEResidue& res)

   .. oe:language:: python

      .. oe:api:: python

         OEAtomSetResidue(atm: OEAtomBase, res: OEResidue) -> bool


   This function is used to set the :ref:`OEResidue <OEChem_OEResidue>` associated
   with an :ref:`OEAtomBase <OEChem_OEAtomBase>`.  The :ref:`OEResidue <OEChem_OEResidue>`
   class is used to store information used in biopolymer processing,
   *e.g.* proteins and nucleic acids, on a per-atom basis.

   .. seealso::

      * :ref:`OEResidue <OEChem_OEResidue>` class
      * :oe:func:`OEChem::OEHasResidue` function
      * :oe:func:`OEChem::OEAtomGetResidue` function
