<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="4.3.4">Jekyll</generator><link href="http://egonw.github.io/blog/feed/by_tag/groovy.xml" rel="self" type="application/atom+xml" /><link href="http://egonw.github.io/blog/" rel="alternate" type="text/html" /><updated>2026-12-05T08:55:21+00:00</updated><id>http://egonw.github.io/blog/feed/by_tag/groovy.xml</id><title type="html">chem-bla-ics</title><subtitle>Chemblaics (pronounced chem-bla-ics) is the science that uses open science and computers to solve problems in chemistry, biochemistry and related fields.</subtitle><author><name>Egon Willighagen</name></author><entry><title type="html">CDK-JChemPaint #7: rendering molecules as SVG</title><link href="http://egonw.github.io/blog/2011/06/12/cdk-jchempaint-7-rendering-molecules-as.html" rel="alternate" type="text/html" title="CDK-JChemPaint #7: rendering molecules as SVG" /><published>2011-06-12T00:00:00+00:00</published><updated>2011-06-12T00:00:00+00:00</updated><id>http://egonw.github.io/blog/2011/06/12/cdk-jchempaint-7-rendering-molecules-as</id><content type="html" xml:base="http://egonw.github.io/blog/2011/06/12/cdk-jchempaint-7-rendering-molecules-as.html"><![CDATA[<p>A very long time ago, <a href="http://sv.wikipedia.org/wiki/Scalable_Vector_Graphics">Scalable Vector Graphics</a>
promised to revolutionalize images on the web. After initial cool work (including
<a href="http://www.dspace.cam.ac.uk/handle/1810/746">CMLSnap</a>: animated chemical reactions
by Peter’s group!), things cooled down. There was simply a <strong>lack of support
in browsers</strong>. Things have changed. SVG is much better supported now, and people
are starting to use SVG again. Like Noel, <a href="http://baoilleach.blogspot.com/2011/06/molecular-zooming-with-open-babel-svg.html">visualizing 100 molecules in one
blog post</a>.</p>

<p>The new CDK-JChemPaint code has been refactored such that the original code
for the core functionality is now independent from the drawing toolkit. And
we have two well-developed implementations, one for Swing/AWT (used by the <a href="http://jchempaint.sf.net/">JChemPaint</a>
applet), and one for SWT (used by <a href="http://www.bioclipse.net/">Bioclipse</a>). And
there is one that generates SVG too, written by <a href="http://gilleain.blogspot.com/">Gileain</a>
as a proof of principle.</p>

<p>The code is almost identical to the code for <a href="http://chem-bla-ics.blogspot.com/2010/04/cdk-jchempaint-1-rendering-molecules.html">rendering molecules as PNG</a>.
We just swap the AWTDrawVisitor for the SVGGenerator:</p>

<pre>-renderer.paint(triazole, new AWTDrawVisitor(g2));
+svgGenerator = new SVGGenerator();
+renderer.paint(triazole, svgGenerator);
</pre>

<p>Additionally, we need to change how we output the results. The below code generate
the SVG and the matching HTML snippet:</p>

<pre>new File("triazole.svg").append(svgGenerator.getResult())

file = new PrintWriter(new FileWriter(new File("triazole.html")))
file.println("&lt;html&gt;");
file.println("&lt;body&gt;");
file.print("&lt;embed width=\"100\" height=\"100\" src=\"triazole.svg\" /&gt;");
file.println("&lt;/body&gt;");
file.println("&lt;html&gt;");
file.close()
</pre>

<p>The result looks like:</p>

<embed width="100" height="100" src="/blog/assets/images/triazole.svg" />

<p>I did have to tweak the SVG generated with <a href="https://sourceforge.net/projects/cdk/files/CDK-JChemPaint/20/">CDK-JChemPaint 20</a>,
so that the HTML ensures the initial scaling, by removing the width and height
in the SVG (patch pending). But this output also nicely shows that there are
glitches in the generated code. I hope people are interested in contributing
to this part of the CDK-JChemPaint patch!</p>

<p>The full source code of the <em>svgMol.groovy</em> can be found in the <a href="https://github.com/egonw/groovy-jcp">Groovy JChemPaint
repository</a>.</p>]]></content><author><name>Egon Willighagen</name></author><category term="cdk" /><category term="groovy" /><category term="jchempaint" /><summary type="html"><![CDATA[A very long time ago, Scalable Vector Graphics promised to revolutionalize images on the web. After initial cool work (including CMLSnap: animated chemical reactions by Peter’s group!), things cooled down. There was simply a lack of support in browsers. Things have changed. SVG is much better supported now, and people are starting to use SVG again. Like Noel, visualizing 100 molecules in one blog post.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://egonw.github.io/blog/blog/assets/images/triazole.svg" /><media:content medium="image" url="http://egonw.github.io/blog/blog/assets/images/triazole.svg" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">Groovy Cheminformatics 2nd edition</title><link href="http://egonw.github.io/blog/2011/06/11/groovy-cheminformatics-2nd-edition.html" rel="alternate" type="text/html" title="Groovy Cheminformatics 2nd edition" /><published>2011-06-11T00:00:00+00:00</published><updated>2011-06-11T00:00:00+00:00</updated><id>http://egonw.github.io/blog/2011/06/11/groovy-cheminformatics-2nd-edition</id><content type="html" xml:base="http://egonw.github.io/blog/2011/06/11/groovy-cheminformatics-2nd-edition.html"><![CDATA[<p>OK, I wrapped up the content, <a href="http://chem-bla-ics.blogspot.com/2011/06/groovy-cheminformatics-2nd-edition-soon.html">mostly finalized last week</a>,
after making a few small changes, created a new cover (rather than using a <a href="http://lulu.com/">Lulu</a>
template), and <a href="http://www.lulu.com/product/paperback/groovy-cheminformatics-with-the-chemistry-development-kit/15996659">uploaded things to Lulu</a>:</p>

<p><img src="/blog/assets/images/coverPrevCDKBook1.png" alt="" /></p>

<p>New content includes:</p>

<ul>
  <li>Section 2.3.3: Molecular Formula</li>
  <li>Section 2.6: IRings</li>
  <li>Section 7.3: Graph matrices</li>
  <li>Chapter 10: Molecular properties (mass, TPSA, XLogP)</li>
  <li>Chapter 11: InChI</li>
  <li>Section 15.2: CDK 1.0 to 1.2</li>
  <li>Appendix A: Atom Type Lists</li>
  <li>Appendix B: CDK Authors</li>
</ul>

<p>The full Table of Contents is available as ‘preview’ on <a href="https://www.lulu.com/product/paperback/groovy-cheminformatics-with-the-chemistry-development-kit/15996659">this Lulu page</a>.</p>

<p><strong>Update</strong>: the <a href="https://chem-bla-ics.blogspot.com/2012/01/groovy-cheminformatics-4th-edition.html">fourth edition</a> is out.</p>]]></content><author><name>Egon Willighagen</name></author><category term="cdk" /><category term="cdkbook" /><category term="cheminf" /><category term="chemistry" /><category term="groovy" /><category term="java" /><category term="publishing" /><summary type="html"><![CDATA[OK, I wrapped up the content, mostly finalized last week, after making a few small changes, created a new cover (rather than using a Lulu template), and uploaded things to Lulu:]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://egonw.github.io/blog/blog/assets/images/coverPrevCDKBook1.png" /><media:content medium="image" url="http://egonw.github.io/blog/blog/assets/images/coverPrevCDKBook1.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">Groovy Cheminformatics 2nd edition soon</title><link href="http://egonw.github.io/blog/2011/06/06/groovy-cheminformatics-2nd-edition-soon.html" rel="alternate" type="text/html" title="Groovy Cheminformatics 2nd edition soon" /><published>2011-06-06T00:00:00+00:00</published><updated>2011-06-06T00:00:00+00:00</updated><id>http://egonw.github.io/blog/2011/06/06/groovy-cheminformatics-2nd-edition-soon</id><content type="html" xml:base="http://egonw.github.io/blog/2011/06/06/groovy-cheminformatics-2nd-edition-soon.html"><![CDATA[<p>In February I released <a href="http://chem-bla-ics.blogspot.com/2011/02/groovy-cheminformatics.html">the first edition</a>
of my book about writing cheminformatics software in the Groovy language using
the <a href="http://cdk.sf.net/">CDK</a>. The booklet was thinner than I expected for 72
pages (thin paper), which made the booklet look relatively expensive. Then again,
it’s not particularly making me rich. As explained before, I hope this will
become a source of funding for continued CDK development. Anyways, today I worked
hard to address some flaws in the first edition, and making some further tweaks.</p>

<p>The overall experience should be improved: I am now using the <a href="http://www.ctan.org/tex-archive/macros/latex/contrib/geometry">geometry</a>
package which should address the lack of whitespace near the top of each page,
<a href="https://github.com/jbrownlee/CleverAlgorithms/blob/master/book/paperback.tex">thanx to Jason Brownlee</a>.
I also noted that the bibliography styles <em>abbrev</em> and <em>unsrt</em> cannot be combined,
and because <a href="http://tex.stackexchange.com/questions/5053/is-it-possible-to-get-unsrt-abbrv-bibliography/5056#5056">this TeX StackExchange answer</a>
mentioned <a href="http://ftp.fagskolen.gjovik.no/pub/tex-archive/help/Catalogue/entries/biblatex.html">biblatex</a>
which I read about several times now, I decided it was time to dive in. I haven’t
gone the full <a href="http://ftp.fagskolen.gjovik.no/pub/tex-archive/help/Catalogue/entries/biber.html">biber</a>
route yet, and still using <a href="http://www.citeulike.org/group/14458">the CiteULike group for this book</a>.
I also hacked up automatic wrapping of output from the Groovy scripts in the
book, which should further clean up the design. I doubt it is up to <a href="https://twitter.com/#!/jonalv">Jonathan</a>’s
standards yet, but it will have to do for now.</p>

<p>On the content side, there are also interesting changes, and in particular the
new sections and chapters. Per request, a list of all people who contributed
to the CDK is added, as well as an overview of all CDK atom types. New material
includes a short discussion on the IRing interface, a chapter on the InChI,
words about generating tautomers (thanx to Mark for this new code!), examples
on how to calculate various graph matrices, molecular formula, and how to calculate
XLogP and TPSA properties.</p>

<p>All in all, the booklet now sums up to 104 pages, whereas the first version
had 72. But, it’s much too late already, and the alarm goes way too early in
the morning, so the new edition will not appear online today.</p>

<p>Oh, and thanx to all who bought a copy of the first edition!</p>]]></content><author><name>Egon Willighagen</name></author><category term="cdk" /><category term="cdkbook" /><category term="cheminf" /><category term="chemistry" /><category term="groovy" /><category term="java" /><category term="publishing" /><summary type="html"><![CDATA[In February I released the first edition of my book about writing cheminformatics software in the Groovy language using the CDK. The booklet was thinner than I expected for 72 pages (thin paper), which made the booklet look relatively expensive. Then again, it’s not particularly making me rich. As explained before, I hope this will become a source of funding for continued CDK development. Anyways, today I worked hard to address some flaws in the first edition, and making some further tweaks.]]></summary></entry><entry><title type="html">Extracting 3D coordinates from PDB files with Groovy CDK</title><link href="http://egonw.github.io/blog/2011/01/31/extracting-3d-coordinates-from-pdb.html" rel="alternate" type="text/html" title="Extracting 3D coordinates from PDB files with Groovy CDK" /><published>2011-01-31T00:00:00+00:00</published><updated>2011-01-31T00:00:00+00:00</updated><id>http://egonw.github.io/blog/2011/01/31/extracting-3d-coordinates-from-pdb</id><content type="html" xml:base="http://egonw.github.io/blog/2011/01/31/extracting-3d-coordinates-from-pdb.html"><![CDATA[<p><a href="https://www.biostars.org/">BioStar <i class="fa-solid fa-recycle fa-xs"></i></a> featured a question today about
<a href="https://www.biostars.org/p/1637/">how to extract 3D coordinates from PDB files <i class="fa-solid fa-recycle fa-xs"></i></a>.
Now, a simple script may actually do, and <a href="https://www.biostars.org/p/1637/#1640">BioJava was mentioned too <i class="fa-solid fa-recycle fa-xs"></i></a>.
Of course, it can also be done with the <a href="https://cdk.github.io">CDK <i class="fa-solid fa-recycle fa-xs"></i></a>. For example
using this Groovy code:</p>

<div class="language-groovy highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kn">import</span> <span class="nn">org.openscience.cdk.interfaces.*</span><span class="o">;</span>
<span class="kn">import</span> <span class="nn">org.openscience.cdk.io.*</span><span class="o">;</span>
<span class="kn">import</span> <span class="nn">org.openscience.cdk.tools.manipulator.*</span><span class="o">;</span>
<span class="kn">import</span> <span class="nn">org.openscience.cdk.io.IChemObjectReader.Mode</span><span class="o">;</span>
<span class="kn">import</span> <span class="nn">org.openscience.cdk.*</span><span class="o">;</span>
<span class="kn">import</span> <span class="nn">java.io.File</span><span class="o">;</span>
<span class="kn">import</span> <span class="nn">java.util.zip.GZIPInputStream</span><span class="o">;</span>

<span class="n">reader</span> <span class="o">=</span> <span class="k">new</span> <span class="n">PDBReader</span><span class="o">(</span>
  <span class="k">new</span> <span class="nf">GZIPInputStream</span><span class="o">(</span>
    <span class="k">new</span> <span class="nf">URL</span><span class="o">(</span>
      <span class="s2">"http://www.pdb.org/pdb/files/1CRN.pdb.gz"</span>
    <span class="o">).</span><span class="na">openStream</span><span class="o">()</span>
  <span class="o">)</span>
<span class="o">);</span>
<span class="n">crambin</span> <span class="o">=</span> <span class="n">reader</span><span class="o">.</span><span class="na">read</span><span class="o">(</span><span class="k">new</span> <span class="n">ChemFile</span><span class="o">());</span>
<span class="k">for</span> <span class="o">(</span><span class="n">container</span> <span class="k">in</span>
     <span class="n">ChemFileManipulator</span><span class="o">.</span><span class="na">getAllAtomContainers</span><span class="o">(</span>
       <span class="n">crambin</span>
     <span class="o">))</span> <span class="o">{</span>
  <span class="k">for</span> <span class="o">(</span><span class="n">atom</span> <span class="k">in</span> <span class="n">container</span><span class="o">.</span><span class="na">atoms</span><span class="o">())</span> <span class="o">{</span>
    <span class="n">println</span> <span class="n">atom</span><span class="o">.</span><span class="na">point3d</span><span class="o">;</span>
  <span class="o">}</span>
<span class="o">}</span>
</code></pre></div></div>

<p>Wondering what the <a href="https://doi.org/10.1186/1471-2105-10-397">Bioclipse Scripting Language <i class="fa-solid fa-recycle fa-xs"></i></a>
version would look like… and, it can likely be done with Jmol script too.</p>]]></content><author><name>Egon Willighagen</name></author><category term="cdk" /><category term="groovy" /><category term="pdb" /><category term="doi:10.1186/1471-2105-10-397" /><summary type="html"><![CDATA[BioStar featured a question today about how to extract 3D coordinates from PDB files . Now, a simple script may actually do, and BioJava was mentioned too . Of course, it can also be done with the CDK . For example using this Groovy code:]]></summary></entry><entry><title type="html">Converting JSON to RDF/XML with Groovy</title><link href="http://egonw.github.io/blog/2010/12/29/converting-json-to-rdfxml-with-groovy.html" rel="alternate" type="text/html" title="Converting JSON to RDF/XML with Groovy" /><published>2010-12-29T00:00:00+00:00</published><updated>2010-12-29T00:00:00+00:00</updated><id>http://egonw.github.io/blog/2010/12/29/converting-json-to-rdfxml-with-groovy</id><content type="html" xml:base="http://egonw.github.io/blog/2010/12/29/converting-json-to-rdfxml-with-groovy.html"><![CDATA[<p>Mark’s new <a href="http://www.science3point0.com/blog/2010/12/29/cc0-rdf-hosting-for-scientists/">CCO/RDF hosting functionality</a>
(see also <a href="http://chem-bla-ics.blogspot.com/2010/12/what-should-free-cc0-rdf-hosting-for.html">my post two days ago</a>)
requires <a href="http://www.w3.org/TR/REC-rdf-syntax/">RDF/XML format</a>, so I updated my code to convert the
<a href="http://chempedia.com/substances">Chempedia Substances</a> data into RDF/XML instead of N3 (I have asked
<a href="http://depth-first.com/">Rich</a> to put a new download link online). This is the
<a href="http://groovy.codehaus.org/">Groovy</a> code I used:</p>

<div class="language-groovy highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kn">import</span> <span class="nn">groovy.xml.MarkupBuilder</span>
<span class="kn">import</span> <span class="nn">groovy.util.IndentPrinter</span>

<span class="n">input</span> <span class="o">=</span> <span class="k">new</span> <span class="n">File</span><span class="o">(</span><span class="s2">"substances.json"</span><span class="o">)</span>
<span class="n">json</span> <span class="o">=</span> <span class="k">new</span> <span class="n">JsonSlurper</span><span class="o">().</span><span class="na">parse</span><span class="o">(</span><span class="n">input</span><span class="o">);</span>

<span class="kt">def</span> <span class="n">writer</span> <span class="o">=</span> <span class="k">new</span> <span class="n">StringWriter</span><span class="o">()</span>
<span class="kt">def</span> <span class="n">xml</span> <span class="o">=</span> <span class="k">new</span> <span class="n">MarkupBuilder</span><span class="o">(</span>
  <span class="k">new</span> <span class="nf">IndentPrinter</span><span class="o">(</span><span class="k">new</span> <span class="n">PrintWriter</span><span class="o">(</span><span class="n">writer</span><span class="o">))</span>
<span class="o">)</span>
<span class="n">xml</span><span class="o">.</span><span class="s1">'rdf:RDF'</span><span class="o">(</span>
  <span class="s1">'xmlns:rdf'</span><span class="o">:</span>
    <span class="s1">'http://www.w3.org/1999/02/22-rdf-syntax-ns#'</span><span class="o">,</span>
  <span class="s1">'xmlns:dc'</span> <span class="o">:</span>
    <span class="s1">'http://purl.org/dc/elements/1.1/'</span><span class="o">,</span>
  <span class="s1">'xmlns:iupac'</span> <span class="o">:</span>
    <span class="s1">'http://www.iupac.org/'</span><span class="o">,</span>
  <span class="s1">'xmlns:cp'</span> <span class="o">:</span>
    <span class="s1">'http://rdf.openmolecules.net/chempedia/onto#'</span><span class="o">,</span>
  <span class="s1">'xmlns:owl'</span> <span class="o">:</span>
    <span class="s1">'http://www.w3.org/2002/07/owl#'</span>
<span class="o">)</span> <span class="o">{</span>
  <span class="n">json</span><span class="o">.</span><span class="na">each</span> <span class="o">{</span> <span class="n">substance</span> <span class="o">-&gt;</span>
    <span class="n">xml</span><span class="o">.</span><span class="s1">'rdf:Description'</span><span class="o">(</span>
      <span class="s1">'rdf:about'</span><span class="o">:</span> <span class="n">substance</span><span class="o">.</span><span class="na">uri</span>
    <span class="o">)</span> <span class="o">{</span>
      <span class="n">xml</span><span class="o">.</span><span class="s1">'dc:identifier'</span><span class="o">(</span><span class="n">substance</span><span class="o">.</span><span class="na">gsid</span><span class="o">)</span>
      <span class="n">xml</span><span class="o">.</span><span class="s1">'owl:sameAs'</span><span class="o">(</span>
        <span class="s1">'rdf:resource'</span> <span class="o">:</span>
        <span class="s1">'http://rdf.openmolecules.net/?'</span> <span class="o">+</span>
        <span class="n">substance</span><span class="o">.</span><span class="na">inchi</span>
      <span class="o">)</span>
      <span class="n">xml</span><span class="o">.</span><span class="s1">'iupac:inchi'</span><span class="o">(</span>
        <span class="s1">'http://rdf.openmolecules.net/?'</span> <span class="o">+</span>
        <span class="n">substance</span><span class="o">.</span><span class="na">inchi</span>
      <span class="o">)</span>
      <span class="k">for</span> <span class="o">(</span><span class="kt">int</span> <span class="n">i</span> <span class="o">=</span> <span class="mi">0</span><span class="o">;</span> <span class="n">i</span><span class="o">&lt;</span><span class="n">substance</span><span class="o">.</span><span class="na">namings</span><span class="o">.</span><span class="na">size</span><span class="o">();</span> <span class="n">i</span><span class="o">++)</span>
      <span class="o">{</span>
        <span class="n">naming</span> <span class="o">=</span> <span class="n">substance</span><span class="o">.</span><span class="na">namings</span><span class="o">.</span><span class="na">get</span><span class="o">(</span><span class="n">i</span><span class="o">);</span>
        <span class="n">namingURI</span> <span class="o">=</span> <span class="n">substance</span><span class="o">.</span><span class="na">uri</span> <span class="o">+</span> <span class="s2">"/naming"</span> <span class="o">+</span> <span class="n">i</span><span class="o">;</span>
        <span class="n">xml</span><span class="o">.</span><span class="s1">'cp:hasNaming'</span> <span class="o">{</span>
          <span class="n">xml</span><span class="o">.</span><span class="s1">'rdf:Description'</span> <span class="o">{</span>
            <span class="n">xml</span><span class="o">.</span><span class="s1">'cp:hasName'</span><span class="o">(</span><span class="n">naming</span><span class="o">.</span><span class="na">name</span><span class="o">)</span>
            <span class="n">xml</span><span class="o">.</span><span class="s1">'cp:hasStatus'</span><span class="o">(</span><span class="n">naming</span><span class="o">.</span><span class="na">status</span><span class="o">)</span>
            <span class="n">xml</span><span class="o">.</span><span class="s1">'cp:hasScore'</span><span class="o">(</span><span class="n">naming</span><span class="o">.</span><span class="na">score</span><span class="o">)</span>
          <span class="o">}</span>
        <span class="o">}</span>
      <span class="o">}</span>
    <span class="o">}</span>
  <span class="o">}</span>
<span class="o">}</span>
<span class="n">println</span> <span class="n">writer</span><span class="o">.</span><span class="na">toString</span><span class="o">();</span>
</code></pre></div></div>]]></content><author><name>Egon Willighagen</name></author><category term="groovy" /><category term="chemistry" /><category term="rdf" /><category term="json" /><summary type="html"><![CDATA[Mark’s new CCO/RDF hosting functionality (see also my post two days ago) requires RDF/XML format, so I updated my code to convert the Chempedia Substances data into RDF/XML instead of N3 (I have asked Rich to put a new download link online). This is the Groovy code I used:]]></summary></entry><entry><title type="html">CDK Book in progress</title><link href="http://egonw.github.io/blog/2010/10/08/cdk-book-in-progress.html" rel="alternate" type="text/html" title="CDK Book in progress" /><published>2010-10-08T00:00:00+00:00</published><updated>2010-10-08T00:00:00+00:00</updated><id>http://egonw.github.io/blog/2010/10/08/cdk-book-in-progress</id><content type="html" xml:base="http://egonw.github.io/blog/2010/10/08/cdk-book-in-progress.html"><![CDATA[<p>Very much overdue, but still in progress, is my book on CDK programming. I am
in love with the writing environment, a mix of <a href="http://en.wikipedia.org/wiki/Make_%28software%29">make</a>,
<a href="http://en.wikipedia.org/wiki/Groovy_%28programming_language%29">Groovy</a> and
<a href="http://en.wikipedia.org/wiki/LaTeX">LaTeX</a>, where the code snippets are written
in Groovy and embedded into LaTeX (see <a href="http://chem-bla-ics.blogspot.com/2009/04/cdk-documentation.html">CDK - The Documentation</a>).
The Groovy script is actually run by the build system, allowing me to embed
the output too.</p>

<p>In the LaTeX source code I, therefore, have something like:</p>

<div class="language-latex highlighter-rouge"><div class="highlight"><pre class="highlight"><code>The list of supported hybridization types can be listed with:

<span class="k">\codeverb</span><span class="p">{</span>HybridizationTypes<span class="p">}</span>

listing these types:

<span class="k">\codeout</span><span class="p">{</span>HybridizationTypes<span class="p">}</span>
</code></pre></div></div>

<p>refering to a groovy script that looks like:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>#import org.openscience.cdk.interfaces.*;
#
IAtomType.Hybridization.each {
  println it
}
</code></pre></div></div>

<p>Actually, the above is preprocessed to give the LaTeX view as well as the actual
Groovy script run.</p>

<p>Since last year, I have pimped the output a bit, and the above now looks like:</p>

<p><img src="/blog/assets/images/cdkBook.png" alt="" /></p>]]></content><author><name>Egon Willighagen</name></author><category term="cdk" /><category term="groovy" /><category term="latex" /><category term="publishing" /><category term="cdkbook" /><summary type="html"><![CDATA[Very much overdue, but still in progress, is my book on CDK programming. I am in love with the writing environment, a mix of make, Groovy and LaTeX, where the code snippets are written in Groovy and embedded into LaTeX (see CDK - The Documentation). The Groovy script is actually run by the build system, allowing me to embed the output too.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://egonw.github.io/blog/blog/assets/images/cdkBook.png" /><media:content medium="image" url="http://egonw.github.io/blog/blog/assets/images/cdkBook.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">CDK-JChemPaint #5: the Groovy-JChemPaint repository</title><link href="http://egonw.github.io/blog/2010/04/18/cdk-jchempaint-5-groovy-jchempaint.html" rel="alternate" type="text/html" title="CDK-JChemPaint #5: the Groovy-JChemPaint repository" /><published>2010-04-18T00:20:00+00:00</published><updated>2010-04-18T00:20:00+00:00</updated><id>http://egonw.github.io/blog/2010/04/18/cdk-jchempaint-5-groovy-jchempaint</id><content type="html" xml:base="http://egonw.github.io/blog/2010/04/18/cdk-jchempaint-5-groovy-jchempaint.html"><![CDATA[<p>Oh, I forget to mention just earlier that I have set up a small <a href="http://github.com/egonw/groovy-jcp">git repository with the full Groovy demo scripts</a>.
Additionally, requests on further tutorials and/or bug reports can be filed in the
<a href="http://github.com/egonw/groovy-jcp/issues">matching Issues tracker</a>.</p>

<p><img src="/blog/assets/images/groovyJCPrepos.png" alt="" /></p>]]></content><author><name>Egon Willighagen</name></author><category term="cdk" /><category term="jchempaint" /><category term="groovy" /><category term="git" /><summary type="html"><![CDATA[Oh, I forget to mention just earlier that I have set up a small git repository with the full Groovy demo scripts. Additionally, requests on further tutorials and/or bug reports can be filed in the matching Issues tracker.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://egonw.github.io/blog/blog/assets/images/groovyJCPrepos.png" /><media:content medium="image" url="http://egonw.github.io/blog/blog/assets/images/groovyJCPrepos.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">Processing the ChEBI MDL SD file with the CDK</title><link href="http://egonw.github.io/blog/2009/10/01/processing-chebi-mdl-sd-file-with-cdk.html" rel="alternate" type="text/html" title="Processing the ChEBI MDL SD file with the CDK" /><published>2009-10-01T00:00:00+00:00</published><updated>2009-10-01T00:00:00+00:00</updated><id>http://egonw.github.io/blog/2009/10/01/processing-chebi-mdl-sd-file-with-cdk</id><content type="html" xml:base="http://egonw.github.io/blog/2009/10/01/processing-chebi-mdl-sd-file-with-cdk.html"><![CDATA[<p><a href="http://www.bioclipse.net/">Bioclipse</a> has a <a href="http://pele.farmbio.uu.se/cgi-bin/bugzilla/show_bug.cgi?id=1526">bug report</a> about browsing
the <a href="http://www.ebi.ac.uk/chebi/">ChEBI</a> <a href="ftp://ftp.ebi.ac.uk/pub/databases/chebi/SDF/">SD file</a> in its
<a href="http://bioclipse.blogspot.com/2009/07/working-with-large-sdfiles-in-bioclipse.html">moltable editor</a>. Some entries make
Bioclipse crash (as reported), or just very sluggish as with my Dell superlapcomputer :)</p>

<p>So, I processed the file with a pure <a href="http://pele.farmbio.uu.se/nightly-1.2.3/">CDK 1.2.3</a> with this
small piece of Groovy script:</p>

<div class="language-groovy highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kn">import</span> <span class="nn">org.openscience.cdk.interfaces.*</span><span class="o">;</span>
<span class="kn">import</span> <span class="nn">org.openscience.cdk.io.*</span><span class="o">;</span>
<span class="kn">import</span> <span class="nn">org.openscience.cdk.io.iterator.*</span><span class="o">;</span>
<span class="kn">import</span> <span class="nn">org.openscience.cdk.*</span><span class="o">;</span>
<span class="kn">import</span> <span class="nn">org.openscience.cdk.tools.manipulator.*</span><span class="o">;</span>

<span class="n">iterator</span> <span class="o">=</span> <span class="k">new</span> <span class="n">IteratingMDLReader</span><span class="o">(</span>
  <span class="k">new</span> <span class="nf">File</span><span class="o">(</span><span class="s2">"ChEBI_complete.sdf"</span><span class="o">).</span><span class="na">newReader</span><span class="o">(),</span>
  <span class="n">DefaultChemObjectBuilder</span><span class="o">.</span><span class="na">getInstance</span><span class="o">()</span>
<span class="o">)</span>
<span class="kt">int</span> <span class="n">i</span> <span class="o">=</span> <span class="mi">0</span><span class="o">;</span>
<span class="kt">boolean</span> <span class="n">hasNext</span> <span class="o">=</span> <span class="kc">true</span><span class="o">;</span>
<span class="k">while</span> <span class="o">(</span><span class="n">hasNext</span><span class="o">)</span> <span class="o">{</span>
  <span class="n">i</span><span class="o">++;</span>
  <span class="kt">long</span> <span class="n">startTime</span> <span class="o">=</span> <span class="n">System</span><span class="o">.</span><span class="na">currentTimeMillis</span><span class="o">();</span>
  <span class="n">hasNext</span> <span class="o">=</span> <span class="n">iterator</span><span class="o">.</span><span class="na">hasNext</span><span class="o">();</span>
  <span class="n">IMolecule</span> <span class="n">mol</span> <span class="o">=</span> <span class="n">iterator</span><span class="o">.</span><span class="na">next</span><span class="o">()</span>
  <span class="kt">long</span> <span class="n">endTime</span> <span class="o">=</span> <span class="n">System</span><span class="o">.</span><span class="na">currentTimeMillis</span><span class="o">();</span>
  <span class="n">formula</span> <span class="o">=</span> <span class="n">MolecularFormulaManipulator</span><span class="o">.</span><span class="na">getMolecularFormula</span><span class="o">(</span><span class="n">mol</span><span class="o">)</span>
  <span class="kt">long</span> <span class="n">time</span> <span class="o">=</span> <span class="n">endTime</span> <span class="o">-</span> <span class="n">startTime</span><span class="o">;</span>
  <span class="k">if</span> <span class="o">(</span><span class="n">time</span> <span class="o">&gt;</span> <span class="mi">99</span><span class="o">)</span>
    <span class="n">println</span> <span class="n">i</span> <span class="o">+</span> <span class="s2">": "</span> <span class="o">+</span> <span class="n">MolecularFormulaManipulator</span><span class="o">.</span><span class="na">getString</span><span class="o">(</span><span class="n">formula</span><span class="o">)</span> <span class="o">+</span>
            <span class="s2">" ("</span> <span class="o">+</span> <span class="n">endTime</span> <span class="o">+</span> <span class="s2">"-"</span> <span class="o">+</span> <span class="n">startTime</span> <span class="o">+</span> <span class="s2">"="</span> <span class="o">+</span> <span class="n">time</span> <span class="o">+</span> <span class="s2">" ms)"</span>

<span class="o">}</span>
</code></pre></div></div>

<p>This script times reading of all entries and reports all that entries take more than 100 ms to read (in the scripting environment). There are surprising results: H2O takes 50 seconds, phosphate 100 seconds. So, I am quite certain it must be the reading of the metadata, and not the connection table. But, this I will explore in more detail now, hoping to come up with a patch for the CDK to speed up reading of such entries.</p>

<p>The full list of timings:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>1: C10H2 (1254375053450-1254375052356=1094 ms)
152: C20HN7O6 (1254375054779-1254375054125=654 ms)
592: C3HO3 (1254375056604-1254375055499=1105 ms)
832: C9NO5 (1254375057016-1254375056823=193 ms)
879: C20N4 (1254375057381-1254375057039=342 ms)
1125: R (1254375058293-1254375057528=765 ms)
1197: C20N7O6 (1254375058612-1254375058372=240 ms)
1198: C5NO3 (1254375058714-1254375058613=101 ms)
1243: C5NO4 (1254375063698-1254375058800=4898 ms)
1272: C21N7O16P3S (1254375067185-1254375063856=3329 ms)
1277: C23N7O17P3S (1254375067625-1254375067239=386 ms)
1282: C3NO2S (1254375070673-1254375067650=3023 ms)
1285: C3O3 (1254375071600-1254375070675=925 ms)
1290: C2O2 (1254375071802-1254375071608=194 ms)
1299: H2O (1254375122202-1254375071808=50394 ms)
1300: H (1254375136668-1254375122202=14466 ms)
1301: O2 (1254375145270-1254375136670=8600 ms)
1335: C15N6O5S (1254375150683-1254375145319=5364 ms)
1343: C10N5O13P3 (1254375298927-1254375150686=148241 ms)
1349: C2NO2 (1254375301391-1254375298953=2438 ms)
1351: C34N4O4 (1254375301659-1254375301396=263 ms)
1509: C6NO2 (1254375302753-1254375302011=742 ms)
1541: C19N7O6 (1254375303296-1254375302778=518 ms)
1543: C20HN7O7 (1254375303441-1254375303312=129 ms)
1609: C9N2O15P3 (1254375303740-1254375303558=182 ms)
1631: CHO2 (1254375303975-1254375303837=138 ms)
1632: C4O4 (1254375304127-1254375303976=151 ms)
1711: C21N7O14P2 (1254375310174-1254375304245=5929 ms)
1788: C6H3O9P (1254375310555-1254375310387=168 ms)
1798: C10H2N2O3S (1254375310705-1254375310588=117 ms)
1808: C6N3O2 (1254375312665-1254375310727=1938 ms)
1823: C10N5O14P3 (1254375318534-1254375312781=5753 ms)
1839: C5NO4 (1254375325988-1254375318583=7405 ms)
1840: C3O3 (1254375326249-1254375325989=260 ms)
1848: C10N5O7P (1254375336661-1254375326273=10388 ms)
1862: C5NOSR2 (1254375337336-1254375336699=637 ms)
1882: C3N2 (1254375337489-1254375337351=138 ms)
1893: C6O9P (1254375337626-1254375337501=125 ms)
1910: C3O6P (1254375337846-1254375337639=207 ms)
1934: H3N (1254375349713-1254375337921=11792 ms)
1977: O4S (1254375350045-1254375349902=143 ms)
1984: CN2O (1254375350174-1254375350050=124 ms)
2007: C5N (1254375350324-1254375350183=141 ms)
2015: C5N5O (1254375350493-1254375350329=164 ms)
2016: C2O (1254375350683-1254375350494=189 ms)
2018: C27N9O15P2 (1254375351927-1254375350684=1243 ms)
2020: H2O2 (1254375352124-1254375351928=196 ms)
2036: C17N3O17P2 (1254375352309-1254375352196=113 ms)
2095: C10N5O4 (1254375352578-1254375352394=184 ms)
2137: C14HO4R (1254375353331-1254375352646=685 ms)
2180: C3NO2 (1254375354199-1254375353469=730 ms)
2184: C9NO5 (1254375354480-1254375354270=210 ms)
2194: C6N4O2 (1254375356738-1254375354485=2253 ms)
2201: C21N7O17P3 (1254375359838-1254375356748=3090 ms)
2228: C6O2 (1254375360480-1254375359912=568 ms)
2240: CO2 (1254375363324-1254375360485=2839 ms)
2327: C5NO2S (1254375370536-1254375363612=6924 ms)
2348: C14N6O5S (1254375371522-1254375370558=964 ms)
2359: C9N2O9P (1254375372236-1254375371544=692 ms)
2367: C9N2O6 (1254375373614-1254375372265=1349 ms)
2370: C5N5 (1254375373975-1254375373615=360 ms)
2404: C10N5O5 (1254375374360-1254375374108=252 ms)
2413: C10N5O10P2 (1254375401639-1254375374373=27266 ms)
2454: C5O5 (1254375401831-1254375401688=143 ms)
2455: C5NO2S (1254375407807-1254375401832=5975 ms)
2470: C11N2O2 (1254375408251-1254375407815=436 ms)
2494: C4NO3 (1254375409200-1254375408373=827 ms)
2499: C5O10P2R (1254375412153-1254375409297=2856 ms)
2525: C4HO7P (1254375412777-1254375412293=484 ms)
2526: C4N2 (1254375414071-1254375412777=1294 ms)
2534: C21N7O14P2 (1254375417657-1254375414091=3566 ms)
2581: C3NO2 (1254375422072-1254375417745=4327 ms)
2638: C4NO4 (1254375424772-1254375422244=2528 ms)
2680: C5O14P3 (1254375426347-1254375424831=1516 ms)
2683: C3NO3 (1254375433063-1254375426353=6710 ms)
2702: C3HO6P (1254375433192-1254375433079=113 ms)
2749: C4N2O3 (1254375434106-1254375433445=661 ms)
2755: C10N4O8P (1254375434417-1254375434113=304 ms)
2756: C5NO2 (1254375436750-1254375434418=2332 ms)
2779: C4NO2S (1254375437847-1254375436759=1088 ms)
2803: C5N4 (1254375438991-1254375437968=1023 ms)
2832: C9NO2 (1254375439226-1254375439026=200 ms)
2844: C8HNO3 (1254375440463-1254375439238=1225 ms)
2856: C5O13P3R (1254375441336-1254375440497=839 ms)
2863: C10O6 (1254375442424-1254375441348=1076 ms)
2873: C10N5O8P (1254375442560-1254375442433=127 ms)
2898: C3HO3 (1254375443712-1254375442655=1057 ms)
2925: C8H4NO6 (1254375443886-1254375443729=157 ms)
3025: CO3 (1254375444508-1254375444131=377 ms)
3031: C10N5O11P2 (1254375444810-1254375444601=209 ms)
3038: C3NO2S (1254375449012-1254375444836=4176 ms)
3042: C4N2O2 (1254375449224-1254375449066=158 ms)
3060: C6O2 (1254375449433-1254375449274=159 ms)
3083: C17N4O9P (1254375450751-1254375449465=1286 ms)
3088: C34FeN4O4 (1254375452873-1254375450848=2025 ms)
3111: C9N2O12P2 (1254375454560-1254375452939=1621 ms)
3119: CNO5P (1254375454774-1254375454563=211 ms)
3122: C9N3O14P3 (1254375454972-1254375454778=194 ms)
3184: C3O3 (1254375455362-1254375455053=309 ms)
3213: CO (1254375455489-1254375455375=114 ms)
3216: C3HO7P (1254375455662-1254375455490=172 ms)
3223: C9N2O6 (1254375455850-1254375455737=113 ms)
3239: C3NO3 (1254375458116-1254375455868=2248 ms)
3296: C9NO3 (1254375459575-1254375458250=1325 ms)
3306: S3R (1254375464014-1254375459596=4418 ms)
3313: C6O6 (1254375464701-1254375464016=685 ms)
3348: C14HO4 (1254375465102-1254375464766=336 ms)
3360: C12O11 (1254375465830-1254375465193=637 ms)
3364: N2 (1254375475917-1254375465872=10045 ms)
3371: C21N7O17P3 (1254375479243-1254375475920=3323 ms)
3377: C6N2O2 (1254375481175-1254375479306=1869 ms)
3379: C3O6P (1254375482278-1254375481176=1102 ms)
3390: O10P3 (1254375484356-1254375482286=2070 ms)
3403: C5N2O3 (1254375486975-1254375484451=2524 ms)
3499: C9NO3 (1254375487745-1254375487074=671 ms)
3502: C5O8P (1254375489044-1254375487747=1297 ms)
3532: C55MgN4O5 (1254375489206-1254375489097=109 ms)
3537: C5NO4 (1254375494872-1254375489209=5663 ms)
3546: Fe (1254375507646-1254375494892=12754 ms)
3554: C5N2O2 (1254375507934-1254375507650=284 ms)
3566: H2 (1254375508526-1254375508033=493 ms)
3576: C12ClN4O7P2S (1254375508737-1254375508548=189 ms)
3577: Mn (1254375511113-1254375508738=2375 ms)
3582: C11NO6P (1254375511249-1254375511120=129 ms)
3628: O7P2 (1254375554180-1254375511388=42792 ms)
3633: O4P (1254375659461-1254375554183=105278 ms)
3647: C12N4OS (1254375659706-1254375659481=225 ms)
3664: C8HNO6P (1254375661230-1254375659713=1517 ms)
3665: C9N4O8P (1254375661450-1254375661231=219 ms)
3679: Mg (1254375679426-1254375661513=17913 ms)
3859: C20N7O6 (1254375679768-1254375679522=246 ms)
3860: C19N7O6 (1254375680069-1254375679769=300 ms)
4026: Ca (1254375681849-1254375680582=1267 ms)
4029: CNOR (1254375682983-1254375681850=1133 ms)
4031: COR2 (1254375686384-1254375682984=3400 ms)
4038: Cl (1254375686610-1254375686387=223 ms)
4099: F (1254375687012-1254375686767=245 ms)
4138: H (1254375722496-1254375687100=35396 ms)
4163: C6NO2 (1254375722805-1254375722566=239 ms)
4166: C6N2O2 (1254375724837-1254375722807=2030 ms)
4167: Mg (1254375746423-1254375724838=21585 ms)
4229: O (1254375754305-1254375746586=7719 ms)
4254: H3O4P (1254375771602-1254375754367=17235 ms)
4263: K (1254375771850-1254375771608=242 ms)
4265: C5NO2 (1254375772195-1254375771852=343 ms)
4297: Na (1254375772801-1254375772310=491 ms)
4311: C4O3R (1254375773107-1254375772835=272 ms)
4313: S (1254375795116-1254375773109=22007 ms)
4356: Zn (1254375814849-1254375795263=19586 ms)
4424: C5O5 (1254375818351-1254375814892=3459 ms)
4453: C2 (1254375818489-1254375818369=120 ms)
4482: C6N3O2 (1254375819699-1254375818525=1174 ms)
4494: C (1254375821009-1254375819706=1303 ms)
4519: Co (1254375821358-1254375821068=290 ms)
4670: C11N2O2 (1254375821817-1254375821583=234 ms)
4677: C4H2O4 (1254375822301-1254375821824=477 ms)
4801: Ni (1254375822605-1254375822450=155 ms)
4912: C5N2O3 (1254375823778-1254375822655=1123 ms)
5060: C5O5 (1254375824119-1254375823908=211 ms)
5111: C6O6 (1254375824420-1254375824212=208 ms)
5143: Cu (1254375824613-1254375824502=111 ms)
5357: C6N4O2 (1254375826277-1254375824919=1358 ms)
5368: C9NO5 (1254375826504-1254375826289=215 ms)
5369: Fe (1254375826620-1254375826505=115 ms)
5380: C3HO6P (1254375827340-1254375826635=705 ms)
5398: Na (1254375827949-1254375827359=590 ms)
5400: K (1254375828174-1254375827951=223 ms)
5402: Zn (1254375844116-1254375828175=15941 ms)
5404: Ca (1254375845806-1254375844117=1689 ms)
5438: HO (1254375846125-1254375845836=289 ms)
5538: CH3 (1254375847891-1254375846233=1658 ms)
5548: Ca (1254375861972-1254375847928=14044 ms)
5560: H2N (1254375866398-1254375861980=4418 ms)
5693: C10O6 (1254375867526-1254375866499=1027 ms)
5814: O7P2 (1254375910579-1254375867608=42971 ms)
5869: C2NOR2 (1254375914124-1254375910633=3491 ms)
5871: C3NOSR2 (1254375914574-1254375914161=413 ms)
5873: C6N4OR2 (1254375916764-1254375914575=2189 ms)
5875: C11N2OR2 (1254375917143-1254375916766=377 ms)
5877: C4NO3R2 (1254375917710-1254375917145=565 ms)
5885: C6N2OR2 (1254375919573-1254375917716=1857 ms)
5889: C5NO3R2 (1254375920901-1254375919576=1325 ms)
5895: C6N3OR2 (1254375922306-1254375920904=1402 ms)
5900: C5NO4 (1254375925689-1254375922310=3379 ms)
5902: C5NO4 (1254375930626-1254375925693=4933 ms)
5903: C5NO4 (1254375933920-1254375930626=3294 ms)
5906: C4NO4 (1254375934593-1254375933924=669 ms)
5907: C4NO4 (1254375935274-1254375934594=680 ms)
5909: C4NO4 (1254375936451-1254375935274=1177 ms)
5911: C9NOR2 (1254375936575-1254375936453=122 ms)
5913: C3NO2R2 (1254375940197-1254375936577=3620 ms)
5914: C3NOSeR2 (1254375940307-1254375940197=110 ms)
5920: C6NOR2 (1254375940705-1254375940311=394 ms)
5925: C5N2O2R2 (1254375942662-1254375940737=1925 ms)
5926: C4NO2R2 (1254375943012-1254375942662=350 ms)
5939: C4O4 (1254375943199-1254375943061=138 ms)
5993: C2O2 (1254375943413-1254375943287=126 ms)
6082: Zn (1254375958993-1254375943449=15544 ms)
6453: C10N5O13P3 (1254376116554-1254375959193=157361 ms)
6574: CHO2 (1254376116903-1254376116743=160 ms)
6706: C5O5 (1254376117248-1254376117131=117 ms)
7032: C3O4 (1254376117689-1254376117435=254 ms)
7104: C5NO3R2 (1254376118481-1254376117843=638 ms)
7252: C5NOSR2 (1254376118731-1254376118630=101 ms)
7411: C3O3 (1254376120056-1254376119011=1045 ms)
7465: CR (1254376121752-1254376120212=1540 ms)
7627: CNO (1254376122089-1254376121887=202 ms)
7741: C12ClN4OS (1254376122320-1254376122156=164 ms)
7858: CO2R (1254376122547-1254376122436=111 ms)
7891: Fe4S4 (1254376122844-1254376122585=259 ms)
8178: Mn (1254376124399-1254376122960=1439 ms)
8338: C4NO2 (1254376124643-1254376124480=163 ms)
9219: C4NO6P (1254376127494-1254376124951=2543 ms)
9234: C9N3O14P3 (1254376127605-1254376127498=107 ms)
9235: C10N5O14P3 (1254376132596-1254376127605=4991 ms)
9305: C3NO6P (1254376143823-1254376132629=11194 ms)
9311: C6O6 (1254376144017-1254376143825=192 ms)
9402: C5NOSR (1254376144332-1254376144214=118 ms)
9427: C4O2R2 (1254376144645-1254376144419=226 ms)
10281: O10P3 (1254376146646-1254376144942=1704 ms)
10308: C2OR (1254376148204-1254376146659=1545 ms)
10453: CHOR (1254376148682-1254376148321=361 ms)
10506: HOR (1254376149933-1254376148793=1140 ms)
10589: C21N7O17P3 (1254376150485-1254376150182=303 ms)
10602: C5N2O2R (1254376150727-1254376150503=224 ms)
10604: C5N2OR2 (1254376150946-1254376150728=218 ms)
10614: C5N2O2 (1254376151170-1254376150949=221 ms)
10617: C5N2OR (1254376151389-1254376151171=218 ms)
10641: C3O6P (1254376152229-1254376151404=825 ms)
10656: C16OR (1254376152505-1254376152235=270 ms)
10688: C5O5 (1254376155565-1254376152582=2983 ms)
10690: C3NO5PR2 (1254376166856-1254376155566=11290 ms)
10729: C12N4O7P2S (1254376167090-1254376166889=201 ms)
10748: C3NOR2 (1254376171309-1254376167097=4212 ms)
10756: C34O4 (1254376172041-1254376171320=721 ms)
10760: C9N2O15P3 (1254376172162-1254376172045=117 ms)
10786: OR (1254376172419-1254376172169=250 ms)
10828: C2NO2R (1254376173256-1254376172429=827 ms)
10830: C2NOR (1254376174784-1254376173258=1526 ms)
10883: C9NO2R2 (1254376175110-1254376174827=283 ms)
10899: NR (1254376202420-1254376175114=27306 ms)
10902: C2O (1254376203938-1254376202454=1484 ms)
10914: C9NO5 (1254376204203-1254376203942=261 ms)
11203: C6O6 (1254376204716-1254376204522=194 ms)
11226: C4HO7P (1254376205190-1254376204732=458 ms)
11680: C5NO2SR (1254376205649-1254376205392=257 ms)
11681: C5NOSR (1254376205900-1254376205650=250 ms)
11916: H (1254376206483-1254376206109=374 ms)
12216: C5NOR2 (1254376208374-1254376206750=1624 ms)
12217: C4N2O2R2 (1254376209040-1254376208375=665 ms)
12680: COSR2 (1254376209601-1254376209314=287 ms)
13478: C25HN2O19 (1254376210152-1254376209951=201 ms)
13662: C5O8P (1254376210482-1254376210379=103 ms)
</code></pre></div></div>]]></content><author><name>Egon Willighagen</name></author><category term="cdk" /><category term="groovy" /><category term="chebi" /><summary type="html"><![CDATA[Bioclipse has a bug report about browsing the ChEBI SD file in its moltable editor. Some entries make Bioclipse crash (as reported), or just very sluggish as with my Dell superlapcomputer :)]]></summary></entry></feed>