.. # split from OEBioFunctions.rst:208

.. include:: ../substitutions

.. oe:namespace:: OEBio

.. meta::
   :keywords: OEGetPhi Phi

.. oe:function:: OEGetPhi

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

      .. oe:api::

         double OEGetPhi(const OEHierResidue& res)
         double OEGetPhi(const OEChem::OEAtomBase* atom,
                         unsigned assume = OEAssumption::Default)

   .. oe:language:: python

      .. oe:api:: python

         OEGetPhi(res: OEHierResidue) -> float
         OEGetPhi(atom: OEAtomBase, assume: int) -> float

   Returns the :math:`\phi` (phi) angle in radians for a residue
   specified by its :ref:`OEHierResidue <OEBio_OEHierResidue>` class or by an
   :ref:`OEAtomBase <OEChem_OEAtomBase>` from the residue.
   The molecule must have 3D coordinates assigned.

