<?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="https://chem-bla-ics.linkedchemistry.info/feed/by_tag/github.xml" rel="self" type="application/atom+xml" /><link href="https://chem-bla-ics.linkedchemistry.info/" rel="alternate" type="text/html" /><updated>2026-10-07T12:46:55+00:00</updated><id>https://chem-bla-ics.linkedchemistry.info/feed/by_tag/github.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">GitHub Tip: download commits as patches</title><link href="https://chem-bla-ics.linkedchemistry.info/2011/01/30/github-tip-download-commits-as-patches.html" rel="alternate" type="text/html" title="GitHub Tip: download commits as patches" /><published>2011-01-30T00:00:00+00:00</published><updated>2011-01-30T00:00:00+00:00</updated><id>https://chem-bla-ics.linkedchemistry.info/2011/01/30/github-tip-download-commits-as-patches</id><content type="html" xml:base="https://chem-bla-ics.linkedchemistry.info/2011/01/30/github-tip-download-commits-as-patches.html"><![CDATA[<p><img style="float: right;" src="/assets/images/1000px-GitHub.svg.png" width="200" />
Some time ago, the brilliant <a href="http://github.com/">GitHub</a> people gave me the following tip. Rajarshi is
<a href="https://sourceforge.net/tracker/index.php?func=detail&amp;aid=3160093&amp;group_id=20024&amp;atid=120024#">lazy</a>, and might
find it interesting. By appending <code class="language-plaintext highlighter-rouge">.patch</code> to the commit URL, a commit can easily be downloaded as patch. That way,
developers can easily download it with <code class="language-plaintext highlighter-rouge">wget</code> or <code class="language-plaintext highlighter-rouge">curl</code> and apply it locally with <code class="language-plaintext highlighter-rouge">git am</code>,
without having the fetch the full repository.</p>

<p>For example, Dmitry made this commit in his branch, having the URL
<a href="https://github.com/dmak/cdk/commit/9b0478d50c7b5ca10f77fb01d89329db5fe80625">https://github.com/dmak/cdk/commit/9b0478d50c7b5ca10f77fb01d89329db5fe80625</a>.
The patch for this commit can then be downloaded at this URL
<a href="https://github.com/dmak/cdk/commit/9b0478d50c7b5ca10f77fb01d89329db5fe80625.patch">https://github.com/dmak/cdk/commit/9b0478d50c7b5ca10f77fb01d89329db5fe80625.patch</a>.</p>]]></content><author><name>Egon Willighagen</name></author><category term="github" /><summary type="html"><![CDATA[Some time ago, the brilliant GitHub people gave me the following tip. Rajarshi is lazy, and might find it interesting. By appending .patch to the commit URL, a commit can easily be downloaded as patch. That way, developers can easily download it with wget or curl and apply it locally with git am, without having the fetch the full repository.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://chem-bla-ics.linkedchemistry.info/assets/images/1000px-GitHub.svg.png" /><media:content medium="image" url="https://chem-bla-ics.linkedchemistry.info/assets/images/1000px-GitHub.svg.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">Second #acs_boston talk: teaching scientific communication</title><link href="https://chem-bla-ics.linkedchemistry.info/2010/09/08/second-acsboston-talk-teaching.html" rel="alternate" type="text/html" title="Second #acs_boston talk: teaching scientific communication" /><published>2010-09-08T00:00:00+00:00</published><updated>2010-09-08T00:00:00+00:00</updated><id>https://chem-bla-ics.linkedchemistry.info/2010/09/08/second-acsboston-talk-teaching</id><content type="html" xml:base="https://chem-bla-ics.linkedchemistry.info/2010/09/08/second-acsboston-talk-teaching.html"><![CDATA[<p>Below are the slides of my ACS CHED talk in Boston:</p>

<p><a href="https://doi.org/10.5281/zenodo.3563519"><img src="/assets/images/acs2010_teaching_talk.png" alt="" /></a></p>]]></content><author><name>Egon Willighagen</name></author><category term="acs" /><category term="education" /><category term="github" /><category term="myexperiment" /><category term="cito:citesAsEvidence:10.5281/ZENODO.3563519" /><summary type="html"><![CDATA[Below are the slides of my ACS CHED talk in Boston:]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://chem-bla-ics.linkedchemistry.info/assets/images/acs2010_teaching_talk.png" /><media:content medium="image" url="https://chem-bla-ics.linkedchemistry.info/assets/images/acs2010_teaching_talk.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">How to use GitHub for [CDK|Bioclipse] code review</title><link href="https://chem-bla-ics.linkedchemistry.info/2010/05/10/how-to-use-github-for-cdkbioclipse-code.html" rel="alternate" type="text/html" title="How to use GitHub for [CDK|Bioclipse] code review" /><published>2010-05-10T00:10:00+00:00</published><updated>2010-05-10T00:10:00+00:00</updated><id>https://chem-bla-ics.linkedchemistry.info/2010/05/10/how-to-use-github-for-cdkbioclipse-code</id><content type="html" xml:base="https://chem-bla-ics.linkedchemistry.info/2010/05/10/how-to-use-github-for-cdkbioclipse-code.html"><![CDATA[<p>Triggered by posts in the past <a href="https://chem-bla-ics.linkedchemistry.info/2010/05/08/web-20-technologies-in-student.html">three <i class="fa-solid fa-recycle fa-xs"></i></a>
<a href="https://chem-bla-ics.linkedchemistry.info/2010/05/10/github-simplifies-code-review-and.html">days <i class="fa-solid fa-recycle fa-xs"></i></a>, I though about writing up a short
tutorial on how to perform code review for existing code on <a href="http://www.github.com/">GitHub</a>. Therefore, this applied to
<a href="http://cdk.sf.net/">CDK</a> and <a href="http://www.bioclipse.net/">Bioclipse</a> source code, many but will work for any project hosted
in GitHub. Even if it is not, you could consider putting up a copy there yourself. This example will demonstrate the
procedure on CDK functionality in Bioclipse in the <a href="http://github.com/egonw/bioclipse.cheminformatics/">bioclipse.cheminformatics</a>
repository.</p>

<p><em>Click on the images to get a higher resolution version.</em></p>

<h2 id="step-1-find-the-class-you-want-to-review">Step 1: find the class you want to review</h2>

<p>Use the GitHub web interface to browse your way towards the source code of the class you want to review. For example,
the <a href="http://github.com/egonw/bioclipse.cheminformatics/blob/master/plugins/net.bioclipse.cdk.smartsmatching/src/net/bioclipse/cdk/smartsmatching/SmartsMatchingHelper.java">SmartsMatchingHelper.java</a>:</p>

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

<h2 id="step-2-identify-something-you-like-to-comment-on">Step 2: identify something you like to comment on</h2>

<p>Next step is to perform some code reviewing. For example, we might want to ask something about how parseProperty() works:</p>

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

<p>Now, this page on GitHub does not provide the means to leave comments; instead, you comment on commits.</p>

<h2 id="step-3-find-the-last-commit-that-touched-the-line-you-like-to-comment-on">Step 3: find the last commit that touched the line you like to comment on</h2>

<p>Git has a <a href="http://ftp.sunet.se/pub//Linux/kernel.org/software/scm/git/docs/git-blame.html">blame option</a> (also called annotate)
which will show you for each line who last changed that line. The GitHub web page makes this functionality available with the
‘blame’ link just above the first line of the source code:</p>

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

<p>This link will lead us to a page with a new column on the left side showing commit hashes, name of the commit author,
and the first few characters of the commit message. For example, the
<a href="http://github.com/egonw/bioclipse.cheminformatics/blame/master/plugins/net.bioclipse.cdk.smartsmatching/src/net/bioclipse/cdk/smartsmatching/SmartsMatchingHelper.java">web page</a>
bits relevant to code we want to comment on, looks like:</p>

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

<p>This shows us that commit <a href="http://github.com/egonw/bioclipse.cheminformatics/commit/3ce78ba572e0fbb32536cfb24ae9848297057575">3ce78ba5</a>
is the one we are interested in:</p>

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

<h2 id="step-4-look-up-the-line-again-and-add-a-comment">Step 4: Look up the line again and add a comment</h2>

<p>In the web page with the appropriate commit looked in the previous step, you scroll down to the line you want to comment on.
If you hover over that line, a blue comment bubble will show up on the left side:</p>

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

<p>Clicking that blue comment icon, you get a dialog where you can enter your comment:</p>

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

<p>The ‘Add Line Note’ button confirms and saves your comment:</p>

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

<h2 id="step-5-inform-the-commiter-about-your-review">Step 5: inform the commiter about your review</h2>

<p>The next step would be to inform the commit author. GitHub actually helps here, and should send a message,
like this one:</p>

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

<p>But it would certainly not hurt of you filed a bug report or sent an email.</p>

<p><em>Now, I should only convert this into a screencast…</em></p>]]></content><author><name>Egon Willighagen</name></author><category term="cdk" /><category term="bioclipse" /><category term="github" /><summary type="html"><![CDATA[Triggered by posts in the past three days , I though about writing up a short tutorial on how to perform code review for existing code on GitHub. Therefore, this applied to CDK and Bioclipse source code, many but will work for any project hosted in GitHub. Even if it is not, you could consider putting up a copy there yourself. This example will demonstrate the procedure on CDK functionality in Bioclipse in the bioclipse.cheminformatics repository.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://chem-bla-ics.linkedchemistry.info/assets/images/codeReview6.png" /><media:content medium="image" url="https://chem-bla-ics.linkedchemistry.info/assets/images/codeReview6.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">GitHub simplifies code review and leaving comments</title><link href="https://chem-bla-ics.linkedchemistry.info/2010/05/10/github-simplifies-code-review-and.html" rel="alternate" type="text/html" title="GitHub simplifies code review and leaving comments" /><published>2010-05-10T00:00:00+00:00</published><updated>2010-05-10T00:00:00+00:00</updated><id>https://chem-bla-ics.linkedchemistry.info/2010/05/10/github-simplifies-code-review-and</id><content type="html" xml:base="https://chem-bla-ics.linkedchemistry.info/2010/05/10/github-simplifies-code-review-and.html"><![CDATA[<p>The workflow here is that the proposed patch gets uploaded to a GitHub branch or fork; the code reviewer is made aware of the patch,
and goes to the commit page on GitHub, and hovers over the line numbers and clicks the ‘Add comment’ button and leaves a comment;
the reviewer informs the author, and the author updates his patch.</p>

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

<p>BTW, this screenshot is for <a href="https://chem-bla-ics.linkedchemistry.info/2010/05/08/web-20-technologies-in-student.html">a paper I am writing <i class="fa-solid fa-recycle fa-xs"></i></a>
about the use of blogs and source code repositories in chem- and bioinformatics education.</p>]]></content><author><name>Egon Willighagen</name></author><category term="cdk" /><category term="github" /><summary type="html"><![CDATA[The workflow here is that the proposed patch gets uploaded to a GitHub branch or fork; the code reviewer is made aware of the patch, and goes to the commit page on GitHub, and hovers over the line numbers and clicks the ‘Add comment’ button and leaves a comment; the reviewer informs the author, and the author updates his patch.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://chem-bla-ics.linkedchemistry.info/assets/images/githubCodeReview.png" /><media:content medium="image" url="https://chem-bla-ics.linkedchemistry.info/assets/images/githubCodeReview.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">Updating my bioclipse.qsar fork with Ola’s main branch</title><link href="https://chem-bla-ics.linkedchemistry.info/2009/07/20/updating-my-bioclipseqsar-fork-with.html" rel="alternate" type="text/html" title="Updating my bioclipse.qsar fork with Ola’s main branch" /><published>2009-07-20T00:00:00+00:00</published><updated>2009-07-20T00:00:00+00:00</updated><id>https://chem-bla-ics.linkedchemistry.info/2009/07/20/updating-my-bioclipseqsar-fork-with</id><content type="html" xml:base="https://chem-bla-ics.linkedchemistry.info/2009/07/20/updating-my-bioclipseqsar-fork-with.html"><![CDATA[<p><a href="http://github.com/">GitHub</a> makes forking cheap, and I have a <a href="http://github.com/egonw/bioclipse.qsar/tree/master">fork</a> of the
<a href="http://github.com/olas/bioclipse.qsar/tree/master">bioclipse.qsar</a> repository (see
<a href="https://chem-bla-ics.linkedchemistry.info/2009/07/15/bioclipse-moving-to-github-cia-hooks.html">Bioclipse moving to GitHub: CIA hooks enabled <i class="fa-solid fa-recycle fa-xs"></i></a>),
so that I can easily share my patches with Ola for review. Ola can review them and apply them back into his main version.</p>

<p>I was wondering how I could bring my fork synchronized with Ola’s version again, and found the answer in this guide on GitHub.
It turns out all I have to do is, though this is locally:</p>

<div class="language-shell highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nv">$ </span>git remote add olas git://github.com/olas/bioclipse.qsar.git
<span class="nv">$ </span>git pull olas master
</code></pre></div></div>

<p>This gets me into the following state:</p>

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

<p>This <a href="http://www.kernel.org/pub/software/scm/git/docs/gitk.html">gitk</a> output show that my local <em>master</em> branch is
identical to Ola’s master <em>branch</em> on GitHub, while both are three commits ahead of my current <em>master</em> branch at GitHub.</p>

<p>Right after this, I updated my fork at GitHub with a simple <code class="language-plaintext highlighter-rouge">git push</code>, resulting in this gitk output:</p>

<p><img src="/assets/images/githubUpdatingMyFork1.png" alt="" /></p>]]></content><author><name>Egon Willighagen</name></author><category term="bioclipse" /><category term="git" /><category term="github" /><summary type="html"><![CDATA[GitHub makes forking cheap, and I have a fork of the bioclipse.qsar repository (see Bioclipse moving to GitHub: CIA hooks enabled ), so that I can easily share my patches with Ola for review. Ola can review them and apply them back into his main version.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://chem-bla-ics.linkedchemistry.info/assets/images/githubUpdatingMyFork.png" /><media:content medium="image" url="https://chem-bla-ics.linkedchemistry.info/assets/images/githubUpdatingMyFork.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">Bioclipse moving to GitHub: CIA hooks enabled</title><link href="https://chem-bla-ics.linkedchemistry.info/2009/07/15/bioclipse-moving-to-github-cia-hooks.html" rel="alternate" type="text/html" title="Bioclipse moving to GitHub: CIA hooks enabled" /><published>2009-07-15T00:00:00+00:00</published><updated>2009-07-15T00:00:00+00:00</updated><id>https://chem-bla-ics.linkedchemistry.info/2009/07/15/bioclipse-moving-to-github-cia-hooks</id><content type="html" xml:base="https://chem-bla-ics.linkedchemistry.info/2009/07/15/bioclipse-moving-to-github-cia-hooks.html"><![CDATA[<p>Following the CDK and <a href="https://chem-bla-ics.linkedchemistry.info/2009/07/08/jchempaint-primary-moving-to-git.html">JChemPaint Primary <i class="fa-solid fa-recycle fa-xs"></i></a>,
<a href="http://www.bioclipse.net/">Bioclipe</a> moved to Git just after the <a href="http://bioclipse.blogspot.com/2009/07/biocipse-20-released.html">2.0.0 release</a>.</p>

<p>We decided to split up the repositories, and have one <a href="http://mndoci.com/blog/2009/05/07/benevolent-dicators-and-scientific-collaboration/">benevolent dictator</a>,
or <a href="https://chem-bla-ics.linkedchemistry.info/2009/06/21/dr-whos-of-life-sciences.html">dr. Who <i class="fa-solid fa-recycle fa-xs"></i></a>, for each repository who will maintain
the plugins defined in the repository and coordinate development:</p>

<ul>
  <li><a href="http://github.com/olas/bioclipse.core/tree/master">bioclipse.core</a></li>
  <li><a href="http://github.com/olas/bioclipse.statistics/tree/master">bioclipse.statistics</a></li>
  <li><a href="http://github.com/olas/bioclipse.ds/tree/master">bioclipse.ds</a></li>
  <li><a href="http://github.com/olas/bioclipse.qsar/tree/master">bioclipse.qsar</a></li>
  <li><a href="http://github.com/egonw/bioclipse.cheminformatics/tree/master">bioclipse.cheminformatics</a></li>
  <li><a href="http://github.com/egonw/bioclipse.rdf/tree/master">bioclipse.rdf</a></li>
  <li><a href="http://github.com/masak/bioclipse.bioinformatics/tree/master">bioclipse.bioinformatics</a></li>
</ul>

<p>Several plugins are still in the SVN world, but a good deal is now Git-ready. BTW, this move also adds several new accounts
to watch on GitHub (see Rich’ <a href="https://doi.org/10.59350/ps1ms-z0e55">17 GitHub accounts to watch on Cheminformatics <i class="fa-solid fa-recycle fa-xs"></i></a>).</p>

<p><a href="http://www.github.com/">GitHub</a> turns out to be our big friend here, not <a href="http://www.sf.net/">SourceForge</a>, which only supports one
Git repository. GitHub recently must have added hooks recently, but I am really happy to see those. The above Bioclipse repositories
have hooks turned on for <a href="http://cia.vc/stats/project/bioclipse.core">CIA</a> (so that commit messages end up on our #bioclipse IRC
channel) and email (as indicated by the green color):</p>

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

<p>The splitting up, was rather interesting indeed. We wanted to keep the complete commit history, but still reduce the git repositories
considerably. This means removing history of the plugins which should not end up in the repository. Git allows this! Git rules! This
time, <a href="http://www.kernel.org/pub/software/scm/git/docs/git-filter-branch.html">git filter-branch</a> is our friend and there are
basically two options: constructive and destructive. The first copied bit by bit plugins from the old to the new repository.
The second one does the opposite, and removed bit by bit stuff you do not want. Depending on the ratio of plugins you want to
keep and those you want to remove, either solution is more appropriate. I have summarized the git commands I used in detail on
<a href="http://wiki.bioclipse.net/index.php?title=Git_Development#Making_your_own_feature_Git_repository">this Bioclipse wiki page</a>.</p>]]></content><author><name>Egon Willighagen</name></author><category term="git" /><category term="bioclipse" /><category term="github" /><category term="sourceforge" /><category term="justdoi:10.59350/ps1ms-z0e55" /><summary type="html"><![CDATA[Following the CDK and JChemPaint Primary , Bioclipe moved to Git just after the 2.0.0 release.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://chem-bla-ics.linkedchemistry.info/assets/images/githubHooks.png" /><media:content medium="image" url="https://chem-bla-ics.linkedchemistry.info/assets/images/githubHooks.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">Bioclipse and Gist integration</title><link href="https://chem-bla-ics.linkedchemistry.info/2009/01/16/bioclipse-and-gist-integration.html" rel="alternate" type="text/html" title="Bioclipse and Gist integration" /><published>2009-01-16T00:00:00+00:00</published><updated>2009-01-16T00:00:00+00:00</updated><id>https://chem-bla-ics.linkedchemistry.info/2009/01/16/bioclipse-and-gist-integration</id><content type="html" xml:base="https://chem-bla-ics.linkedchemistry.info/2009/01/16/bioclipse-and-gist-integration.html"><![CDATA[<p>As you might have read, <a href="http://www.bioclipse.net/">Bioclipse</a> has scripting support (see for example, <a href="https://chem-bla-ics.linkedchemistry.info/2008/11/20/scripting-jchempaint.html">Scripting JChemPaint <i class="fa-solid fa-recycle fa-xs"></i></a>),
and that we have been collection them on <a href="http://gist.github.com/">Gist</a> and indexing them on Delicious with the tags <a href="http://delicious.com/tag/bioclipse+gist">bioclipse and gist</a>.
This provides a nice overview of what you can do with the current SVN version of Bioclipse2. And, hopefully, when released, allow users to quickly learn about Bioclipse features,
allow people to share scripts etc. Think of it as <a href="http://myexperiment.org/">MyExperiment.org</a> for Bioclipse.</p>

<p>Now, what was missing until today, was easy access to gists in Bioclipse itself. No <code class="language-plaintext highlighter-rouge">gist.load(33421)</code> yet. There still is not, but I uploaded earlier today a Wizard for it.
(The manager will follow later). Right click on an open Project, select New -&gt; Other, and pick <em>Download Gist</em>:</p>

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

<p>and click <em>Next</em>:</p>

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

<p>Then, just type the number of the Gist you want to open in Bioclipse, for example <a href="http://gist.github.com/18315">18315</a> (see
<a href="https://chem-bla-ics.linkedchemistry.info/2008/10/25/bioclipse2-scripting-1-from-smiles-to.html">Bioclipse2 Scripting #1: from SMILES to a UFF optimized structure in Jmol <i class="fa-solid fa-recycle fa-xs"></i></a>),
and click another <em>Next</em> to select a file name and location:</p>

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

<p>The current code does require you to know the Gist number, so you’ll need a web browser to look it up, but we do have search facilities in mind. Also, while the code
attempts so, the resulting Gist is not automatically openend in an editor (a bug). Another idea is to just install the
<a href="https://chem-bla-ics.linkedchemistry.info/2008/10/24/git-eclipse-integration.html">egit <i class="fa-solid fa-recycle fa-xs"></i></a> plugin in Bioclipse :)</p>]]></content><author><name>Egon Willighagen</name></author><category term="bioclipse" /><category term="git" /><category term="github" /><summary type="html"><![CDATA[As you might have read, Bioclipse has scripting support (see for example, Scripting JChemPaint ), and that we have been collection them on Gist and indexing them on Delicious with the tags bioclipse and gist. This provides a nice overview of what you can do with the current SVN version of Bioclipse2. And, hopefully, when released, allow users to quickly learn about Bioclipse features, allow people to share scripts etc. Think of it as MyExperiment.org for Bioclipse.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://chem-bla-ics.linkedchemistry.info/assets/images/gist3.png" /><media:content medium="image" url="https://chem-bla-ics.linkedchemistry.info/assets/images/gist3.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">Embedding Gists in blogs</title><link href="https://chem-bla-ics.linkedchemistry.info/2008/10/31/embedding-gists-in-blogs.html" rel="alternate" type="text/html" title="Embedding Gists in blogs" /><published>2008-10-31T00:00:00+00:00</published><updated>2008-10-31T00:00:00+00:00</updated><id>https://chem-bla-ics.linkedchemistry.info/2008/10/31/embedding-gists-in-blogs</id><content type="html" xml:base="https://chem-bla-ics.linkedchemistry.info/2008/10/31/embedding-gists-in-blogs.html"><![CDATA[<p><a href="http://holtsblog.blogspot.com/2008/10/embedding-gist-in-your-blog.html">Mark</a> pointed me to the embed functionality of
<a href="http://gist.github.com/">Gist</a>, product on <a href="https://github.com/">GitHub <i class="fa-solid fa-recycle fa-xs"></i></a>
where I host <a href="https://chem-bla-ics.linkedchemistry.info/2008/10/20/gittodo-support-for-freemind-graphical.html">some todo software <i class="fa-solid fa-recycle fa-xs"></i></a>
and a <a href="https://chem-bla-ics.linkedchemistry.info/2008/09/30/git-mirror-for-cdk.html">git mirror of CDK 1.2.x <i class="fa-solid fa-recycle fa-xs"></i></a>.</p>

<p>So, the other day, when I blogged about <a href="https://chem-bla-ics.linkedchemistry.info/2008/10/25/bioclipse2-scripting-1-from-smiles-to.html">Bioclipse2 scripts <i class="fa-solid fa-recycle fa-xs"></i></a>,
I should have embedded the script like this:</p>

<script src="https://gist.github.com/18315.js"></script>]]></content><author><name>Egon Willighagen</name></author><category term="github" /><summary type="html"><![CDATA[Mark pointed me to the embed functionality of Gist, product on GitHub where I host some todo software and a git mirror of CDK 1.2.x .]]></summary></entry><entry><title type="html">Bioclipse2 Scripting #1: from SMILES to a UFF optimized structure in Jmol</title><link href="https://chem-bla-ics.linkedchemistry.info/2008/10/25/bioclipse2-scripting-1-from-smiles-to.html" rel="alternate" type="text/html" title="Bioclipse2 Scripting #1: from SMILES to a UFF optimized structure in Jmol" /><published>2008-10-25T00:00:00+00:00</published><updated>2008-10-25T00:00:00+00:00</updated><id>https://chem-bla-ics.linkedchemistry.info/2008/10/25/bioclipse2-scripting-1-from-smiles-to</id><content type="html" xml:base="https://chem-bla-ics.linkedchemistry.info/2008/10/25/bioclipse2-scripting-1-from-smiles-to.html"><![CDATA[<p>After some difficulties this week with making an export of <a href="http://cdk.sf.net/">CDK</a> plugins in the
<a href="http://www.bioclipse.net/">Bioclipse2</a> <em>Cheminformatics feature</em> of with the <a href="http://cdk.svn.sourceforge.net/viewvc/cdk/cdk-eclipse/trunk/">cdk-eclipse</a>
software, I got the following cute Bioclipse2 script up and running:</p>

<div class="language-javascript highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nx">dimethylether</span> <span class="o">=</span> <span class="nx">cdk</span><span class="p">.</span><span class="nf">fromSMILES</span><span class="p">(</span> <span class="dl">"</span><span class="s2">COC</span><span class="dl">"</span> <span class="p">);</span>
<span class="nx">cdk</span><span class="p">.</span><span class="nf">addExplicitHydrogens</span><span class="p">(</span> <span class="nx">dimethylether</span> <span class="p">);</span>
<span class="nx">cdk</span><span class="p">.</span><span class="nf">generate3dCoordinates</span><span class="p">(</span> <span class="nx">dimethylether</span> <span class="p">);</span>

<span class="c1">// save as CML</span>
<span class="nx">cdk</span><span class="p">.</span><span class="nf">saveCML</span><span class="p">(</span> <span class="nx">dimethylether</span><span class="p">,</span> <span class="dl">"</span><span class="s2">/Virtual/dimethylether.cml</span><span class="dl">"</span> <span class="p">);</span>
<span class="nx">ui</span><span class="p">.</span><span class="nf">open</span><span class="p">(</span> <span class="dl">"</span><span class="s2">/Virtual/dimethylether.cml</span><span class="dl">"</span> <span class="p">);</span> <span class="c1">// this should open a JmolEditor</span>

<span class="nx">jmol</span><span class="p">.</span><span class="nf">minimize</span><span class="p">();</span>
</code></pre></div></div>

<p>You can see four of my favorite cheminformatics tools integrated: CDK is used to convert a SMILES into connection table with add explicit
hydrogens, and to create initial 3D coordinates (with the code from Christian Hoppe, and thanx to Stefan for fixing that code in the
CDK 1.1.x branch!). Then, <a href="http://cml.sourceforge.net/">CMLDOM</a> is used to create and save a CML document, which is then opened into a
<a href="http://www.jmol.org/">Jmol</a> editor in Bioclipse.</p>

<p>A variation of this script is visible in the following screenshot:</p>

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

<p>This and other Bioclipse2 scripts I will post in <a href="http://gist.github.com/">Gist</a>, a sort of <a href="http://en.wikipedia.org/wiki/Pastebin">pastebin</a>
supporting version history, and I’ll tag them with <em>bioclipse gist</em> on <a href="http://delicious.com/egonw/">delicious</a>, so that you can always
browse them, comment on them, or add your own gists at
<a href="http://delicious.com/tag/bioclipse+gist">http://delicious.com/tag/bioclipse+gist</a>.</p>]]></content><author><name>Egon Willighagen</name></author><category term="bioclipse" /><category term="cml" /><category term="cdk" /><category term="jmol" /><category term="eclipse" /><category term="github" /><category term="cheminf" /><summary type="html"><![CDATA[After some difficulties this week with making an export of CDK plugins in the Bioclipse2 Cheminformatics feature of with the cdk-eclipse software, I got the following cute Bioclipse2 script up and running:]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://chem-bla-ics.linkedchemistry.info/assets/images/mashupCmldomJmolCDK.png" /><media:content medium="image" url="https://chem-bla-ics.linkedchemistry.info/assets/images/mashupCmldomJmolCDK.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry></feed>