.. include:: ../../toolkit-substitutions

Grapheme\ :sup:`TM` TK 1.3.5
================================================================================

New features
--------------------------------------------------------------------------------

* A new function, :oe:func:`OEGrapheme::OERenderUnpairedInteractionMap`, has
  been added to visualize clash and unpaired interactions.

  .. list-table::  **Examples of visualizing clash and unpaired interactions**
     :header-rows: 1

     * - PDB: 1S2A
       - PDB: 3K6L

     * - .. image:: ../../graphemetk/images/releasenotes-1.3.5/pdb1s2a-unpaired.*
            :width: 500pt
       - .. image:: ../../graphemetk/images/releasenotes-1.3.5/pdb3k6l-unpaired.*
            :width: 500pt

* :oe:func:`OEGrapheme::OERenderActiveSite` now depicts covalent and cation-pi
  interactions.

  .. only:: oehtml

     .. list-table::  **Examples of depicting covalent and cation-pi interactions**
        :header-rows: 1
        :widths: 500 500

        * - PDB: 5WQX
          - PDB: 3ARW

        * - .. raw:: html

               <object data="../../_images/complex2img-pdb5wqx-optimized.svg" type="image/svg+xml"  width = "500" ></object>

            .. image:: ../../graphemetk/images/releasenotes-1.3.5/complex2img-pdb5wqx-optimized.svg
               :width: 1pt

          - .. raw:: html

               <object data="../../_images/complex2img-pdb3arw-optimized.svg" type="image/svg+xml"  width = "500" ></object>

            .. image:: ../../graphemetk/images/releasenotes-1.3.5/complex2img-pdb3arw-optimized.svg
               :width: 1pt

* The style for depicting stacking interactions has been simplified.

     .. list-table:: **Examples of stacking interaction depiction**
        :header-rows: 1
        :widths: 100 200 200

        * -
          - T-stacking
          - Pi-stacking

        * - 2017.Oct
          - .. image:: ../../graphemetk/images/releasenotes-1.3.5/complex2img-stacking-t-2017-Oct.png
               :width: 100pt
          - .. image:: ../../graphemetk/images/releasenotes-1.3.5/complex2img-stacking-pi-2017-Oct.png
               :width: 110pt

        * - 2018.Feb
          - .. image:: ../../graphemetk/images/releasenotes-1.3.5/complex2img-stacking-t-2018-Feb.png
               :width: 100pt
          - .. image:: ../../graphemetk/images/releasenotes-1.3.5/complex2img-stacking-pi-2018-Feb.png
               :width: 110pt


* The color scheme used to visualize interaction types when depicting
  protein-ligand interactions has been updated to accommodate the two new
  interaction types.

  .. figure:: ../../graphemetk/images/releasenotes-1.3.5/DrawActiveSiteLegend_2018_Feb.png
     :align: center
     :width: 900

     **New interactions color scheme**

* A new method, :oe:meth:`OEGrapheme::OE2DActiveSiteDisplay::IsValid`, has
  been added that is checked by all **Grapheme TK** API points.

* The :ref:`OEResidueSVGStandardMarkup <OEGrapheme_OEResidueSVGStandardMarkup>` class now takes a
  separator option.

* The following API, introduced in the 2017.Jun release for marking up
  residue circles in SVG images generated by the
  :oe:func:`OEGrapheme::OERenderActiveSite` function, is no longer preliminary
  and is now also available in both Java and C#:

  * :ref:`OEResidueSVGMarkupBase <OEGrapheme_OEResidueSVGMarkupBase>` class
  * :ref:`OEResidueSVGNoMarkup <OEGrapheme_OEResidueSVGNoMarkup>` class
  * :ref:`OEResidueSVGStandardMarkup <OEGrapheme_OEResidueSVGStandardMarkup>` class

Minor bug fixes
--------------------------------------------------------------------------------

* The algorithm used by the :ref:`OE2DActiveSiteDisplay <OEGrapheme_OE2DActiveSiteDisplay>`
  function to scale and position residues around ligands has been improved.

* :oe:func:`OEGrapheme::OERenderActiveSite` is now able to generate images
  when some ligand atoms have identical 2D coordinates.

* :oe:func:`OEGrapheme::OERenderActiveSite` now throws a warning if an
  interaction cannot be rendered.

Java-specific changes
--------------------------------------------------------------------------------

* The API for marking up residues in SVG images is now fully supported in
  Java (see the list above).

C#-specific changes
--------------------------------------------------------------------------------

* The API for marking up residues in SVG images is now fully supported in
  C# (see the list above).
