.. include:: ../substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OETriposAtomType

.. oe:function:: OETriposAtomType

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

      .. oe:api::

         unsigned int OETriposAtomType(const OEAtomBase* atm)

   .. oe:language:: python

      .. oe:api:: python

         OETriposAtomType(atm: OEAtomBase) -> int

   This function determines the Tripos Sybyl atom type for the given
   atom.  The result is an unsigned integer index taken from the
   :oe:constns:`OEChem::OETriposType` namespace.  The index zero
   corresponds to :oe:const:`OEChem::OETriposType::Du`, *i.e.* a dummy or
   unrecognized atom.  The atom, including any previously assigned
   integer atom type, is not modified by this function.

   This function prefers that aromaticity has previously been assigned
   using the Tripos model of aromaticity, see the :oe:func:`OEChem::OEAssignAromaticFlags`
   function.  However, reasonable atom types are returned when using
   other models of aromaticity.

