.. include:: ../substitutions

.. oe:namespace:: OEMolProp

.. meta::
   :keywords: OEGetLipinskiAcceptorCount

.. _OEMolProp_OEGetLipinskiAcceptorCount:

.. oe:function:: OEGetLipinskiAcceptorCount

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

      .. oe:api::

         unsigned int OEGetLipinskiAcceptorCount(const OEChem::OEMolBase& mol)

   .. oe:language:: python

      .. oe:api:: python

         OEGetLipinskiAcceptorCount(mol: Union[OEGraphMol,OEMol,OEQMol]) -> int

   Returns the number of acceptors in a molecule based on the definition
   from the work of Lipinski ([Lipinski-1997]_). It is defined
   to be the number of nitrogens or oxygens.

   .. seealso::

      * :oe:func:`OEMolProp::OEGetLipinskiDonorCount` function
      * :oe:func:`OEMolProp::OEGetHBondAcceptorCount` function
      * :ref:`molprops_lipinski` section
      * :ref:`filter_files_lipinski_acceptor` subsection describing filter files

   **Example**

   The :oe:func:`OEMolProp::OEGetLipinskiAcceptorCount` function returns ``5`` for the molecule below.

   .. figure:: ../../../common/images/molprop/LAcceptor.*
      :width:  300pt
      :align:  center
