<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Shiny on zachcp</title>
		<link>http://zachcp.org/categories/shiny/</link>
		<description>Recent content in Shiny 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/shiny/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>
	</channel>
</rss>
