.. # split from OEBioFunctions.rst:639

.. include:: ../substitutions

.. oe:namespace:: OEBio

.. meta::
   :keywords: OESecondaryStructurePacked

.. oe:function:: OESecondaryStructurePacked

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

      .. oe:api::

         int OESecondaryStructurePacked(int ssType, int ssIDNumber,
                                        int strandID = 0)

   .. oe:language:: python

      .. oe:api:: python

         OESecondaryStructurePacked(ssType: int, ssIDNumber: int,
                                    strandID: int = 0) -> int

   This function packs secondary structure information into an integer suitable
   for use with the :oe:meth:`OEChem::OEResidue::SetSecondaryStructure` method.
   The 'ssType' argument specifies a secondary structure type from the 
   :oe:constns:`OEBio::OESecondaryStructure` namespace.  'ssIDNumber' is an
   ID number for a particular secondary structure element (e.g., helix #2, 
   sheet #7, etc.), and 'strandID' is an ID number for individual strands
   within a beta sheet.  The packed integer return value can also be used
   as an argument to the :ref:`OEHasSecondaryStructure <OEBio_OEHasSecondaryStructure>` predicate,
   to allow identification of all atoms in a specific helix, beta sheet, 
   turn, or strand within a sheet.

