.. # split from OEBioFunctions.rst:531

.. include:: ../substitutions

.. oe:namespace:: OEBio

.. meta::
   :keywords: OEMolComplexRoleFactory

.. oe:function:: OEMolComplexRoleFactory

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

      .. oe:api::

         OESystem::OERole OEMolComplexRoleFactory(unsigned category)

   .. oe:language:: python

      .. oe:api:: python

         OEMolComplexRoleFactory(category: int) -> OERole

   Returns a :ref:`OERole <OESystem_OERole>` object corresponding to
   the specified functional role filter category from the
   :oe:constns:`OEBio::OEMolComplexFilterCategory` namespace.

   .. seealso::

      * :ref:`section_split_mol_complex` section
      * :oe:constns:`OEBio::OEMolComplexFilterCategory` namespace
      * :ref:`OERole <OESystem_OERole>` class
      * :oe:func:`OEBio::OERoleMolComplexFilterFactory` function


