.. _section_example_oechem_extractringtemplates:

Extract 2D ring templates
================================================================================

A program that extracts anonymized ring systems that can be potential new ring templates
in the **OEChem TK** 2D coordinate generation system.

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

.. oe:language:: c++

   .. only:: oehtml

      .. admonition:: Download code

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

   .. only:: oepdf

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

.. oe:language:: python

   .. only:: oehtml

      .. admonition:: Download code

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

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


   .. only:: oepdf

      .. oe:source:: extractringtemplates.py
         :language: python


.. oe:language:: java

   .. only:: oehtml

      .. admonition:: Download code

         :download:`ExtractRingTemplates.java <../../../../../wrappers/java/examples/openeye/examples/oechem/ExtractRingTemplates.java>`

   .. only:: oepdf

      .. oe:source:: ExtractRingTemplates.java
         :language: java

.. oe:language:: csharp

   .. only:: oehtml

      .. admonition:: Download code

         :download:`ExtractRingTemplates.cs <../../../../../wrappers/csharp/Csharp-Examples/OEChem/ExtractRingTemplates.cs>`

   .. only:: oepdf

      .. oe:source:: ExtractRingTemplates.cs
         :language: csharp

.. seealso::

   * :ref:`OEExtractRingTemplateOptions <OEChem_OEExtractRingTemplateOptions>` class
   * :oe:func:`OEChem::OEExtractRingTemplates` function
