.. oe:namespace:: OEChem

.. meta::
   :keywords: OEGetAminoAcidCode

.. oe:function:: OEGetAminoAcidCode

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

      .. oe:api::

         char OEGetAminoAcidCode(unsigned int idx)

   .. oe:language:: python

      .. oe:api:: python

         OEGetAminoAcidCode(idx: int) -> str

   Returns the single character amino acid code corresponding to the
   specified residue (using the :oe:constns:`OEChem::OEResidueIndex`
   namespace format). The character ``X`` is returned for the residue
   :oe:const:`OEChem::OEResidueIndex::UNK` and the NULL character (0) is
   returned for all other non-amino acid residues.

   .. seealso::

      * :oe:func:`OEChem::OEGetResidueIndexFromCode` inverse function
      * :oe:constns:`OEChem::OEResidueIndex` namespace
