{"id":1048371,"date":"2011-06-19T15:58:08","date_gmt":"2011-06-19T15:58:08","guid":{"rendered":"http:\/\/www.immortalitymedicine.tv\/chemistry\/google-apps-scripts-for-an-intuitive-interface-to-organic-chemistry-open-notebooks.php"},"modified":"2024-08-17T17:55:07","modified_gmt":"2024-08-17T21:55:07","slug":"google-apps-scripts-for-an-intuitive-interface-to-organic-chemistry-open-notebooks","status":"publish","type":"post","link":"https:\/\/www.euvolution.com\/futurist-transhuman-news-blog\/chemistry\/google-apps-scripts-for-an-intuitive-interface-to-organic-chemistry-open-notebooks.php","title":{"rendered":"Google Apps Scripts for an intuitive interface to organic chemistry Open Notebooks"},"content":{"rendered":"<p>Rich Apodaca <a href=\"http:\/\/metamolecular.com\/blog\/2011\/05\/31\/gchem-convert-names-and-cas-numbers-to-chemical-structures-in-google-spreadsheets\/\">recently demonstrated<\/a> how <a href=\"http:\/\/code.google.com\/googleapps\/appsscript\/\">Google Apps Scripts<\/a> can be added to Google Spreadsheets to enable simple calling of web services for chemistry applications (gChem).  Although we have been using web service calls from within a Google spreadsheet for some time (solubility calculation by NMR <a href=\"http:\/\/onswebservices.wikispaces.com\/NMR\">link #3<\/a> and misc chem conversions <a href=\"http:\/\/onswebservices.wikispaces.com\/misc\">link #1<\/a>), the process wasn't as intuitive as it could be because one had to find then paste lengthy urls.<\/p><p>Rich's approach enables simply clicking the desired web service from a menu on Google Spreadsheets and these functions have simple names like getSMILES.  <a href=\"http:\/\/en.wikipedia.org\/wiki\/Andrew_S.I.D._Lang\">Andrew Lang<\/a> has now added several <a href=\"http:\/\/onswebservices.wikispaces.com\/\">web services from our ONS projects<\/a> and the <a href=\"http:\/\/en.wikipedia.org\/wiki\/Chemistry_Development_Kit\">CDK<\/a>.  There are now 3 menus to choose from: <span>gChem, gCDK and gONS<\/span>.<\/p><p><a href=\"http:\/\/1.bp.blogspot.com\/-sJOY5Z-5_28\/Tfy2-lQwvfI\/AAAAAAAABCI\/bBeqlSNHZvg\/s1600\/3menus.png\"><img decoding=\"async\" style=\"padding-left:10px; padding-right: 10px;\" src=\"https:\/\/www.immortalitymedicine.tv\/wp-content\/plugins\/wp-o-matic\/cache\/a908e_3menus.png\" alt=\"\" border=\"0\"><\/a><br>To demonstrate the power of these tools consider the rapid construction of a <a href=\"https:\/\/spreadsheets.google.com\/spreadsheet\/ccc?key=0Ak1R8T6wt4YQdHZRYXVPakxtRWZRd3AxQTNwcVdIcUE&amp;hl=en_US#gid=0\">customized interface<\/a> to an experiment in a lab notebook (in this example <a href=\"http:\/\/usefulchem.wikispaces.com\/Exp263\">UC-EXP263<\/a>).<\/p><p>1) Because Andy has added a gONS service to render images of molecules from ChemSpider, consistent <a href=\"https:\/\/spreadsheets.google.com\/spreadsheet\/pub?hl=en_US&amp;hl=en_US&amp;key=0Ak1R8T6wt4YQdHZRYXVPakxtRWZRd3AxQTNwcVdIcUE&amp;single=true&amp;gid=1&amp;output=html\">reaction schemes<\/a> can now be constructed from this template by <span>simply typing the name of the reactants and products<\/span> then embedding in the wiki.<\/p><p><a href=\"http:\/\/2.bp.blogspot.com\/-ZjQdXHkjHww\/Tfy-ShJR5iI\/AAAAAAAABCQ\/glH27MZS_rs\/s1600\/schemeUC-EXP233.jpg\"><img decoding=\"async\" style=\"padding-left:10px; padding-right: 10px;\" src=\"https:\/\/www.immortalitymedicine.tv\/wp-content\/plugins\/wp-o-matic\/cache\/a908e_schemeUC-EXP233.jpg\" alt=\"\" border=\"0\"><\/a><\/p><p>2) Planning of the reaction to calculate reactant amounts and product yield can then be processed by simply typing the name of the chemicals.  Services calling molecular weight and density are automatic based on the chemical name as input.<\/p><p><a href=\"http:\/\/1.bp.blogspot.com\/-zkjs9m7rqVQ\/Tfy_ExKjodI\/AAAAAAAABCY\/vkSNvJOL9vo\/s1600\/calcsheet.png\"><img decoding=\"async\" style=\"padding-left:10px; padding-right: 10px;\" src=\"https:\/\/www.immortalitymedicine.tv\/wp-content\/plugins\/wp-o-matic\/cache\/e9d97_calcsheet.png\" alt=\"\" border=\"0\"><\/a><br>3) Typing the name of the solvent then allows easy access to the solubility properties of the reaction components.  The calculated concentrations of the reactants and product can be directly compared with their measured maximum solubility. In this experiment the observed separation of the product from the solution is consistent with these measurements.<\/p><p>4) Both experimental and predicted melting points (using <a href=\"http:\/\/onswebservices.wikispaces.com\/meltingpoint\">Model002<\/a>) can then be lined up for comparison.  A large discrepancy between the two would flag a possible error - in this case good agreement is found.  Noting that the <a href=\"http:\/\/lxsrv7.oru.edu\/~alang\/meltingpoints\/meltingpointof.php?csid=10400\">product's melting point<\/a> is near room temperature (53 C) explains why two layers were were observed to form during the course of the reaction and cooling to 0 C induced the product to precipitate.  Links to the melting measurements are also provided in column N for easy exploration.<\/p><p>5) Column O provides a quick link to the ChemSpider entries for all compounds and column P provides links to the Reaction Attempts Explorer where, for example, one can explore other <a href=\"http:\/\/showme.physics.drexel.edu\/onsc\/reactionattempts\/advancedsearch.php?compound=10400\">reactions where the product was involved<\/a>.  Finally columns Q and R provide one click access to an <a href=\"http:\/\/lxsrv7.oru.edu\/~alang\/ChemDoodleWeb\/spectrumwidget.php?url=http:\/\/usefulchem.wikispaces.com\/file\/view\/UCexp263_1B_CDCl3.jdx\/227835724\/UCexp263_1B_CDCl3.jdxs=1\">interactive NMR spectrum of the product<\/a>, powered by ChemDoodle.<\/p><p>The last few columns still use our older code to call web services but over time these should be added to the gONS collection for convenience.<\/p><p>The easiest way to experiment with this interface is probably to just <a href=\"https:\/\/spreadsheets.google.com\/spreadsheet\/ccc?key=0Ak1R8T6wt4YQdHZRYXVPakxtRWZRd3AxQTNwcVdIcUE&amp;hl=en_US#gid=0\">make a copy<\/a> (File -&gt; Make a Copy from the Google Spreadsheet menu).  The sheet can then be customized for other applications.<\/p><div><img loading=\"lazy\" decoding=\"async\" width=\"1\" height=\"1\" src=\"https:\/\/www.immortalitymedicine.tv\/wp-content\/plugins\/wp-o-matic\/cache\/5e48c_14568785-3911544018491207636?l=usefulchem.blogspot.com\" alt=\"\" style=\"padding-left:10px; padding-right: 10px;\"><\/div>","protected":false},"excerpt":{"rendered":"<p>Rich Apodaca recently demonstrated how Google Apps Scripts can be added to Google Spreadsheets to enable simple calling of web services for chemistry applications (gChem). Although we have been using web service calls from within a Google spreadsheet for some &hellip; <a href=\"https:\/\/www.euvolution.com\/futurist-transhuman-news-blog\/chemistry\/google-apps-scripts-for-an-intuitive-interface-to-organic-chemistry-open-notebooks.php\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"limit_modified_date":"","last_modified_date":"","_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[1246863],"tags":[],"class_list":["post-1048371","post","type-post","status-publish","format-standard","hentry","category-chemistry"],"modified_by":null,"_links":{"self":[{"href":"https:\/\/www.euvolution.com\/futurist-transhuman-news-blog\/wp-json\/wp\/v2\/posts\/1048371"}],"collection":[{"href":"https:\/\/www.euvolution.com\/futurist-transhuman-news-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.euvolution.com\/futurist-transhuman-news-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.euvolution.com\/futurist-transhuman-news-blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.euvolution.com\/futurist-transhuman-news-blog\/wp-json\/wp\/v2\/comments?post=1048371"}],"version-history":[{"count":0,"href":"https:\/\/www.euvolution.com\/futurist-transhuman-news-blog\/wp-json\/wp\/v2\/posts\/1048371\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.euvolution.com\/futurist-transhuman-news-blog\/wp-json\/wp\/v2\/media?parent=1048371"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.euvolution.com\/futurist-transhuman-news-blog\/wp-json\/wp\/v2\/categories?post=1048371"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.euvolution.com\/futurist-transhuman-news-blog\/wp-json\/wp\/v2\/tags?post=1048371"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}