.. include:: ../../toolkit-substitutions

.. oe:namespace:: OEMolMMFF

.. meta::
   :keywords: OEIsValidMMFFMolecule

.. _OEMolMMFF_OEIsValidMMFFMolecule:

.. oe:function:: OEIsValidMMFFMolecule

   .. attention::

      |TWOLANGUAGE|

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

      .. oe:api::

         bool OEIsValidMMFFMolecule(const OEChem::OEMolBase& mol,
                                    const OEMMFFParams& param = OEMMFF94sParams(),
                                    const bool ignoreCharges = false)

   .. oe:language:: python

      .. oe:api:: python

         OEIsValidMMFFMolecule(mol: Union[OEGraphMol,OEMol,OEQMol],
                               param: OEMMFFParams = OEMolMMFF_OEMMFF94sParams(),
                               ignoreCharges: bool = False) -> bool

   This free function checks if MMFF parameters are available for the specified molecule.
   If the optional argument ``param`` is provided, check is performed against that specific
   :ref:`OEMMFFParams<OEMolMMFF_OEMMFFParams>`, otherwise the :ref:`OEMMFF94sParams<OEMolMMFF_OEMMFF94sParams>`
   is used by default.  The second optional parameter ``ignoreCharges`` allows to ignore MMFF charge
   assigment while check is performed.
