<?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/bsp.xml" rel="self" type="application/atom+xml" /><link href="http://egonw.github.io/blog/" rel="alternate" type="text/html" /><updated>2026-11-19T06:09:00+00:00</updated><id>http://egonw.github.io/blog/feed/by_tag/bsp.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 Bug Squash Party - Day 5</title><link href="http://egonw.github.io/blog/2006/09/24/cdk-bug-squash-party-day-5.html" rel="alternate" type="text/html" title="CDK Bug Squash Party - Day 5" /><published>2006-09-24T00:00:00+00:00</published><updated>2006-09-24T00:00:00+00:00</updated><id>http://egonw.github.io/blog/2006/09/24/cdk-bug-squash-party-day-5</id><content type="html" xml:base="http://egonw.github.io/blog/2006/09/24/cdk-bug-squash-party-day-5.html"><![CDATA[<p>Day 5 was formally the last day (see also the summaries of <a href="https://chem-bla-ics.linkedchemistry.info/2006/09/18/cdk-bug-squash-party-day-1.html">day 1 <i class="fa-solid fa-recycle fa-xs"></i></a>,
<a href="https://chem-bla-ics.linkedchemistry.info/2006/09/20/cdk-bug-squash-party-day-2.html">day 2 <i class="fa-solid fa-recycle fa-xs"></i></a> and
<a href="https://chem-bla-ics.linkedchemistry.info/2006/09/22/cdk-bug-squash-party-day-3-and-4.html">day 3/4 <i class="fa-solid fa-recycle fa-xs"></i></a>) of the
<a href="http://cdk.sf.net/">Chemistry Development Kit</a> <a href="http://wiki.cubic.uni-koeln.de/cdkwiki/doku.php?id=bsp200609">Bug Squash Party</a> (BSP).
Miguel uploaded the last bits of his CDK <a href="http://cheminfo.informatics.indiana.edu/~rguha/code/java/nightly/api/org/openscience/cdk/protein/data/PDBPolymer.html">PDBPolymer</a>
to CML to CDK PDBPolymer roundtripping functionality (closing a bug and a feature request in one go). Have not tested this first hand yet,
but looking forward to playing with this bit of code. Kai continued to work on the more difficult bits of the
<a href="http://wiki.cubic.uni-koeln.de/cdkwiki/doku.php?id=refactoringkernelclasses">code refactoring</a>, resulting in fewer though more
comprehensive commits. Stefan fixed another bug in JChemPaint; the rendering of implicit hydrogens.</p>

<p>About the last, the <a href="http://cheminfo.informatics.indiana.edu/~rguha/code/java/nightly/api/org/openscience/cdk/renderer/Renderer2D.html">Renderer2D</a>
needs a serious overhaul. That is, a complete rewrite in proper Java2D, which can use affine transformations for zooming, scaling and fixing the
coordinate system. The current code is ancient and predates Java2D. <a href="http://depth-first.com/articles/2006/08/28/drawing-2-d-structures-with-structure-cdk">Rich’ code</a>
might be a good starting point. I would love to do this rewrite, but lack the resources… anyone in need of some open source fame?</p>

<p>I worked on atom typing, which is yet largely untested, and often integrated with other bits of code. Yesterday I uploaded
<a href="http://svn.sourceforge.net/viewvc/cdk/trunk/cdk/src/org/openscience/cdk/atomtype/">some first patches</a> which I wrote on the train ride
back to the Netherlands.</p>

<p>Now, what can be concluded from this BSP? The participant count was below what I had hoped for, but those who did worked hard (and
with pleasure I hope :) The total number of JUnit test has increased:</p>

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

<p>And so has the number of failing tests:</p>

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

<p>These plots were made with <a href="http://www.r-project.org/">R</a> from data created with two custom scripts both found in
<a href="http://svn.sourceforge.net/viewvc/cdk/trunk/cdk/tools/">cdk/tools</a>: makeBugCountPlot.pl and extractBugCountPlotData.bsh.
Note that <a href="http://cheminfo.informatics.indiana.edu/~rguha/code/java/nightly/junitsummary.html">96.86% of the tests do not fail</a>!</p>

<p>The bump in failing tests seems to be due to <a href="http://svn.sourceforge.net/viewvc/cdk/trunk/cdk/src/org/openscience/cdk/smiles/SmilesParser.java?r1=7009&amp;r2=7011">commit 7010-7011</a>,
which has to do with SMILES parsing. Yes, the bond order resolving is still not solved. I don’t seem to get Todd’s patch for this working,
but not giving up either. The bump is so large, because quite some JUnit tests use the SmilesParser as a quick tool to get a configured
connection table. However, these tests should be replaced by explicit CDK models, which is easy done with the
<a href="http://cheminfo.informatics.indiana.edu/~rguha/code/java/nightly/api/org/openscience/cdk/io/CDKSourceCodeWriter.html">CDKSourceCodeWriter</a>.
I’ll blog about how to use that soon.</p>]]></content><author><name>Egon Willighagen</name></author><category term="cdk" /><category term="bsp" /><category term="junit" /><summary type="html"><![CDATA[Day 5 was formally the last day (see also the summaries of day 1 , day 2 and day 3/4 ) of the Chemistry Development Kit Bug Squash Party (BSP). Miguel uploaded the last bits of his CDK PDBPolymer to CML to CDK PDBPolymer roundtripping functionality (closing a bug and a feature request in one go). Have not tested this first hand yet, but looking forward to playing with this bit of code. Kai continued to work on the more difficult bits of the code refactoring, resulting in fewer though more comprehensive commits. Stefan fixed another bug in JChemPaint; the rendering of implicit hydrogens.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://egonw.github.io/blog/blog/assets/images/junit_tests.png" /><media:content medium="image" url="http://egonw.github.io/blog/blog/assets/images/junit_tests.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">CDK Bug Squash Party - Day 3 and 4</title><link href="http://egonw.github.io/blog/2006/09/22/cdk-bug-squash-party-day-3-and-4.html" rel="alternate" type="text/html" title="CDK Bug Squash Party - Day 3 and 4" /><published>2006-09-22T00:00:00+00:00</published><updated>2006-09-22T00:00:00+00:00</updated><id>http://egonw.github.io/blog/2006/09/22/cdk-bug-squash-party-day-3-and-4</id><content type="html" xml:base="http://egonw.github.io/blog/2006/09/22/cdk-bug-squash-party-day-3-and-4.html"><![CDATA[<p>Because I was struggling hard with <a href="http://sourceforge.net/mailarchive/forum.php?thread_id=30594266&amp;forum_id=2178">default values for cdk.interfaces fields</a>,
I did not have time to write up the <a href="http://wiki.cubic.uni-koeln.de/cdkwiki/doku.php?id=bsp200609">Bug Squash Party</a> report for day 3 (see also
<a href="https://chem-bla-ics.linkedchemistry.info/2006/09/18/cdk-bug-squash-party-day-1.html">day 1 <i class="fa-solid fa-recycle fa-xs"></i></a> and
<a href="https://chem-bla-ics.linkedchemistry.info/2006/09/20/cdk-bug-squash-party-day-2.html">day 2 <i class="fa-solid fa-recycle fa-xs"></i></a>).
But here it is.</p>

<h1 id="day-3">Day 3</h1>

<p>Kai worked hard on getting the <code class="language-plaintext highlighter-rouge">cdk.interfaces</code> API cleaned up, as <a href="http://wiki.cubic.uni-koeln.de/cdkwiki/doku.php?id=refactoringkernelclasses">agreed upon earlier</a>.
Christian added a test for the <a href="http://cheminfo.informatics.indiana.edu/~rguha/code/java/nightly/api/org/openscience/cdk/geometry/GeometryTools.html">RMSD calculator</a>
(see <code class="language-plaintext highlighter-rouge">getAllAtomRMSD()</code>), and cleaned up his code a bit. Stefan continued his bug-squashing on JChemPaint and fixed another one or two bugs.</p>

<p>Rajarshi uploaded a patch to set undefined atomic properties, like partial and formal charges and the implicit hydrogen count, to <code class="language-plaintext highlighter-rouge">UNSET</code> by default.
However, this broke the CDK at many places, as apparently many class methods assume the default to be zero. After discussing the issue at the CUBIC,
it turned out that this was sort of the intended, though undocumented, behavior: use the <a href="http://java.sun.com/docs/books/tutorial/java/nutsandbolts/datatypes.html">default Java values</a>.</p>

<p>And I added missing <code class="language-plaintext highlighter-rouge">clone()</code> methods, closing one bug on SourceForge, added files for Eclipse to know how to build the CDK with Ant (thanx
to Nico for similar files for <a href="http://www.jmol.org/">Jmol</a>), and got CDK compiled again against <a href="http://www.classpath.org/">Classpath</a>.</p>

<h1 id="day-4">Day 4</h1>

<p>Miguel uploaded his first patched for support saving <a href="http://cheminfo.informatics.indiana.edu/~rguha/code/java/nightly/api/org/openscience/cdk/protein/data/PDBPolymer.html">PDBPolymer</a>
data structures into and restoring them again from CML, addressing an <a href="https://sourceforge.net/tracker/index.php?func=detail&amp;aid=1085912&amp;group_id=20024&amp;atid=120024">almost two-year-old bug</a>.
He created new cdk.interfaces for them, to address module dependencies, but a large set of JUnit tests are <a href="http://cheminfo.informatics.indiana.edu/~rguha/code/java/nightly/test/result-data.html">yet missing</a>.</p>

<p>Kai continued his cdk.interfaces refactoring, working on the more involved changes. Stefan, Tobias, and me worked on a poster and three three-fold
flyers for our CDK booth at <a href="http://www.inf.uni-konstanz.de/complife06/">CompLife2006</a>, so have not been very productive in bug squashing.
But we are happy with the result. Below is a screenshot on one side of the main CDK folder:</p>

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

<p>With <a href="http://cheminfo.informatics.indiana.edu/~rguha/code/java/nightly/junitsummary.html">77 failing JUnit test</a>, and still a too large number of
<a href="http://sourceforge.net/tracker/?atid=120024&amp;group_id=20024&amp;func=browse">open bugs on SourceForge</a>, there is plenty of things to do today.</p>]]></content><author><name>Egon Willighagen</name></author><category term="cdk" /><category term="bsp" /><category term="java" /><category term="pdb" /><summary type="html"><![CDATA[Because I was struggling hard with default values for cdk.interfaces fields, I did not have time to write up the Bug Squash Party report for day 3 (see also day 1 and day 2 ). But here it is.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://egonw.github.io/blog/blog/assets/images/flyerScreeny.png" /><media:content medium="image" url="http://egonw.github.io/blog/blog/assets/images/flyerScreeny.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">CDK Bug Squash Party - Day 2</title><link href="http://egonw.github.io/blog/2006/09/20/cdk-bug-squash-party-day-2.html" rel="alternate" type="text/html" title="CDK Bug Squash Party - Day 2" /><published>2006-09-20T00:00:00+00:00</published><updated>2006-09-20T00:00:00+00:00</updated><id>http://egonw.github.io/blog/2006/09/20/cdk-bug-squash-party-day-2</id><content type="html" xml:base="http://egonw.github.io/blog/2006/09/20/cdk-bug-squash-party-day-2.html"><![CDATA[<p>Like <a href="http://chem-bla-ics.blogspot.com/2006/09/cdk-bug-squash-party-day-1.html">yesterday</a> I will give short overview of things done at the
<a href="http://cdk.sf.net/">Chemistry Development Kit</a> <a href="http://wiki.cubic.uni-koeln.de/cdkwiki/doku.php?id=bsp200609">Bug Squash Party</a> (BSP).
I think Stefan was the only to fix and close a bug report yesterday. Rajarshi added the
<a href="http://cheminfo.informatics.indiana.edu/~rguha/code/java/nightly/api/org/openscience/cdk/qsar/descriptors/molecular/MDEDescriptor.html">MDE descriptor</a>
(yes, during a BSP new code might be commited too ;)</p>

<p>More interestingly, discussion on the <a href="http://sourceforge.net/mailarchive/forum.php?forum_id=2178">developers mailing list</a> on the
patch by Todd Martin of the <a href="http://www.epa.gov/">EPA</a> to address deducing bond orders in
SMILES parsing (the major source of current open bugs!). A problem seems to be when his tool should be called in the SmilesParser class.</p>

<p>More details on the proceedings can be found on the <a href="http://wiki.cubic.uni-koeln.de/cdkwiki/doku.php?id=bsp200609">BSP wiki page</a>.</p>]]></content><author><name>Egon Willighagen</name></author><category term="cdk" /><category term="bsp" /><summary type="html"><![CDATA[Like yesterday I will give short overview of things done at the Chemistry Development Kit Bug Squash Party (BSP). I think Stefan was the only to fix and close a bug report yesterday. Rajarshi added the MDE descriptor (yes, during a BSP new code might be commited too ;)]]></summary></entry><entry><title type="html">CDK Bug Squash Party - Day 1</title><link href="http://egonw.github.io/blog/2006/09/18/cdk-bug-squash-party-day-1.html" rel="alternate" type="text/html" title="CDK Bug Squash Party - Day 1" /><published>2006-09-18T00:00:00+00:00</published><updated>2006-09-18T00:00:00+00:00</updated><id>http://egonw.github.io/blog/2006/09/18/cdk-bug-squash-party-day-1</id><content type="html" xml:base="http://egonw.github.io/blog/2006/09/18/cdk-bug-squash-party-day-1.html"><![CDATA[<p>I plan to do a daily coverage of the <a href="http://cdk.sf.net/">Chemistry Development Kit</a> <a href="http://wiki.cubic.uni-koeln.de/cdkwiki/doku.php?id=bsp200609">Bug Squash Party</a>
(BSP). While Stefan was working hard to get the <a href="http://wiki.cubic.uni-koeln.de/">wiki machine</a> back online after a hard-disc crash, Rajarshi,
Miguel and me have been working hard. Miguel started to work on missing JUnit tests for <a href="http://sourceforge.net/tracker/?group_id=20024&amp;atid=120024">bugs reported on SourceForge</a>
and Rajarshi <a href="http://cia.navi.cx/stats/author/rajarshi">fixed PMD, JavaDoc and other problems</a>. I wrote 19 new JUnit tests and fixed two bugs,
but with 44 bugs still open at SourceForge, there is quite some work to do. Luckily, several others will join in later this week.</p>

<p>As can be read on the <a href="http://wiki.cubic.uni-koeln.de/cdkwiki/doku.php?id=bsp200609">BSP wiki page</a>, there is work for everyone, on every level,
and even for non-programmers. Or just stop by on <a href="irc://irc.freenode.net/#jmol">CDK’s IRC channel</a> (link works with Konqueror,
maybe other browsers too) to see what a BSP looks like from the inside.</p>]]></content><author><name>Egon Willighagen</name></author><category term="cdk" /><category term="bsp" /><summary type="html"><![CDATA[I plan to do a daily coverage of the Chemistry Development Kit Bug Squash Party (BSP). While Stefan was working hard to get the wiki machine back online after a hard-disc crash, Rajarshi, Miguel and me have been working hard. Miguel started to work on missing JUnit tests for bugs reported on SourceForge and Rajarshi fixed PMD, JavaDoc and other problems. I wrote 19 new JUnit tests and fixed two bugs, but with 44 bugs still open at SourceForge, there is quite some work to do. Luckily, several others will join in later this week.]]></summary></entry></feed>