.. include:: ../substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OEGetPDBData

.. oe:function:: OEGetPDBData

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

      .. oe:api::

         std::string OEGetPDBData(const OEMolBase& mol, const std::string& tag)

   .. oe:language:: python

      .. oe:api:: python

         OEGetPDBData(mol: Union[OEGraphMol,OEMol,OEQMol], tag: str) -> str

   Returns the PDB data for the given tag. If the molecule does not have
   that tag, an empty string is returned.
   If there are multiple items with the same tag, only the first data
   is returned.

   .. seealso::

      * :oe:func:`OEChem::OEGetPDBDataPairs` function to access multiple items with the same tag
      * :oe:func:`OEChem::OEAddSDData` and :oe:func:`OEChem::OESetSDData` functions
      * :ref:`section_moltaggeddata_PDB` section


