<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Chemdoodle on zachcp</title>
		<link>http://zachcp.org/categories/chemdoodle/</link>
		<description>Recent content in Chemdoodle on zachcp</description>
		<generator>Hugo</generator>
		<language>en-us</language>
		
		
		
			<copyright>© 2007- {year}</copyright>
		
		
			<lastBuildDate>Sat, 19 Mar 2016 08:03:00 +0000</lastBuildDate>
		
			<atom:link href="http://zachcp.org/categories/chemdoodle/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Chemdoodle Sketcher Gadget</title>
				<link>http://zachcp.org/blog/sketcher_gadget/</link>
				<pubDate>Sat, 19 Mar 2016 08:03:00 +0000</pubDate>
				<guid>http://zachcp.org/blog/sketcher_gadget/</guid>
				<description>&lt;p&gt;This week I put together an interactive Shiny Gadget that wraps the Chemdoodle Sketcher JS. The basic operation is as follows.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code class=&#34;language-r&#34;&gt;# install the library.&#xA;# needs rJava with Java 7 or greater. see below if difficult to install&#xA;devtools::install_github(&amp;quot;zachcp/chemdoodle&amp;quot;)&#xA;&#xA;# launches the chemdoodle sketcher and stores the resulting JSON&#xA;moljson &amp;lt;- drawMolecule()&#xA;&#xA;# processes  JSON to a CDK AtomContainer&#xA;mol &amp;lt;- processChemDoodleJson(moljson)&#xA;&#xA;# convert to SMILES&#xA;smi &amp;lt;- toSmiles(mol)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The sketcher itself looks like this:&lt;/p&gt;</description>
			</item>
			<item>
				<title>Browser Chemistry Part I</title>
				<link>http://zachcp.org/blog/browserchemistry/</link>
				<pubDate>Mon, 08 Jun 2015 08:03:00 +0000</pubDate>
				<guid>http://zachcp.org/blog/browserchemistry/</guid>
				<description>&lt;p&gt;A few months back &lt;a href=&#34;http://baoilleach.blogspot.co.uk/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Noel O&amp;rsquo;Boyle&lt;/a&gt; wrote a series of blog posts wherein he used &lt;a href=&#34;http://kripken.github.io/emscripten-site/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Emscripten&lt;/a&gt;&#xA;to compile a number of chemoinformatics toolkits to Javascript including &lt;a href=&#34;http://baoilleach.blogspot.com/2015/02/cheminformaticsjs-open-babel.html&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;OpenBabel&lt;/a&gt;,&#xA;&lt;a href=&#34;http://baoilleach.blogspot.com/2015/02/cheminformaticsjs-rdkit.html&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;RDKit&lt;/a&gt;, and &lt;a href=&#34;http://baoilleach.blogspot.com/2015/02/cheminformaticsjs-helium.html&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Helium&lt;/a&gt;. As someone interested in using the browser to interact with molecules, I thought this was a great series of posts and thought I might even be able to reuse some of the javascript he had generated. However, upon attempting to reuse his smiles-to-svg functions on a different webpage I discovered that output of Emscripten is difficult to reuse (or at least not obvious to someone unfamiliar with &lt;a href=&#34;http://asmjs.org/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;ASM.js&lt;/a&gt;. I tried downloading&#xA;the JS file in order to call the smiles-to-svg function in another context but started running into errors with the generated code. I was still interested in trying to generate images in the browser, however, and in his &lt;a href=&#34;http://baoilleach.blogspot.com/2015/02/cheminformaticsjs-conclusion.html&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;final post&lt;/a&gt;, Noel points the way by mentioning the &lt;a href=&#34;https://github.com/kemia/kemia&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;kemia&lt;/a&gt; project, a javascript chemistry library that aims to be &amp;ldquo;the world’s first open source, 100% javascript chemistry toolkit.&amp;rdquo; The rest of this post is how I used kemia, ChemDoodle, and clojurescript to make pure-browser smiles-to-canvas widget.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
