.. oe:namespace:: OEChem

.. oe:function:: OEGetResidueIndexFromCode

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

      .. oe:api::

         unsigned int OEGetResidueIndexFromCode(const char name)

   .. oe:language:: python

      .. oe:api:: python

         OEGetResidueIndexFromCode(name: str) -> int

   Converts the single character amino acid code into a value from
   the :oe:constns:`OEChem::OEResidueIndex` namespace.
   For invalid amino acid codes the function returns ``0``.

   .. seealso::

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