.. include:: ../substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OEMMFF94PartialCharges

.. oe:function:: OEMMFF94PartialCharges

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

      .. oe:api::

         bool OEMMFF94PartialCharges(OEMolBase& mol)

   .. oe:language:: python

      .. oe:api:: python

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

   Assigns MMFF94 partial charges. Requires a prior call of :oe:func:`OEChem::OEMMFFAtomTypes`.
   Charge 0.0 is assigned to any atom missing proper MMFF94 atom type. Returns ``true`` when
   charges are successfully assigned.

   .. note::

      This function assigns silently zero charges to all atoms if MMFF94 atom types are
      not assigned to the passed molecule.

   .. hint::

      :oe:func:`OEChem::OEMMFF94PartialCharges` is a low-level function, we highly recommend
      to 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**.
