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

.. oe:namespace:: OEMedChem

.. meta::
   :keywords: OEApplyChEMBL18SolubilityTransforms ApplyChEMBL18SolubilityTransforms

.. oe:function:: OEApplyChEMBL18SolubilityTransforms

   .. warning::

      |DEPRECATED-API|

      This version is based on older [ChEMBL18-2014]_ data and will be deprecated in a future
      version of **OEMedChem TK**, please use :oe:func:`OEMedChem::OEApplyChEMBL24SolubilityTransforms` instead.

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

      .. oe:api::

         OESystem::OEIterBase<OEChem::OEMolBase>* OEApplyChEMBL18SolubilityTransforms(OEChem::OEMolBase& input,
                                                                                      int context = OEMatchedPairContext::Bond2,
                                                                                      unsigned int requireNumPairs = 5u)

   .. oe:language:: python

      .. oe:api:: python

         OEApplyChEMBL18SolubilityTransforms(input: Union[OEGraphMol,OEMol,OEQMol],
                                             context: int,
                                             requireNumPairs: int = 5) -> Iterable[Union[OEGraphMol, OEMol, OEQMol]]

   Given an input molecule, apply transformations derived from solubility data obtained from the
   [ChEMBL18-2014]_ database. The context argument controls the amount of chemistry information
   that should be included for the transformation reaction, see :oe:constns:`OEMedChem::OEMatchedPairContext`.
   This function supports only the :oe:const:`OEMedChem::OEMatchedPairContext::Bond0` or
   :oe:const:`OEMedChem::OEMatchedPairContext::Bond2` context values.  The ``minMMPThreshold`` argument will only
   apply transformations that meet or exceed the specified number of matched pairs.  Use a ``minMMPThreshold``
   value of ``0`` to apply all transformations regardless of the number of matched pairs associated with them.

   .. note::

      This function does not perform any validation or filtering on the input molecule to be transformed.
      The caller is expected to perform validity and/or size checking to ensure sensible inputs are provided.

   .. seealso::

      * :oe:func:`OEMedChem::OEApplyChEMBL24SolubilityTransforms` function

