.. include:: ../substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OEReadMol2File

.. oe:function:: OEReadMol2File

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

      .. oe:api::

         bool OEReadMol2File(oemolistream& ifs, OEMolBase& mol,
                             bool m2h = false)

   .. oe:language:: python

      .. oe:api:: python

         OEReadMol2File(ifs: oemolistream, mol: Union[OEGraphMol,OEMol,OEQMol],
                        m2h: bool = False) -> bool

   Reads the contents of the Tripos Sybyl mol2 file into the specified
   :ref:`OEMolBase <OEChem_OEMolBase>`.  The 'm2h' parameter indicates whether the
   connection table already has all hydrogen atoms explicit, informing
   the **OEChem TK** mol2 file reader not to adjust implicit hydrogen counts
   to satisfy valence and formal charge rules.


