.. # split from OEBioFunctions.rst:449

.. include:: ../substitutions

.. oe:namespace:: OEBio

.. meta::
   :keywords: OEPerceiveSecondaryStructure

.. oe:function:: OEPerceiveSecondaryStructure

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

      .. oe:api::

         bool OEPerceiveSecondaryStructure(OEChem::OEMolBase& mol,
                                           bool force = false)

   .. oe:language:: python

      .. oe:api:: python

         OEPerceiveSecondaryStructure(mol: Union[OEGraphMol,OEMol,OEQMol],
                                      force: bool = False) -> bool

   Calculates secondary structure for a protein molecule and stores the
   values into the :ref:`OEResidue <OEChem_OEResidue>` objects associated with each
   atom in the protein.  Returns false if no secondary structure assignments
   were made (e.g., when passed a non-protein molecule).
   ``mol`` must have 3D coordinates assigned.

