OEReadPDBFile

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 OEIFlavor_PDB namespace. This function returns true if the operation was successful, and false if an end-of-file was encountered.