Python Examples
===============

MFE Prediction (flat interface)
-------------------------------

.. literalinclude:: ../../../../examples/Python/helloworld_mfe.py
   :encoding: latin-1

MFE Prediction (object oriented interface)
------------------------------------------

.. literalinclude:: ../../../../examples/Python/oo_example1.py
   :encoding: latin-1

Suboptimal Structure Prediction
-------------------------------

.. literalinclude:: ../../../../examples/Python/subopt.py
   :encoding: latin-1

Boltzmann Sampling (a.k.a. Probabilistic Backtracing)
-----------------------------------------------------

.. literalinclude:: ../../../../examples/Python/boltzmann_sampling.py
   :encoding: latin-1

RNAfold -p MEA equivalent
-------------------------

.. literalinclude:: ../../../../examples/Python/RNAfold_MEA.py
   :encoding: latin-1

MFE Consensus Structure Prediction
----------------------------------

.. literalinclude:: ../../../../examples/Python/helloworld_mfe_comparative.py
   :encoding: latin-1

MFE Prediction (deviating from default settings)
------------------------------------------------

.. literalinclude:: ../../../../examples/Python/helloworld_nondefault.py
   :encoding: latin-1

Fun with Soft Constraints
-------------------------

.. literalinclude:: ../../../../examples/Python/maximum_matching.py
   :encoding: latin-1



.. toctree::
   :maxdepth: 1
   :caption: Contents:

