.. include:: ../substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OEMMFFAtomTypes

.. oe:function:: OEMMFFAtomTypes

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

      .. oe:api::

         bool OEMMFFAtomTypes(OEMolBase& mol)

   .. oe:language:: python

      .. oe:api:: python

         OEMMFFAtomTypes(mol: Union[OEGraphMol,OEMol,OEQMol]) -> bool

   Assigns MMFF94 integer atom type to atoms in passed molecule. Returns ``true`` when
   all atom types are successfully assigned.

   The correct atom typing requires the following conditions:

   * The molecule has to have explicit hydrogens.
   * The molecule has to have (:oe:const:`MMFF<OEChem::OEAroModel::MMFF>`) aromaticity model.

   .. hint::

      We highly recommend assigning MMFF partial charges to a molecule by calling the
      :oe:func:`OEProton::OEAssignCharges` function with the
      :ref:`OEMMFF94Charges <OEProton_OEMMFF94Charges>` class of the **Quacpac TK**.
