.. # split from OEBioFunctions.rst:703

.. include:: ../substitutions

.. oe:namespace:: OEBio

.. meta::
   :keywords: OESetupSplitMolComplexOptions

.. oe:function:: OESetupSplitMolComplexOptions

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

      .. oe:api::

         bool OESetupSplitMolComplexOptions(OESplitMolComplexOptions& opts,
                                            const OESystem::OEInterface& itf,
                                            unsigned siteOverride = OESplitMolComplexParam::DoNotOverride,
                                            unsigned modelOverride = OESplitMolComplexParam::DoNotOverride)

   .. oe:language:: python

      .. oe:api:: python

         OESetupSplitMolComplexOptions(opts: OESplitMolComplexOptions,
                                       itf: OEInterface, siteOverride: int,
                                       modelOverride: int) -> bool

   Initializes an :ref:`OESplitMolComplexOptions <OEBio_OESplitMolComplexOptions>`
   object from the parameters of a given
   :oe:cls:`interface<OESystem::OEInterface>`.

   The parameters ``siteOverride`` and ``modelOverride`` can be used to
   :oe:meth:`ResetFilters<OEBio::OESplitMolComplexOptions::ResetFilters>`
   with values other than that from the interface object. For example, by setting
   ``siteOverride`` to ``0``, filters will be set up to select for *all* sites
   regardless what was specified on the command line and then stored in the interface.
   These parameters are convenient when iterating over sites and/or models
   in a system. By default, these parameters will *not* override the interface object.

   .. seealso::

      * :ref:`section_split_mol_complex` section
      * :ref:`OEInterface <OESystem_OEInterface>` class
      * :oe:meth:`OEBio::OESplitMolComplexOptions::ResetFilters` method
      * :oe:constns:`OEBio::OESplitMolComplexParam` namespace
