.. include:: ../substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OEUpdateMMCIFData

.. oe:function:: OEUpdateMMCIFData

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

      .. oe:api::

         bool OEUpdateMMCIFData(OEMolBase& mol, const OECIFOptions& opts)

   .. oe:language:: python

      .. oe:api:: python

         OEUpdateMMCIFData(mol: Union[OEGraphMol,OEMol,OEQMol],
                           opts: OECIFOptions) -> bool

   Updates MMCIF header metadata based on the structural data of the input molecule.
   If metadata already exists, it is replaced with the updated header.

   .. seealso::

      * :oe:func:`OEChem::OEAddMMCIFData` function to add MMCIF data
      * :oe:func:`OEChem::OESetMMCIFData` function to set MMCIF data
      * :ref:`section_moldata_MMCIF` section
