.. _section_example_oechem_bFactorStyle:

OE3DMolStyle focused on B-Factor styling
================================================================================

A program utilized to visualize a :ref:`OEMolBase <OEChem_OEMolBase>` by B-Factor with a :ref:`OE3DMolStyle <OEChem_OE3DMolStyle>`. 
This example shows all ways to visualize B-Factor from atoms to protein ribbon coloring and atom labeling.

Example
--------------------------------------------------------------------------------

.. oe:language:: c++

    .. code-block:: console

        prompt> bFactorStyle input.mol2 output.oeb.gz

.. oe:language:: python
    
   .. code-block:: console

      prompt> bFactorStyle.py input.oeb output.oeb


Code
--------------------------------------------------------------------------------

.. oe:language:: c++

    .. only:: oehtml

        .. admonition:: Download code

           :download:`bFactorStyle.cpp <../../../../../sublibs/tklibs/oechem/examples/bFactorStyle.cpp>`

    .. only:: oepdf

        .. oe:source:: bFactorStyle.cpp
            :language: c++

.. oe:language:: python

   .. only:: oehtml

      .. admonition:: Download code

         :download:`bFactorStyle.py <../../../../../wrappers/python/examples/oechem/bFactorStyle.py>`

      .. literalinclude:: ../../../../../wrappers/python/examples/oechem/bFactorStyle.py


   .. only:: oepdf

      .. oe:source:: bFactorStyle.py
         :language: python

.. seealso::

    * :ref:`OE3DMolStyle <OEChem_OE3DMolStyle>` class
    * :ref:`OEMolStyleColorer <OEChem_OEMolStyleColorer>` class