.. include:: ../substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OEReadPDBFile

.. oe:function:: OEReadPDBFile

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

      .. oe:api::

         bool OEReadPDBFile(oemolistream& ifs, OEMolBase& mol,
                            unsigned int flavor = OEIFlavor::PDB::DEFAULT)

   .. oe:language:: python

      .. oe:api:: python

         OEReadPDBFile(ifs: oemolistream, mol: Union[OEGraphMol,OEMol,OEQMol],
                       flavor: int) -> bool

   Reads a molecule from the specified input stream, 'ifs', in Brookhaven
   PDB file format.  A number of different PDB format variants are
   supported by the use of 'flavor' parameter from the
   :oe:constns:`OEChem::OEIFlavor::PDB` namespace.  This function returns
   ``true`` if the operation was successful, and ``false`` if an end-of-file was
   encountered.

