.. oe:namespace:: OEChem

.. meta::
   :keywords: OEGetNucleicAcidCode

.. oe:function:: OEGetNucleicAcidCode

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

      .. oe:api::

         char OEGetNucleicAcidCode(unsigned int idx)

   .. oe:language:: python

      .. oe:api:: python

         OEGetNucleicAcidCode(idx: int) -> str

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

   .. seealso::

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