.. include:: ../../toolkit-substitutions

.. oe:namespace:: OESpruce

.. meta::
   :keywords: OEFixBackbone

..  _OESpruce_OEFixBackbone:

.. oe:function:: OEFixBackbone

   .. attention::

      |TWOLANGUAGE|

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

      .. oe:api::

         bool OEFixBackbone(OEBio::OEDesignUnit& du)

   .. oe:language:: python

      .. oe:api:: python

         OEFixBackbone(du: OEDesignUnit) -> bool



  The function attempts to correct missing oxygen atoms on the protein backbone,
  O and OXT, as well as correct the charge and valence state. If any of the core
  backbone atoms, N, CA, or C are missing it removes the residue. The proper
  residue can be modeled in later using :oe:func:`OESpruce::OEBuildLoops`.

