<?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/metabolomics.xml" rel="self" type="application/atom+xml" /><link href="http://egonw.github.io/blog/" rel="alternate" type="text/html" /><updated>2026-11-30T04:27:36+00:00</updated><id>http://egonw.github.io/blog/feed/by_tag/metabolomics.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">ToxBank: a data warehouse for (computational) toxicology</title><link href="http://egonw.github.io/blog/2011/03/08/toxbank-data-warehouse-for.html" rel="alternate" type="text/html" title="ToxBank: a data warehouse for (computational) toxicology" /><published>2011-03-08T00:00:00+00:00</published><updated>2011-03-08T00:00:00+00:00</updated><id>http://egonw.github.io/blog/2011/03/08/toxbank-data-warehouse-for</id><content type="html" xml:base="http://egonw.github.io/blog/2011/03/08/toxbank-data-warehouse-for.html"><![CDATA[<p>Last week I was in sunny <a href="http://en.wikipedia.org/wiki/Cascais">Cascais</a>, and
in three days experienced -23<sup>o</sup>C and +18<sup>o</sup>C. The reason
I was there was the kick-off meeting of the EU FP7 cluster SEURAT, which includes
‘our’ <a href="http://toxbank.net/">ToxBank</a> project.</p>

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

<p>Data types we will host include many different types, including my favorite
metabolomics. Don’t ask me what this will practically mean, but some keywords
we already know include RDF, <a href="http://opentox.org/">OpenTox</a>, and <a href="http://www.leadscope.com/toxml.php">ToxML</a>.
With metabolomics, I hope to squeeze in metabolomics.</p>

<p>And that data warehousing for metabolomics is important was only recently shown
be the retraction (via <a href="http://retractionwatch.wordpress.com/">RetractionWatch</a>)
of <a href="http://www.nature.com/nature/journal/v434/n7030/full/nature03356.html">this Nature paper</a>
(doi:<a href="http://dx.doi.org/10.1038/nature03356">10.1038/nature03356</a>). The reason
was that it critically depended on conclusions from another <a href="http://pubs.acs.org/doi/abs/10.1021/jf902670b">retracted</a>
<a href="http://pubs.acs.org/doi/abs/10.1021/jf021166h">paper</a> (doi:<a href="http://dx.doi.org/10.1021/jf021166h">10.1021/jf021166h</a>),
from J. Agric. Food Chem. in 2009.</p>

<p>In this paper, they identified ten chemicals from arabidopsis: <a href="http://en.wikipedia.org/wiki/Butanoic_acid">butanoic acid</a>;
<a href="http://en.wikipedia.org/wiki/Trans-cinnamic_acid">trans-cinnamic acid</a>; o-<a href="http://en.wikipedia.org/wiki/Coumaric_acid">coumaric
acid</a>; p-coumaric acid; <a href="http://en.wikipedia.org/wiki/Ferulic_acid">ferulic
acid</a>; p-hydroxybenzamide; <a href="http://en.wikipedia.org/wiki/Methyl_p-hydroxybenzoate">methyl
p-hydroxybenzoate</a>; 3-indolepropanoic
acid; <a href="http://en.wikipedia.org/wiki/Syringic_acid">syringic acid</a>; and, <a href="http://en.wikipedia.org/wiki/Vanillic_acid">vanillic
acid</a>. I hope I have the links to
Wikipedia correct, as this was based on names only, as the paper does not seem
to list InChIs or even SMILESes. The ten chemical were identified with HPLC
and NMR. No experimental data seems to be given. What NMR data did they base
the identification on? I have seen pretty interesting assignments of chemical
identity in GC/MS and LC/MS, so was quite disappointed to not see the gory details
here.</p>

<p>But fortunately, I could look at the raw data. Yeah, sure! Dream on.</p>

<p>In fact, it seems the characterizations of the 10 chemicals was challenged,
causing the authors to look again at their data. Unfortunately, they could not
find experimental data anymore. The authors write in the <a href="http://pubs.acs.org/doi/full/10.1021/jf902670b">retraction</a>:</p>

<blockquote>
  <p>We have been unable to find experimental data that document the actual isolation of butanoic acid,
trans-cinnamic acid, …</p>
</blockquote>

<p>Now, readers of my blog I care about raw data (see <a href="http://chem-bla-ics.blogspot.com/2010/08/molecular-chemometrics-principles-1.html">McPrinciple #1</a>).
For example, it was a key feature of our <a href="http://chem-bla-ics.blogspot.com/search?q=MetWare">MetWare</a>
project. It is not entirely clear to me that they could no longer find the raw
data, or whether they were no longer able to correlate their extracted characteristics
with the know NMR for those ten compounds. This only strengthens the importance
of NMR databases in metabolite identification, something <a href="http://www.steinbeck-molecular.de/steinblog/">Christoph</a>
would only agree with.</p>

<p>I am not sure we will see the bottom of this, and see if the authors could have
prevented this retraction. However, I do believe the paper was flawed in the
first place: it did not give experimental detail allowing the referees to judge
the metabolite identification. The referees failed, as the apparently did not
find this aspect important enough to have this data in the paper. And, the journal
failed clearly, by not having a good editorial requirement in place around availability
of data. This is not specific to this retracted paper, nor of this journal.
It’s pretty much the community standard, despite many calling for years for
better standards, e.g. via minimal reporting standards.</p>

<p>Well, maybe journal editors will soon wake up, and make availability of experimental
data in papers of this kind (and any type, IMHO) a community standard, and strong
standard, such strong that referees can reject papers of papers do not provide
this minimal information.</p>

<p>Why? It would have saved a lot of people from doing the wrong thing. The original
paper was cited 54 times (according to WoS) and the Nature paper 52 times (up
one since the RetractionWatch post). We’re bound to see a few more retractions
as a result of this, I guess.</p>

<p>So, where I failed to get MetWare going within the <a href="http://www.metabolomicscentre.nl/">Netherlands Metabolomics
Center</a>, let’s hope ToxBank does better.
But given the list of ToxBank partners, I have no doubt about that.</p>]]></content><author><name>Egon Willighagen</name></author><category term="metabolomics" /><category term="metware" /><category term="nature" /><category term="nmr" /><category term="opendata" /><category term="publishing" /><category term="justdoi:10.1038/nature03356" /><category term="justdoi:10.1021/jf902670b" /><category term="justdoi:10.1021/jf021166h" /><summary type="html"><![CDATA[Last week I was in sunny Cascais, and in three days experienced -23oC and +18oC. The reason I was there was the kick-off meeting of the EU FP7 cluster SEURAT, which includes ‘our’ ToxBank project.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://egonw.github.io/blog/blog/assets/images/ToxBankComponents.png" /><media:content medium="image" url="http://egonw.github.io/blog/blog/assets/images/ToxBankComponents.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">My talk at Imperial College</title><link href="http://egonw.github.io/blog/2010/12/14/my-talk-at-imperial-college.html" rel="alternate" type="text/html" title="My talk at Imperial College" /><published>2010-12-14T00:00:00+00:00</published><updated>2010-12-14T00:00:00+00:00</updated><id>http://egonw.github.io/blog/2010/12/14/my-talk-at-imperial-college</id><content type="html" xml:base="http://egonw.github.io/blog/2010/12/14/my-talk-at-imperial-college.html"><![CDATA[<p>Yesterday I was guest with <a href="http://www1.imperial.ac.uk/medicine/people/j.fonville07/">Judy</a>
at the <a href="http://www1.imperial.ac.uk/surgeryandcancer/">Department of Surgery &amp; Cancer</a>
at <a href="http://www1.imperial.ac.uk/">Imperial College</a>, where I presented the what
I am working on. As I met up in a pub with Ron (my former PhD supervisor, who
now works on metabolomics at the <a href="http://www.iasma.it/">Istituto Agrario San Michele all’Adige</a>
in Italy) the night before, the presentation does share many slides from previous
talks, but also adds a few new ones.</p>

<p><a href="https://doi.org/10.5281/zenodo.3597909"><img src="/blog/assets/images/odosos_imperial2010.png" alt="" /></a></p>

<p>It was great talking to Judy about her PhD research on NMR in metabolomics,
and <a href="http://www1.imperial.ac.uk/medicine/people/t.ebbels/">Tim</a> about further
work in this research. I was interesting to learn that here too they have problems
in metabolite identification quick like those when analyzing *C/MS data, and
was really happy to hear he is in contact with <a href="http://www.steinbeck-molecular.de/steinblog/">Christoph</a>
about an Open repository for metabolomics data.</p>

<p>Another ‘new’ slide was one advertising the yesterday launched <a href="http://www.openresearchcomputation.com/">Open Research
Computation</a> which I’ll blog about
in more detail later today.</p>]]></content><author><name>Egon Willighagen</name></author><category term="chemometrics" /><category term="drugdiscovery" /><category term="metabolomics" /><category term="odosos" /><category term="toxicology" /><category term="doi:10.5281/ZENODO.3597909" /><summary type="html"><![CDATA[Yesterday I was guest with Judy at the Department of Surgery &amp; Cancer at Imperial College, where I presented the what I am working on. As I met up in a pub with Ron (my former PhD supervisor, who now works on metabolomics at the Istituto Agrario San Michele all’Adige in Italy) the night before, the presentation does share many slides from previous talks, but also adds a few new ones.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://egonw.github.io/blog/blog/assets/images/odosos_imperial2010.png" /><media:content medium="image" url="http://egonw.github.io/blog/blog/assets/images/odosos_imperial2010.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">MetWare presenation at Metabolomics Workshop</title><link href="http://egonw.github.io/blog/2009/01/27/metware-presenation-at-metabolomics.html" rel="alternate" type="text/html" title="MetWare presenation at Metabolomics Workshop" /><published>2009-01-27T00:00:00+00:00</published><updated>2009-01-27T00:00:00+00:00</updated><id>http://egonw.github.io/blog/2009/01/27/metware-presenation-at-metabolomics</id><content type="html" xml:base="http://egonw.github.io/blog/2009/01/27/metware-presenation-at-metabolomics.html"><![CDATA[<p>I gave <a href="https://doi.org/10.5281/zenodo.3366041">this</a> 10 minute presentation on
<a href="https://sourceforge.net/projects/metware/">MetWare <i class="fa-solid fa-recycle fa-xs"></i></a> this afternoon at the
<a href="http://www.elixir-europe.org/page.php?page=metabolomics_workshop">International Metabolomics Workshop <i class="fa-solid fa-link-slash fa-xs"></i></a>:</p>

<p><a href="https://doi.org/10.5281/zenodo.3366041"><img src="/blog/assets/images/metware_uppsala_2009.png" alt="" /></a></p>]]></content><author><name>Egon Willighagen</name></author><category term="metware" /><category term="metabolomics" /><category term="doi:10.5281/ZENODO.3366041" /><summary type="html"><![CDATA[I gave this 10 minute presentation on MetWare this afternoon at the International Metabolomics Workshop :]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://egonw.github.io/blog/blog/assets/images/metware_uppsala_2009.png" /><media:content medium="image" url="http://egonw.github.io/blog/blog/assets/images/metware_uppsala_2009.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">MetWare screenshot: spectrum support #2</title><link href="http://egonw.github.io/blog/2008/08/21/metware-screenshot-spectrum-support-2.html" rel="alternate" type="text/html" title="MetWare screenshot: spectrum support #2" /><published>2008-08-21T00:00:00+00:00</published><updated>2008-08-21T00:00:00+00:00</updated><id>http://egonw.github.io/blog/2008/08/21/metware-screenshot-spectrum-support-2</id><content type="html" xml:base="http://egonw.github.io/blog/2008/08/21/metware-screenshot-spectrum-support-2.html"><![CDATA[<p>As <a href="http://chem-bla-ics.blogspot.com/2008/08/metware-screenshot-spectrum-support.html">promised yesterday</a>, here’s the pretty
visualization of the mass spectrum, using JavaScript from the <a href="http://www.ebi.ac.uk/pride/#soft">PRIDE project</a>:</p>

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

<p>Note the manual adding of peaks at 10 and 100 m/z to get the real peaks somewhere in the middle instead of on the left and right border of the graph.</p>

<p>Meanwhile, the search page is now autogenerated too, and the types of searches allowed (min, max in the picture) again depends on the
XML Scheme data type defined in the <a href="http://metware.svn.sourceforge.net/viewvc/metware/BigMet/trunk/src/main/onto/metware.skos?content-type=text%2Fxml&amp;revision=HEAD">MetWare SKOS</a>:</p>

<p><img src="/blog/assets/images/mwSearch.png" alt="" /></p>]]></content><author><name>Egon Willighagen</name></author><category term="metware" /><category term="metabolomics" /><category term="xml" /><category term="skos" /><summary type="html"><![CDATA[As promised yesterday, here’s the pretty visualization of the mass spectrum, using JavaScript from the PRIDE project:]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://egonw.github.io/blog/blog/assets/images/msGUI.png" /><media:content medium="image" url="http://egonw.github.io/blog/blog/assets/images/msGUI.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">Online, multiplayer metabolomics game!</title><link href="http://egonw.github.io/blog/2008/08/01/online-multiplayer-metabolomics-game.html" rel="alternate" type="text/html" title="Online, multiplayer metabolomics game!" /><published>2008-08-01T00:00:00+00:00</published><updated>2008-08-01T00:00:00+00:00</updated><id>http://egonw.github.io/blog/2008/08/01/online-multiplayer-metabolomics-game</id><content type="html" xml:base="http://egonw.github.io/blog/2008/08/01/online-multiplayer-metabolomics-game.html"><![CDATA[<p>I was just organizing my <a href="http://delicious.com/egonw/toread">toread</a>s, when I found this link: <a href="http://www.metabolaspel.nl/">metabolaspel.nl</a>,
an online, multiplayer metabolomics game! It’s in Dutch, but I guess anyone will get the idea :) Two teams, each may have two players, fight
each other in sugar-fat conversion, by tuning the metabolism parameters:</p>

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

<p>The game board should look familiar:</p>

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

<p>I finally found a worthy follow up for <a href="http://en.wikipedia.org/wiki/Civilization_(computer_game)">Civilization</a> :)</p>]]></content><author><name>Egon Willighagen</name></author><category term="metabolomics" /><summary type="html"><![CDATA[I was just organizing my toreads, when I found this link: metabolaspel.nl, an online, multiplayer metabolomics game! It’s in Dutch, but I guess anyone will get the idea :) Two teams, each may have two players, fight each other in sugar-fat conversion, by tuning the metabolism parameters:]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://egonw.github.io/blog/blog/assets/images/mbgame2.png" /><media:content medium="image" url="http://egonw.github.io/blog/blog/assets/images/mbgame2.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">Metabolomics needs you</title><link href="http://egonw.github.io/blog/2008/07/15/metabolomics-needs-you.html" rel="alternate" type="text/html" title="Metabolomics needs you" /><published>2008-07-15T00:00:00+00:00</published><updated>2008-07-15T00:00:00+00:00</updated><id>http://egonw.github.io/blog/2008/07/15/metabolomics-needs-you</id><content type="html" xml:base="http://egonw.github.io/blog/2008/07/15/metabolomics-needs-you.html"><![CDATA[<p>Over on <a href="http://metabolomicsineu.blogspot.com/">Metabolomics In Europe</a> I posted a ad for an
<a href="http://metabolomicsineu.blogspot.com/2008/07/researcher-bioinformatics-for.html">open metabolomics position in our group</a>.
Go check it out!</p>]]></content><author><name>Egon Willighagen</name></author><category term="metabolomics" /><summary type="html"><![CDATA[Over on Metabolomics In Europe I posted a ad for an open metabolomics position in our group. Go check it out!]]></summary></entry><entry><title type="html">Moving to Sweden: Improving CDK support in Bioclipse</title><link href="http://egonw.github.io/blog/2008/07/04/moving-to-sweden-improving-cdk-support.html" rel="alternate" type="text/html" title="Moving to Sweden: Improving CDK support in Bioclipse" /><published>2008-07-04T00:00:00+00:00</published><updated>2008-07-04T00:00:00+00:00</updated><id>http://egonw.github.io/blog/2008/07/04/moving-to-sweden-improving-cdk-support</id><content type="html" xml:base="http://egonw.github.io/blog/2008/07/04/moving-to-sweden-improving-cdk-support.html"><![CDATA[<p><span style="width: 30%; display: block; margin-left: auto; margin-right: auto; float: right">
<img src="/blog//assets/images/nmc.png" />
</span>
This autumn I will end my current post-doc position at <a href="http://www.pri.wur.nl/">Plant Research International</a> in the
<a href="http://www.ab.wur.nl/">Applied Bioinformatics</a> group and at <a href="http://www.biometris.nl/">Biometris</a> (both part of
<a href="http://www.wur.nl/">Wageningen University</a>) funded by the <a href="http://www.metabolomicscentre.nl/">Netherlands Metabolomics Center</a>
(lot’s of vacancies), where I had a good time, and collaborated in several projects within the NMC with much pleasure.</p>

<p>However, personal circumstances strengthened an older wish of me and my family to seek the adventure of living abroad,
and a vacancy was available in the <a href="http://www.farmbio.uu.se/researchgroup.php?fg=1">group of Prof. Wikberg</a>.
So, we are moving to <a href="http://en.wikipedia.org/wiki/Sweden">Sweden</a>. There, I will extend my research on effectively combining
chemoinformatics (sometimes misspelled as <em>cheminformatics</em> ;) and chemometrics, as I did in my PhD, which fits well with the
development of <a href="http://chem-bla-ics.blogspot.com/2006/10/are-chemogenomics-and.html">proteochemotrics</a> methodology and
<a href="http://www.bioclipse.net/">Bioclipse</a> as platform to transform scientific hypotheses into data queries.</p>]]></content><author><name>Egon Willighagen</name></author><category term="career" /><category term="metabolomics" /><category term="cdk" /><summary type="html"><![CDATA[This autumn I will end my current post-doc position at Plant Research International in the Applied Bioinformatics group and at Biometris (both part of Wageningen University) funded by the Netherlands Metabolomics Center (lot’s of vacancies), where I had a good time, and collaborated in several projects within the NMC with much pleasure.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://egonw.github.io/blog/blog//assets/images/nmc.png" /><media:content medium="image" url="http://egonw.github.io/blog/blog//assets/images/nmc.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">Recovering full mass spectra from GC-MS data #2</title><link href="http://egonw.github.io/blog/2008/06/05/recovering-full-mass-spectra-from-gc-ms_05.html" rel="alternate" type="text/html" title="Recovering full mass spectra from GC-MS data #2" /><published>2008-06-05T00:00:00+00:00</published><updated>2008-06-05T00:00:00+00:00</updated><id>http://egonw.github.io/blog/2008/06/05/recovering-full-mass-spectra-from-gc-ms_05</id><content type="html" xml:base="http://egonw.github.io/blog/2008/06/05/recovering-full-mass-spectra-from-gc-ms_05.html"><![CDATA[<p>Steffen reminded me over email that the particular machine only has a 1 dalton accuracy, and that the 150ppm
parameter setting is somewhat inappropriate. As <a href="http://chem-bla-ics.blogspot.com/2008/06/recovering-full-mass-spectra-from-gc-ms.html">seen yesterday</a>,
it works fine for larger peaks, but fails for low intensity peaks. So, I reran the <code class="language-plaintext highlighter-rouge">centWave</code> peak detection with 750, 1000 and 1250 ppm,
and that indeed make <a href="http://masspec.scripps.edu/xcms/xcms.php">XCMS</a> recover many more metabolites, and, also important, with more
extracted ion chromatograms per metabolite, yielding a more accurate mass spectrum. At the same time, I notice that profiles are not
as clean as before, but that’s where the peak fitting with (Modified) Gaussians come into play.</p>

<p>The original 150ppm results:</p>

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

<p>The 750ppm results:</p>

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

<p>And for 1000ppm (1250ppm did not further improve):</p>

<p><img src="/blog/assets/images/map6.png" alt="" /></p>]]></content><author><name>Egon Willighagen</name></author><category term="metabolomics" /><category term="rstats" /><summary type="html"><![CDATA[Steffen reminded me over email that the particular machine only has a 1 dalton accuracy, and that the 150ppm parameter setting is somewhat inappropriate. As seen yesterday, it works fine for larger peaks, but fails for low intensity peaks. So, I reran the centWave peak detection with 750, 1000 and 1250 ppm, and that indeed make XCMS recover many more metabolites, and, also important, with more extracted ion chromatograms per metabolite, yielding a more accurate mass spectrum. At the same time, I notice that profiles are not as clean as before, but that’s where the peak fitting with (Modified) Gaussians come into play.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://egonw.github.io/blog/blog/assets/images/map6.png" /><media:content medium="image" url="http://egonw.github.io/blog/blog/assets/images/map6.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">Recovering full mass spectra from GC-MS data</title><link href="http://egonw.github.io/blog/2008/06/04/recovering-full-mass-spectra-from-gc-ms.html" rel="alternate" type="text/html" title="Recovering full mass spectra from GC-MS data" /><published>2008-06-04T00:00:00+00:00</published><updated>2008-06-04T00:00:00+00:00</updated><id>http://egonw.github.io/blog/2008/06/04/recovering-full-mass-spectra-from-gc-ms</id><content type="html" xml:base="http://egonw.github.io/blog/2008/06/04/recovering-full-mass-spectra-from-gc-ms.html"><![CDATA[<p>One aspect not covered in detail by the <a href="http://wwmm.ch.cam.ac.uk/blogs/murrayrust/?p=1134">ongoing</a>
<a href="http://wwmm.ch.cam.ac.uk/blogs/murrayrust/?p=1133">discussion</a> on <a href="http://www.simbiosys.ca/blog/2008/06/03/research-and-software-testing/">unit</a>
<a href="http://www.simbiosys.ca/blog/2008/06/03/quality-in-chemical-software-the-debate-continues/">testing</a> quality control for scientific software,
is detecting regressions. This is the most important reason why unit testing is superior to random testing. Putting someone behind a
keyboard to tests things is nice, but this process has to be repeated, as the testing has to be repeated over and over again. Just
to make sure it works for whatever new input, for whatever refactoring, for whatever new cool feature.</p>

<p>Another advantage of unit testing over random testing, is in the fact that it provides you with statistics (lies, damn lies, and statistics).
These statistics do give some insight where to start looking, though if really written properly, each unit test has the ability to test a
single line of functional code. That’s where code coverage testing is useful, and should be part of the process too. I have no idea what
commercial chemoinformatics software vendors do regarding quality control, but I assume they make heavily use of code coverage too.</p>

<p><a href="http://www.simbiosys.ca/blog/">SimBioSys Blog</a> mentioned the use of annual software competitions. That’s important indeed, and provides
nice means to compare options, but it is not unit testing; it’s a macroscopic test of functionality, and has little means to identifying
underlying fails. Is a bad CASP score caused by wrong isotope masses used in the force field, or by the approach? I’m sure no one can tell.</p>

<p>Anyway, refactoring is a principle activity of software engineers, and unit testing manages that process in some way. Taking unit testing
to the extreme, any new coding starts with writing the unit tests for the new API. Only when those are finished, the functionality is
actually implemented.</p>

<p>Ok, now something less boring. GC-MS-based <a href="http://en.wikipedia.org/wiki/Metabolite">Metabolomics</a> with metabolite identity in particular.
Though I believe there are other uses too, for example, in between sample alignment, the recovery of a full mass spectrum is particularly
important for metabolite identification of new, yet unknown compounds (yes, even dereplication is already non-trivial, because of the lack
of free (open data preferably), machine accessible (open standards!) database of mass spectra (using different ionization methods). Look
up by monoisotopic mass is possible in, for example, <a href="http://www.chemspider.com/">ChemSpider</a> (see
<a href="http://chem-bla-ics.blogspot.com/2007/11/metabolomics-workflows-in-taverna.html">this blog</a>), but look up via full spectrum is less common.
The number of databases are growing, and likewise the openness and accessibility. Who know what the
<a href="http://www.metabolomicscentre.nl/">Netherlands Metabolomics Center</a>’s support platform will be able to offer in a year or two.</p>

<p>Now, unit tests could, for example, tests that some algorithm can deconvolute the following GC-MS data:</p>

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

<p>The red line is the TIC for the chromatogram, while the black lines are the extracted ion chromatograms of individual m/z (ion) peaks in
the mass spectral dimension, and, only of peaks detected using <a href="http://masspec.scripps.edu/xcms/xcms.php">XCMS</a> using the new centWave
method by Ralf. Now, the results are not perfect in this diagram, but it does seem to recognize all five eluting metabolites (that’s the
amount I would guess are eluting). However, I am more interested in the methods ability to recover all m/z peaks for each metabolite, to
allow me to identify the structure, or at least make a best possible educated guess, or, with a bit of luck the compound is already known,
I can dereplicate it against some database (Guesses differ, but, particularly in plant metabolomics, more than half of the metabolites we
can now detect have a yet undetermined structure).</p>

<p>Now, I’m sure any method will be able to deconvolute these compounds. They are well separated, show a nice gaussian shape, and deconvolution
based on just the chromatographic domain will likely already work. It starts to become more difficult for the low intensity peaks, those with
low signal-to-noise ratios, or those with a different elution profile (e.g. peak tailing). Deconvolution typically requires some peak shape
(commonly Gaussian or Exponential-Modified Gaussian), while experimental data typically does not have that. Jim Downing recently introduced
me to the term ‘Long Tail Science’ (via <a href="http://wwmm.ch.cam.ac.uk/blogs/murrayrust/?p=938">this blog from Peter</a>):</p>

<blockquote>
  <p>Jim Downing cam up with the idea of “Long Tail Science”. The Long Tail is the observation that in the modern web the tail of
the distribution is often more important than the few large players. Large numbers of small units is an important concept. And
it’s complimentary and complementary.</p>
</blockquote>

<p>This <em>long tail</em> of ion chromatograms is what I am interested. I do not care about the usual suspects, I want to learn about the 80%
unknown metabolites that are found in samples. What can we learn about those? What is in the long tail of detected metabolites?</p>

<p>Now, I know I am not an expert in tuning <code class="language-plaintext highlighter-rouge">centWave</code> parameters, so I might as well be passing garbage in, but the method is not robust
against me:</p>

<div class="language-R highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="n">xr</span><span class="w"> </span><span class="o">&lt;-</span><span class="w"> </span><span class="n">read</span><span class="p">(</span><span class="n">file</span><span class="o">=</span><span class="s2">"someClosedData.cdf"</span><span class="p">)</span><span class="w">
</span><span class="n">p</span><span class="w"> </span><span class="o">&lt;-</span><span class="w"> </span><span class="n">findPeaks</span><span class="p">(</span><span class="n">xr</span><span class="p">,</span><span class="w"> </span><span class="n">method</span><span class="o">=</span><span class="s2">"centWave"</span><span class="p">,</span><span class="w"> </span><span class="n">ppm</span><span class="o">=</span><span class="m">150</span><span class="p">,</span><span class="w"> </span><span class="n">peakwidth</span><span class="o">=</span><span class="nf">c</span><span class="p">(</span><span class="m">5</span><span class="p">,</span><span class="m">25</span><span class="p">))</span><span class="w">
</span></code></pre></div></div>

<p>But it fails to detect some of the metabolites in the long tail:</p>

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

<p>As you can observe from the low S/N ratio on the red TIC line, you can notice that we are at low intensity metabolites. Assuming some
peak shape is at such noise levels much more difficult than with better S/N ratios. The <code class="language-plaintext highlighter-rouge">centWave</code> uses a really nice non-parametric approach
here… well, not entirely, otherwise it would not have failed over my parameter settings :) Steffen/Ralf, what was the DOI again?</p>

<p>Now, I found these missed metabolites by manual browsing the data, data exploration. SBS <a href="http://www.simbiosys.ca/blog/2008/06/03/research-and-software-testing/">wrote</a>
<em>[t]here are four distinct type of tests: Func, Speed, Error and Robust</em>. I believe the above situation is really a fifth class: it’s
neither a true <em>functional test</em>, but it is not an true <em>robustness test</em> either. The input is valid, but of such that it moves towards
invalid input. Scientific data is a continuous spectrum of input (remember the <a href="http://chem-bla-ics.blogspot.com/2008/06/good-scientists-pimp-there-research-was.html">oil in, oil out</a>).
Software must be tested against such borderline data; repeatedly, over and over again, for any version, for any code change, for any
platform.</p>

<p>Oh, and code quality has nothing to do with trust. Give me statistics (I can interpret the scope of them) over any trust assurance.</p>]]></content><author><name>Egon Willighagen</name></author><category term="metabolomics" /><category term="rstats" /><summary type="html"><![CDATA[One aspect not covered in detail by the ongoing discussion on unit testing quality control for scientific software, is detecting regressions. This is the most important reason why unit testing is superior to random testing. Putting someone behind a keyboard to tests things is nice, but this process has to be repeated, as the testing has to be repeated over and over again. Just to make sure it works for whatever new input, for whatever refactoring, for whatever new cool feature.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://egonw.github.io/blog/blog/assets/images/ionChromPlot3.png" /><media:content medium="image" url="http://egonw.github.io/blog/blog/assets/images/ionChromPlot3.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">The MetWare developers meeting in Halle</title><link href="http://egonw.github.io/blog/2008/04/09/metware-developers-meeting-in-halle.html" rel="alternate" type="text/html" title="The MetWare developers meeting in Halle" /><published>2008-04-09T00:00:00+00:00</published><updated>2008-04-09T00:00:00+00:00</updated><id>http://egonw.github.io/blog/2008/04/09/metware-developers-meeting-in-halle</id><content type="html" xml:base="http://egonw.github.io/blog/2008/04/09/metware-developers-meeting-in-halle.html"><![CDATA[<p>Today starts the <a href="http://metware.sf.net/">MetWare</a> developers meeting, hosted by <a href="http://www.ipb-halle.de/de/forschung/stress-und-entwicklungsbiologie/forschungsgruppen/bioinformatik-massenspektrometrie/">Steffen Neumann</a>,
at the <a href="http://www.ipb-halle.de/de/">Leibniz-Institut für Pflanzenbiochemie</a>. Steffen’s group and the <a href="http://www.ab.wur.nl/">Applied Bioinformatics</a>
group where I now work, are co-developing an opensource platform for metabolomics data management. Not really a full LIMS system,
but a system to keep track of all the facts about the experiments and samples we would use when analyzing the data in order to
find new chemistry, biomarkers, etc (see <a href="http://chem-bla-ics.blogspot.com/2007/11/metware-metabolomics-database-project.html">this earlier blog</a>
too). Good news is, that BioAssist is developing a support platform for the <a href="http://www.metabolomicscentre.nl/">NMC</a>,
and plans to use MetWare as a main component.</p>

<p>OK, off to catch my train now. See you online (#metware @ irc.freenode.net); the wiki has an
<a href="http://metware.wiki.sourceforge.net/AgendaApril08">agenda for the meeting</a>.</p>]]></content><author><name>Egon Willighagen</name></author><category term="metware" /><category term="metabolomics" /><summary type="html"><![CDATA[Today starts the MetWare developers meeting, hosted by Steffen Neumann, at the Leibniz-Institut für Pflanzenbiochemie. Steffen’s group and the Applied Bioinformatics group where I now work, are co-developing an opensource platform for metabolomics data management. Not really a full LIMS system, but a system to keep track of all the facts about the experiments and samples we would use when analyzing the data in order to find new chemistry, biomarkers, etc (see this earlier blog too). Good news is, that BioAssist is developing a support platform for the NMC, and plans to use MetWare as a main component.]]></summary></entry></feed>