<?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/mcprinciples.xml" rel="self" type="application/atom+xml" /><link href="http://egonw.github.io/blog/" rel="alternate" type="text/html" /><updated>2026-11-22T10:22:45+00:00</updated><id>http://egonw.github.io/blog/feed/by_tag/mcprinciples.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">What is ‘hes’?</title><link href="http://egonw.github.io/blog/2010/12/06/what-is-hes.html" rel="alternate" type="text/html" title="What is ‘hes’?" /><published>2010-12-06T00:00:00+00:00</published><updated>2010-12-06T00:00:00+00:00</updated><id>http://egonw.github.io/blog/2010/12/06/what-is-hes</id><content type="html" xml:base="http://egonw.github.io/blog/2010/12/06/what-is-hes.html"><![CDATA[<p><strong>hes</strong> - <em>pronoun</em></p>

<ol>
  <li>Used to refer to a person whose gender is unspecified, unknown, or irrelevant.</li>
</ol>

<p>Typical use: <em>hes was a scientist born in the late 20th century</em>.</p>]]></content><author><name>Egon Willighagen</name></author><category term="mcprinciples" /><summary type="html"><![CDATA[hes - pronoun]]></summary></entry><entry><title type="html">The Answer to: Are these organic molecules the same?</title><link href="http://egonw.github.io/blog/2010/10/23/answer-to-are-these-organic-molecules.html" rel="alternate" type="text/html" title="The Answer to: Are these organic molecules the same?" /><published>2010-10-23T00:00:00+00:00</published><updated>2010-10-23T00:00:00+00:00</updated><id>http://egonw.github.io/blog/2010/10/23/answer-to-are-these-organic-molecules</id><content type="html" xml:base="http://egonw.github.io/blog/2010/10/23/answer-to-are-these-organic-molecules.html"><![CDATA[<p>Ten days ago I asked my readers if two molecules were the same or not. I guessed
they were not, when I was asked <a href="http://chem-bla-ics.blogspot.com/2010/10/are-these-organic-molecules-same.html">Are these organic molecules the same?</a>
The people who replied to my post were quite convinced they were, and <a href="http://wwmm.ch.cam.ac.uk/blogs/murrayrust/">Peter</a>
gave the context of the pub quiz: assumptions may not be correct.</p>

<p>Indeed, I assumed there were hydrogens missing (implicit), and that line corners
indicate places where carbons are. But the key to this problem was that I also
assumed that the E/Z stereochemistry for the two double bonds were properly
defined. Or, more accurately, I assumed that because I was comparing the two
molecules, the E/Z stereochemistry for the double bond between the rings was
identical in both drawings. We all did.</p>

<p>Under that assumption, these two molecules are indeed not the same. However,
if the E/Z stereochemistry is actually not the same for that double bond, …
well, you get the point. Perhaps this was not the best of examples, as it is
quite conventional to use 2D coordinates to determine E/Z stereochemistry…
we even have a special drawing style to indicate the E/Z stereochemistry is <em>unknown</em>.
Then again, how often does the organic chemist really use that.</p>

<p>A more convincing example was also drawn in the pub, and I should have given
that one. Peter <a href="http://wwmm.ch.cam.ac.uk/blogs/murrayrust/?p=2643">posted those later</a>.
These involve a <a href="http://en.wikipedia.org/wiki/Spiro_compound">spiro compounds</a>.
Here too, I assumed that the stereochemistry around the spiro carbon was identical.
My bad. There was one person in the pub who spotted the problem: David Jessop.</p>

<p>Underlying issue, of course, is those stupid 2D drawings. Jmol has been around
for more than 10 years now (and non-free tools too), and we still use 2D drawings…
why, oh why? 3D coordinates and explicit hydrogens, that is what our molecular
data should be represented with. Henry does this right, over and over again,
in his brilliant <a href="http://www.ch.ic.ac.uk/rzepa/blog/">blog</a>. Well, most of the
time anyway. Look for the ‘Click for 3D’ statements behind the figures, and
just give it a try, e.g. in <a href="http://www.ch.ic.ac.uk/rzepa/blog/?p=2619">this post on I(CN)7</a>.</p>

<p>BTW, a clear example of <a href="http://chem-bla-ics.blogspot.com/2010/08/molecular-chemometrics-principles-2-be.html">McPrinciple #2</a>.</p>]]></content><author><name>Egon Willighagen</name></author><category term="mcprinciples" /><summary type="html"><![CDATA[Ten days ago I asked my readers if two molecules were the same or not. I guessed they were not, when I was asked Are these organic molecules the same? The people who replied to my post were quite convinced they were, and Peter gave the context of the pub quiz: assumptions may not be correct.]]></summary></entry><entry><title type="html">Visualizing data embedded in XHTML+RDFa</title><link href="http://egonw.github.io/blog/2010/09/27/visualizing-data-embedded-in-xhtmlrdfa.html" rel="alternate" type="text/html" title="Visualizing data embedded in XHTML+RDFa" /><published>2010-09-27T00:00:00+00:00</published><updated>2010-09-27T00:00:00+00:00</updated><id>http://egonw.github.io/blog/2010/09/27/visualizing-data-embedded-in-xhtmlrdfa</id><content type="html" xml:base="http://egonw.github.io/blog/2010/09/27/visualizing-data-embedded-in-xhtmlrdfa.html"><![CDATA[<p><a href="https://web.archive.org/web/20160826091118/http://www.pharmash.com/posts/2010-09-27-sparql-to-chart.html">Orion</a>
picked up <a href="http://chem-bla-ics.blogspot.com/2010/09/pulling-out-data-as-json-from-xhtmlrdfa.html">my challenge</a>
and made an web based application to graph data from one of my <a href="http://egonw.github.com/cheminformatics.classics/classic1.html">XHTML-RDFa pages</a>.
Well done! He wrote <a href="http://www.pharmash.com/posts/2010-09-27-sparql-to-chart.html">his work</a>
up in his blog of which the results looks like:</p>

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

<p>The text field shows the SPARQL used to aggregate the data, which is then visualized
in the plot below that field. You can edit the SPARQL and, for example, plot
the boiling point (t) as function of the number of carbons (p):</p>

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

<p>This work nicely shows some interesting McPrinciples: it shows what happens
if we allow reuse and share our knowledge; it shows that nice graphics and semantic
access to original data are very compatible. All in all, this is an important
step forward to semantic publishing of chemical data! Orion, thanx for this
really nice work!</p>]]></content><author><name>Egon Willighagen</name></author><category term="chemistry" /><category term="rdf" /><category term="sparql" /><category term="mcprinciples" /><summary type="html"><![CDATA[Orion picked up my challenge and made an web based application to graph data from one of my XHTML-RDFa pages. Well done! He wrote his work up in his blog of which the results looks like:]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://egonw.github.io/blog/blog/assets/images/sparqlGraphing.png" /><media:content medium="image" url="http://egonw.github.io/blog/blog/assets/images/sparqlGraphing.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">Using PubChem to create CDK unit tests</title><link href="http://egonw.github.io/blog/2010/09/26/using-pubchem-to-create-cdk-unit-tests.html" rel="alternate" type="text/html" title="Using PubChem to create CDK unit tests" /><published>2010-09-26T00:00:00+00:00</published><updated>2010-09-26T00:00:00+00:00</updated><id>http://egonw.github.io/blog/2010/09/26/using-pubchem-to-create-cdk-unit-tests</id><content type="html" xml:base="http://egonw.github.io/blog/2010/09/26/using-pubchem-to-create-cdk-unit-tests.html"><![CDATA[<p>In 2008 I posted about <a href="https://chem-bla-ics.blogspot.com/2008/05/wicked-chemistry-and-unit-testing.html">Wicked chemistry and unit testing</a>
and was using <a href="https://en.wikipedia.org/wiki/BeanShell">BeanShell</a> at the time
to convert a structure on <a href="https://pubchem.ncbi.nlm.nih.gov/">PubChem</a> into <a href="http://cdk.sf.net">CDK</a>
source code. But since I rather use <a href="https://en.wikipedia.org/wiki/Groovy_%28programming_language%29">Groovy</a>
now, I have updated the code. I used <a href="https://chem-bla-ics.blogspot.com/2010/09/cdk-137-changes-authors-and-reviewers.html">CDK 1.3.6</a>
and the PubChem XML format now:</p>

<pre>import org.openscience.cdk.Molecule;
import org.openscience.cdk.io.*;

if (args.length == 0 || args[0] == null) {
  System.out.println("Syntax: pc2ut.groovy [CID]\n");
  System.exit(0);
}

String cid = args[0];
String urlString =
  "http://pubchem.ncbi.nlm.nih.gov/summary/" +
  "summary.cgi?disopt=SaveXML&amp;cid=" + cid;

URL url = new URL(urlString);

PCCompoundXMLReader reader =
  new PCCompoundXMLReader(url.openStream());
Molecule mol = reader.read(new Molecule());

StringWriter stringWriter = new StringWriter();
CDKSourceCodeWriter writer =
  new CDKSourceCodeWriter(stringWriter);
writer.write(mol);
writer.close();

System.out.print(stringWriter.toString());
</pre>

<p><strong>Update</strong> An observant reader would have noticed that the output of the current
CDKSourceCodeWriter is actually producing code that does not compile. The CDK
API has changed, but the created output was not updated accordingly. Apparently,
no one is actually using this class, or those who have were not interested in
that piece of functionality to file a bug report.</p>]]></content><author><name>Egon Willighagen</name></author><category term="cdk" /><category term="pubchem" /><category term="mcprinciples" /><summary type="html"><![CDATA[In 2008 I posted about Wicked chemistry and unit testing and was using BeanShell at the time to convert a structure on PubChem into CDK source code. But since I rather use Groovy now, I have updated the code. I used CDK 1.3.6 and the PubChem XML format now:]]></summary></entry><entry><title type="html">Presentation at AstraZeneca</title><link href="http://egonw.github.io/blog/2010/09/22/presentation-at-astrazeneca.html" rel="alternate" type="text/html" title="Presentation at AstraZeneca" /><published>2010-09-22T00:00:00+00:00</published><updated>2010-09-22T00:00:00+00:00</updated><id>http://egonw.github.io/blog/2010/09/22/presentation-at-astrazeneca</id><content type="html" xml:base="http://egonw.github.io/blog/2010/09/22/presentation-at-astrazeneca.html"><![CDATA[<p>Today and tomorrow I am guest at AstraZeneca in Mölndal. This is the presentation
I gave today about the work on Bioclipse-RDF:</p>

<p><a href="https://doi.org/10.5281/zenodo.3597662"><img src="/blog/assets/images/az_presentation_semwebLS.png" alt="" /></a></p>]]></content><author><name>Egon Willighagen</name></author><category term="chemistry" /><category term="rdf" /><category term="semweb" /><category term="mcprinciples" /><category term="justdoi:10.5281/zenodo.3597662" /><summary type="html"><![CDATA[Today and tomorrow I am guest at AstraZeneca in Mölndal. This is the presentation I gave today about the work on Bioclipse-RDF:]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://egonw.github.io/blog/blog/assets/images/az_presentation_semwebLS.png" /><media:content medium="image" url="http://egonw.github.io/blog/blog/assets/images/az_presentation_semwebLS.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">The Molecular Chemometrics Principles #3: stand on shoulders</title><link href="http://egonw.github.io/blog/2010/08/14/molecular-chemometrics-principles-3.html" rel="alternate" type="text/html" title="The Molecular Chemometrics Principles #3: stand on shoulders" /><published>2010-08-14T00:00:00+00:00</published><updated>2010-08-14T00:00:00+00:00</updated><id>http://egonw.github.io/blog/2010/08/14/molecular-chemometrics-principles-3</id><content type="html" xml:base="http://egonw.github.io/blog/2010/08/14/molecular-chemometrics-principles-3.html"><![CDATA[<p>I have blogged about two Molecular Chemometrics principles so far:</p>

<ul>
  <li><a href="https://chem-bla-ics.linkedchemistry.info/2010/08/09/molecular-chemometrics-principles-1.html">McPrinciple #1: access to data</a></li>
  <li><a href="https://chem-bla-ics.linkedchemistry.info/2010/08/12/molecular-chemometrics-principles-2-be.html">McPrinciple #2: be clear in what you mean</a></li>
</ul>

<p>Peter’s post <a href="https://doi.org/10.59350/hphjc-qgr72">#solo10: Green Chain Reaction; where to store the data? DSR? IR? BioTorrent, OKF or ??? <i class="fa-solid fa-recycle fa-xs"></i></a>
gives me enough basis to write up a third principle:</p>

<p><strong>Molecular Chemometrics Principles #3</strong>: We make scientific progress if we build on past achievements.</p>

<p>Sounds logical, right? Practically, the way we share our cheminformatics knowledge makes this standing on shoulders pretty difficult.
But there is one particular aspect I would like to ask your attention for: you can contribute by making clear what shoulders
you would like to stand on. That is, where do you prefer to put your effort, and what message would you like to give to your user community.</p>

<p>In the aforelinked post, Peter asks where he should upload his data, and he suggest <a href="http://www.biotorrents.net/">BioTorrent</a> (see my review
<a href="https://chem-bla-ics.linkedchemistry.info/2010/04/18/bittorrents-for-science.html">BitTorrents for Science <i class="fa-solid fa-recycle fa-xs"></i></a>), DSpace, and <a href="http://www.ckan.net/">CKAN</a>.
Now, his <a href="http://www.google.se/search?sourceid=chrome&amp;client=ubuntu&amp;channel=cs&amp;ie=UTF-8&amp;q=%22Green+Chain+Reaction%22">Green Chain Reaction</a>
is picked up (see <a href="http://researchremix.wordpress.com/2010/08/11/green-chain-reaction-project-putting-my-minutes-where-my-mouth-is/">these</a>
<a href="http://scienceonlinelondon.wikidot.com/topics:green-chain-reaction">few</a> <a href="https://doi.org/10.59350/h2jq5-3np88">blog <i class="fa-solid fa-recycle fa-xs"></i></a> posts),
and the resulting data should be distributed as much as possible. The exact location does not really matter…</p>

<p>But…</p>

<p>By picking where you upload, you make a statement to your community: “<em>Look guys, we are distributing our data via Foo, because we believe those guys are doing good work! Perhaps you can support them too.</em>”.</p>

<p>This principle does not only apply to data, it applies to things too. For example, when
<a href="http://www.chemspider.com/blog/ichemlabs-and-rsc-chemspider-announce-partnership.html">iChemLabs and RSC ChemSpider Announce Partnership</a>
they do not just improve the user experience of ChemSpider (which I certainly won’t object against), but they also imply
“<em>Look dudes, your product is just not good enough and we do not want to help you improve it either</em>”.
Of course, ChemSpider has every right, and for them to succeed it is crucial to make decisions like this. Fortunately,
<a href="http://web.chemdoodle.com/installation.php">ChemDoodle is GPL</a>.</p>

<p>Every project with a user base has the opportunity to support shoulders, if they only visibly stand on them. By merely discussion the
<em>Green Chain Reaction</em>, I show to support this social web experiment. You can too. Use these powers wisely. May the McPrinciples be with you.</p>]]></content><author><name>Egon Willighagen</name></author><category term="mcprinciples" /><category term="solo10" /><category term="chemdoodle" /><category term="chemspider" /><category term="javascript" /><category term="justdoi:10.59350/hphjc-qgr72" /><category term="justdoi:10.59350/h2jq5-3np88" /><summary type="html"><![CDATA[I have blogged about two Molecular Chemometrics principles so far:]]></summary></entry><entry><title type="html">The Molecular Chemometrics Principles #2: be clear in what you mean</title><link href="http://egonw.github.io/blog/2010/08/12/molecular-chemometrics-principles-2-be.html" rel="alternate" type="text/html" title="The Molecular Chemometrics Principles #2: be clear in what you mean" /><published>2010-08-12T00:00:00+00:00</published><updated>2010-08-12T00:00:00+00:00</updated><id>http://egonw.github.io/blog/2010/08/12/molecular-chemometrics-principles-2-be</id><content type="html" xml:base="http://egonw.github.io/blog/2010/08/12/molecular-chemometrics-principles-2-be.html"><![CDATA[<p>I noted <a href="https://chem-bla-ics.linkedchemistry.info/2010/08/09/molecular-chemometrics-principles-1.html">earlier this week</a>
that <em>[d]uring the week [in <a href="/2010/08/06/oxford-2.html">Oxford <i class="fa-solid fa-recycle fa-xs"></i></a>], someone (name and address is know at the
editorial office) commented on the fact that my blog posts are somewhat difficult to follow; that is, it’s
often not clear why I am posting what I am posting</em>. This triggered the start of a series of principles in
the field I coined <a href="https://doi.org/10.1080/10408340600969601">Molecular Chemometrics</a>, and the promise
that I will try to indicate in each blog post to which of these principles it relates. Just to put things in a bit more
perspective; to make a bit more clear why I am blogging about that bit; just to be clear in what I mean.</p>

<p>Now, the first principle was about the need for access to data (<a href="https://chem-bla-ics.linkedchemistry.info/2010/08/09/molecular-chemometrics-principles-1.html">McPrinciple #1</a>).
This principle goes without saying, one would think, but is not widely accepted yet. This is why Open Data promotion is still needed. For example, data in papers
still is not freely redistributable, as <a href="https://chem-bla-ics.linkedchemistry.info/2010/08/09/molecular-chemometrics-principles-1.html">Peter points out once again</a>.</p>

<p>Anyway, this post is not about McPrinciple #1, but about the second principle.</p>

<p><strong>Molecular Chemometrics Principles #2</strong>: In order to reproduce cheminformatics studies you need to be able to understand the input data.</p>

<p>Readers of my blog will surely recognize this theme. Clearly this theme explains my past fetish for the
<a href="http://chem-bla-ics.blogspot.com/search?q=CML">Chemical Markup Language</a>, and my more recent work on the
<a href="http://chem-bla-ics.blogspot.com/search?q=RDF">Resource Description Framework</a>.</p>

<p>And it is so easy to jump to conclusions. Easy to make mistakes. And this is not just at the received side; the sending
person may have accidentally made a mistake, or left something accidentally unclear, causing incorrect assumptions, and
therefore errors in the cheminformatics computation. Now, if the data was semantically (clearly) annotated, and the
meaning was clear, it was also trivial to see when a mistake had sneaked in. Think of it as a check bit.</p>

<p>“Well, isn’t this a bit exaggerated,” you might say. Perhaps, perhaps not. An simple, recent example. We all know
<a href="http://www.opensmiles.org/">SMILES</a>, right? And we all know that lower case element symbols indicate aromaticity, right?
That is, c1ccccc1 is aromatic, right? So, what’s the problem then?</p>

<p>Now, consider the SMILES string c1ccc1. Lower case carbon element symbols, so aromatic, right? Oh, wait…</p>

<p>Therefore, be clear in what you mean. It saves us from a lot of trouble.</p>

<p>Further reading:</p>

<ul>
  <li><a href="https://chem-bla-ics.linkedchemistry.info/2010/08/09/molecular-chemometrics-principles-1.html">The Molecular Chemometrics Principles #1: access to data</a></li>
  <li>Molecular Chemometrics, 2006 (doi:<a href="https://doi.org/10.1080/10408340600969601">10.1080/10408340600969601</a>)</li>
</ul>]]></content><author><name>Egon Willighagen</name></author><category term="mcprinciples" /><category term="chemometrics" /><category term="rdf" /><category term="cml" /><category term="semweb" /><category term="doi:10.1080/10408340600969601" /><summary type="html"><![CDATA[I noted earlier this week that [d]uring the week [in Oxford ], someone (name and address is know at the editorial office) commented on the fact that my blog posts are somewhat difficult to follow; that is, it’s often not clear why I am posting what I am posting. This triggered the start of a series of principles in the field I coined Molecular Chemometrics, and the promise that I will try to indicate in each blog post to which of these principles it relates. Just to put things in a bit more perspective; to make a bit more clear why I am blogging about that bit; just to be clear in what I mean.]]></summary></entry><entry><title type="html">The Molecular Chemometrics Principles #1: access to data</title><link href="http://egonw.github.io/blog/2010/08/09/molecular-chemometrics-principles-1.html" rel="alternate" type="text/html" title="The Molecular Chemometrics Principles #1: access to data" /><published>2010-08-09T00:00:00+00:00</published><updated>2010-08-09T00:00:00+00:00</updated><id>http://egonw.github.io/blog/2010/08/09/molecular-chemometrics-principles-1</id><content type="html" xml:base="http://egonw.github.io/blog/2010/08/09/molecular-chemometrics-principles-1.html"><![CDATA[<p>The meetings in and around Oxford were great! I already wrote that the Predictive Toxicology workshop was brilliant
(see <a href="/2010/08/01/oxford.html">Oxford… #1 <i class="fa-solid fa-recycle fa-xs"></i></a>) and
<a href="/2010/08/06/oxford-2.html">Oxford… #2 <i class="fa-solid fa-recycle fa-xs"></i></a>), but I also very, very much enjoyed meeting up
with <a href="http://www.danhagon.me.uk/blog/">Dan</a> and <a href="http://semanticscience.wordpress.com/">Nico</a>! During the week, someone
(name and address is know at the editorial office) commented on the fact that my blog posts are somewhat difficult
to follow; that is, it’s often not clear why I am posting what I am posting.</p>

<p>Indeed, I am not particularly one of those bloggers who spends trees after trees, in great detail explaining what is going on.
I do make a lot of use of <a href="http://en.wikipedia.org/wiki/Hyperlink">hyperlinking</a>; much more than the average blogger. I
actually assume that readers follow links, to read about the perspective of a blog post. But we all know that scientists
do not read the cited papers in a paper they are reading, so who am I to assume blog readers would start doing that with blogs :)</p>

<p>Well, since <a href="/2010/02/19/open-data-panton-principles.html">principles seems popular <i class="fa-solid fa-recycle fa-xs"></i></a>, it might be
a good start of my grand scheme that is behind this blog: the Molecular Chemometrics Principles. Hence, this first post about
the why. The why is simply to provide a reference frame to what I am blogging about. In the next few posts on these
McPrinciples (is that a catchy name, or what?) that will appear over the next two weeks, I will outline the code of
chem-bla-ics. And, moreover, from now on, I will tag all my posts with the reaons why I make that post. I am sure that will
not be too helpful for the occasional reader, but for anyone who is serious about chem-bla-ics, this will be a genuine gold
mine of data for pattern recognition and data mining otherwise.</p>

<p>So, here goes.</p>

<p><strong>Molecular Chemometrics Principles #1</strong>: In order to reproduce cheminformatics studies you need access to the input data.</p>

<p>The reason for this is that statistical modeling very much depends on the data on which modeling was done, patterns
were recognized, etc. Therefore, without the input data, it is practically impossible to accurately reproduce results.
Fortunately, the acceptance of the importance of access to data (e.g. as Open Data) is slowly getting momentum in
science.</p>

<p>Further reading: Molecular Chemometrics, 2006 (doi:<a href="https://doi.org/10.1080/10408340600969601">10.1080/10408340600969601</a>)</p>]]></content><author><name>Egon Willighagen</name></author><category term="chemometrics" /><category term="mcprinciples" /><category term="doi:10.1080/10408340600969601" /><summary type="html"><![CDATA[The meetings in and around Oxford were great! I already wrote that the Predictive Toxicology workshop was brilliant (see Oxford… #1 ) and Oxford… #2 ), but I also very, very much enjoyed meeting up with Dan and Nico! During the week, someone (name and address is know at the editorial office) commented on the fact that my blog posts are somewhat difficult to follow; that is, it’s often not clear why I am posting what I am posting.]]></summary></entry></feed>