<?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-04-19T09:50:36+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">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="http://chem-bla-ics.blogspot.com/2009/07/bioclipse-moving-to-github-cia-hooks.html">Bioclipse moving to GitHub: CIA hooks enabled</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="http://chem-bla-ics.blogspot.com/2009/07/jchempaint-primary-moving-to-git.html">JChemPaint Primary</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="http://depth-first.com/articles/2009/07/03/seventeen-github-accounts-to-watch-in-cheminformatics">17 GitHub accounts to watch on Cheminformatics</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" /><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>