<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Depth-First: Tag 3d</title>
    <link>http://depth-first.com/articles/tag/3d</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Walking the Web of Chemical Informatics</description>
    <item>
      <title>Adobe Flash for Cheminformatics: Chemul, a 3D Structure Viewer</title>
      <description>&lt;p&gt;&lt;center&gt;&lt;object width="400" height="420"&gt;&lt;param name="movie" value="http://hossy.net/chemul/swf/?mol=zFg07CUMvyunY7UM&amp;amp;config=0KSnRaUMdt"&gt;&lt;/param&gt;&lt;embed src="http://hossy.net/chemul/swf/?mol=zFg07CUMvyunY7UM&amp;amp;config=0KSnRaUMdt" type="application/x-shockwave-flash" width="400" height="420"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/center&gt;&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="http://depth-first.com/articles/tag/flash"&gt;Previous articles&lt;/a&gt; have discussed the use of Adobe Flash for cheminformatics. &lt;a href="http://www.javac.jp/"&gt;Tetsuya Hoshi&lt;/a&gt; has created a 3D structure viewer (embedded above) called &lt;a href="http://hossy.net/chemul/"&gt;Chemul&lt;/a&gt; that can be used with the Flash Player and which is written in &lt;a href="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/"&gt;ActionScript 3.0&lt;/a&gt;. Although the documentation is written in Japanese, it appears that Chemul supports multiple display options, as evidenced &lt;a href="http://www.javac.jp/flash/molecular/moleculardraw003/index.html"&gt;here&lt;/a&gt;.&lt;/p&gt;</description>
      <pubDate>Thu, 14 Aug 2008 16:27:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:0b203cb6-4117-4a64-a06a-23d9a14c2f53</guid>
      <author>Rich Apodaca</author>
      <link>http://depth-first.com/articles/2008/08/14/adobe-flash-for-cheminformatics-chemul-a-3d-structure-viewer</link>
      <category>Tools</category>
      <category>chemul</category>
      <category>flash</category>
      <category>swf</category>
      <category>3d</category>
    </item>
    <item>
      <title>3D Molecule Viewer on the iPhone</title>
      <description>&lt;p&gt;&lt;a href="http://flickr.com/photos/kitcowan/731269699/"&gt;&lt;img src="http://depth-first.com/demo/20080711/iphone.jpg" align="right"&gt;&lt;/img&gt;&lt;/a&gt;Portable computing platforms like the iPhone may hold a great deal of untapped potential in science. The last five years have witnessed a sharp increase in their graphics and computational capabilities, with the iPhone setting off a new drive for ever more feature-rich and usable devices. In many lab settings, laptop computers are simply too cumbersome to be practical. A handheld device makes much more sense in these situations.&lt;/p&gt;

&lt;p&gt;So, what can the iPhone do for chemistry?&lt;/p&gt;

&lt;p&gt;One answer comes from &lt;a href="http://www.sunsetlakesoftware.com/about"&gt;Brad Larson&lt;/a&gt;, software developer and founder of &lt;a href="http://www.sunsetlakesoftware.com/"&gt;Sunset Lake Software&lt;/a&gt;. His software, &lt;a href="http://www.sunsetlakesoftware.com/molecules"&gt;Molecules&lt;/a&gt;, can display a variety of 3D molecular representations on the iPhone. As you might expect for software running on the iPhone, the view can be manipulated with touch screen gestures like two-finger pinch to zoom. Data can be pulled directly from the &lt;a href="http://www.rcsb.org/pdb"&gt;PDB&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The author plans to release the Molecules source code under the &lt;a href="http://www.opensource.org/licenses/bsd-license.php"&gt;BSD License&lt;/a&gt;, pending approval from Apple.&lt;/p&gt;

&lt;p&gt;More information is available from &lt;a href="http://www.sunsetlakesoftware.com/2008/07/10/molecules-iphone-and-ipod-touch"&gt;Larson's blog&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Credit: &lt;a href="http://homepage.mac.com/swain/Macinchem/page5/files/34ed07b02170ce6c327fd253b540fc0b-271.html#unique-entry-id-271"&gt;Chris Swain&lt;/a&gt;&lt;/em&gt;
&lt;em&gt;Image Credit: &lt;a href="http://flickr.com/photos/kitcowan/"&gt;K!T&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 11 Jul 2008 11:35:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:4cb178e6-a9f4-4abb-aefa-3f7deb9c99ca</guid>
      <author>Rich Apodaca</author>
      <link>http://depth-first.com/articles/2008/07/11/3d-molecule-viewer-on-the-iphone</link>
      <category>Tools</category>
      <category>iphone</category>
      <category>3d</category>
      <category>molecules</category>
      <category>sunsetlakesoftware</category>
    </item>
    <item>
      <title>3D Molecular Visualization on the Web: OpenAstexViewer</title>
      <description>&lt;p&gt;&lt;center&gt;&lt;a href="http://openastexviewer.net/web/"&gt;&lt;img src="http://depth-first.com/demo/20080619/astex.png"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/center&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="http://openastexviewer.net/web/"&gt;OpenAstexViewer&lt;/a&gt; is an &lt;a href="http://openastexviewer.net/web/license.html"&gt;LGPL-licensed&lt;/a&gt; 3D molecular visualization tool written in Java. With the obfuscated jarfile weighing in at 1 MB, OpenAstexViewer could make a good choice for use in Web applications.&lt;/p&gt;

&lt;p&gt;There are now at least two open source, feature-rich 3D molecular visualization tools written in Java (the other being &lt;a href="http://jmol.sourceforge.net/"&gt;Jmol&lt;/a&gt;). Are there any others?&lt;/p&gt;

&lt;p&gt;Credit: thanks to &lt;a href="http://baoilleach.blogspot.com/2008/06/jmol-gets-competition-openastexviewer.html"&gt;Noel O'Boyle&lt;/a&gt; for spotting this.&lt;/p&gt;</description>
      <pubDate>Thu, 19 Jun 2008 09:04:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:5a17e1c6-770f-48b3-84fe-98c9589ea4b3</guid>
      <author>Rich Apodaca</author>
      <link>http://depth-first.com/articles/2008/06/19/3d-molecular-visualization-on-the-web-openastexviewer</link>
      <category>Tools</category>
      <category>3d</category>
      <category>openastexviewer</category>
      <category>visualization</category>
      <category>java</category>
      <category>applet</category>
    </item>
    <item>
      <title>Small Molecule 3D Coordinates From PubChem</title>
      <description>&lt;p&gt;&lt;a href="http://pubchem.ncbi.nlm.nih.gov/"&gt;&lt;img src="http://depth-first.com/files/pubchemlogo.gif" align="right"&gt;&lt;/img&gt;&lt;/a&gt;The PubChem team has quietly introduced a new feature - 3D coordinates for many of the small molecules in its compound collection. To my knowledge, these coordinates are only currently &lt;a href="ftp://ftp.ncbi.nlm.nih.gov/pubchem/Compound_3D/"&gt;available via FTP&lt;/a&gt;. From the &lt;a href="ftp://ftp.ncbi.nlm.nih.gov/pubchem/Compound_3D/README"&gt;README&lt;/a&gt;:&lt;/p&gt;

&lt;blockquote&gt;
    &lt;p&gt;The data contained here consists of a theoretical 3D description of PubChem Compound records computed using the MMFF94s force field without coulombic terms, including MMFF charges.  Each provided theoretical 3D conformer is not a stationary point on the hyper-potential surface (i.e., is not at a minimum energy).  Rather, the theoretical 3D description is a low energy conformer selected from a conformer model (a theoretical description of the conformational flexibility of a chemical structure consisting of multiple 3D representations or poses sampled using an RMSD {root mean squared distance} threshold) describing energetically-accessible and (potentially) biologically relevant coformations of a chemical structure.&lt;/p&gt;
    
    &lt;p&gt;Not every PubChem Compound record will have a theoretical 3D description. Structures considered too large (containing more than 50 non-hydrogen atoms) or too flexible (containing more than 15 rotatable bonds) are excluded.  Furthermore, chemical structures containing elements other than H, C, N, O, F, P, S, Cl, Br, and I are also excluded.&lt;/p&gt;
    
    &lt;p&gt;Generation of theoretical 3D descriptions of small molecules is computationally intensive.  As such, some PubChem Compound records may be added at a later time.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;(A few open source packages for &lt;a href="http://depth-first.com/articles/2007/12/12/simple-3d-conformer-generation-with-smi23d"&gt;generating 3D conformers&lt;/a&gt; are also available.)&lt;/p&gt;

&lt;p&gt;Recently, &lt;a href="http://hutchison.chem.pitt.edu/"&gt;Geoff Hutchison&lt;/a&gt; wrote in &lt;a href="http://depth-first.com/articles/2008/05/14/the-daily-molecule-the-wonders-of-chemistry-one-molecule-at-a-time#comment-556"&gt;to suggest&lt;/a&gt; that a potentially useful new feature of &lt;a href="http://chempedia.com"&gt;Chempedia&lt;/a&gt; could be the ability to directly obtain 3D coordinates for a molecule of interest.&lt;/p&gt;

&lt;p&gt;One very economical way to do that would be to use PubChem's 3D dataset. It would also be trivial to display these coordinates as a resizable &lt;a href="http://jmol.sourceforge.net/"&gt;Jmol applet&lt;/a&gt;, in analogy to &lt;a href="http://depth-first.com/articles/2008/05/19/building-chempedia-resizable-structures-with-chemwriter"&gt;Chempedia's recently-added 2D molecule resizing feature&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Of course, there are many other potential uses for the PubChem conformer dataset, especially when applied to Web applications.&lt;/p&gt;</description>
      <pubDate>Fri, 23 May 2008 10:53:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:1fdc7fbf-3af8-4928-9770-668ad24d8df2</guid>
      <author>Rich Apodaca</author>
      <link>http://depth-first.com/articles/2008/05/23/small-molecule-3d-coordinates-from-pubchem</link>
      <category>Tools</category>
      <category>chempedia</category>
      <category>3d</category>
      <category>conformer</category>
      <category>pubchem</category>
      <category>smi23d</category>
      <category>ftp</category>
    </item>
    <item>
      <title>Simple 3D Conformer Generation with Smi23D</title>
      <description>&lt;p&gt;&lt;a href="http://flickr.com/photos/42614915@N00/133799283/"&gt;&lt;img src="http://depth-first.com/demo/20071212/3d.jpg" align="right"&gt;&lt;/img&gt;&lt;/a&gt;Three-dimensional conformer generation is a common problem in cheminformatics. The most convenient and generally-useful method for creating chemical structures is the &lt;a href="http://depth-first.com/articles/2007/11/27/chemwriter-chemical-structures-and-the-web"&gt;2D chemical structure editor&lt;/a&gt;; applications that require three-dimensional representations need a way to generate reasonable coordinates from 2D user input. &lt;a href="http://miningdrugs.blogspot.com/2007/10/open-source-conformer-generators-are.html"&gt;Until recently&lt;/a&gt;, there were no options for doing so with Open Source software. This article shows how the Open Source package &lt;a href="http://www.chembiogrid.org/cheminfo/smi23d/"&gt;smi23d&lt;/a&gt; can be used to convert ordinary SMILES strings into three-dimensional molfile representations.&lt;/p&gt;

&lt;h4&gt;About smi23d&lt;/h4&gt;

&lt;p&gt;smi23d uses a two-stage process to generate 3D coordinates.; an initial pass with &lt;tt&gt;smi2sdf&lt;/tt&gt; generates rough coordinates and subsequent refinement by &lt;tt&gt;mengine&lt;/tt&gt; results in the final coordinates. The package was originally written in C by Kevin Gilbert and updated by &lt;a href="http://cheminfo.informatics.indiana.edu/~rguha/index.html"&gt;Rajarshi Guha&lt;/a&gt;. As part of what appears to be a growing trend in cheminformatics, smi23d is licensed under the highly-permissive &lt;a href="http://opensource.org/licenses/apache2.0.php"&gt;Apache License&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;On a related note, the source code for a program called &lt;a href="http://bioserv.rpbs.jussieu.fr/Help/Frog-Help.html"&gt;Frog&lt;/a&gt; is reportedly &lt;a href="http://baoilleach.blogspot.com/2007/10/ann-frog-donates-code-to-openbabel-for.html"&gt;on its way&lt;/a&gt; into the &lt;a href="http://openbabel.sf.net"&gt;Open Babel&lt;/a&gt; project.&lt;/p&gt;

&lt;h4&gt;Prerequisites&lt;/h4&gt;

&lt;p&gt;To build smi23d, you'll need to install &lt;a href="http://www.scons.org/"&gt;Scons&lt;/a&gt;, a Make-like build utility written in Python. I was able to install the &lt;a href="http://sourceforge.net/project/showfiles.php?group_id=30337&amp;amp;package_id=22359"&gt;Scons rpm&lt;/a&gt; on my Linux system without a problem. smi23d uses no other dependencies.&lt;/p&gt;

&lt;h4&gt;Download smi23d&lt;/h4&gt;

&lt;p&gt;smi23d can be downloaded with Subversion:&lt;/p&gt;

&lt;div class="console"&gt;
&lt;pre&gt;
$ svn co https://cicc-grid.svn.sourceforge.net/svnroot/cicc-grid/cicc-grid/smi23d/trunk smi23d
&lt;/pre&gt;
&lt;/div&gt;

&lt;h4&gt;Building smi23d&lt;/h4&gt;

&lt;p&gt;With the source code in place, compilation is just a matter of running Scons:&lt;/p&gt;

&lt;div class="console"&gt;
&lt;pre&gt;
$ cd smi23d
$ scons
...
&lt;/pre&gt;
&lt;/div&gt;

&lt;p&gt;Once the sources are compiled, we'll want to configure our system a bit:&lt;/p&gt;

&lt;div class="console"&gt;
&lt;pre&gt;
$ cd build
$ ls
mmff94.prm  mmxconst.prm

$ cp ../src/smi2sdf/smi2sdf .
$ cp ../src/mengine/mengine .
&lt;/pre&gt;
&lt;/div&gt;

&lt;p&gt;The two files &lt;strong&gt;mmff94.prm&lt;/strong&gt; and &lt;strong&gt;mmxconst.prm&lt;/strong&gt; are parameter files needed by both &lt;tt&gt;smi2sdf&lt;/tt&gt; and &lt;tt&gt;mengine&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;With &lt;tt&gt;smi2sdf&lt;/tt&gt; and &lt;tt&gt;mengine&lt;/tt&gt; both in the &lt;strong&gt;build&lt;/strong&gt; directory, we can create a simple test with the SMILES for &lt;a href="http://pubchem.ncbi.nlm.nih.gov/summary/summary.cgi?cid=132999"&gt;Ivabradine&lt;/a&gt;:&lt;/p&gt;

&lt;div class="console"&gt;
&lt;pre&gt;
$ vi test.smi
...

$ cat test.smi
CN(CCCN1CCC2=CC(=C(C=C2CC1=O)OC)OC)C[C@H]3CC4=CC(=C(C=C34)OC)OC

&lt;/div&gt;

&lt;p&gt;With everything ready to go, we can begin Stage one:&lt;/p&gt;

&lt;div class="console"&gt;
&lt;pre&gt;
$ ./smi2sdf test.smi
Found 1 structures in test.smi
 field : MMX
 Atom Types: 169
 Bonds: 580 Bond3: 0 Bond4: 0 Bond5: 0
 Angle: 434 Angle3: 41 Angle4: 60 Angle5: 0
 Torsion: 697  Torsion4: 58 Torsion5: 0
 Vdw: 172 OOP: 91 Dipole: 474 Charge: 0 Improper: 0
 STBN: 26 ANGANG: 0 STRTOR: 0 VDWPR: 4


Input file  = test.smi
Output file = output.sdf
Param file  = mmxconst.prm
Log file    = error.log
Inorganic file = test_inorg.smi

Structure: 0 CN(CCCN1CCC2=CC(=C(C=C2CC1=O)OC)OC)C[C@H]3CC4=CC(=C(C=C34)OC)OC
&lt;/pre&gt;
&lt;/div&gt;

&lt;p&gt;You can view the result in an application like &lt;a href="http://jmol.sf.net"&gt;Jmol&lt;/a&gt;:&lt;/p&gt;

&lt;p&gt;&lt;center&gt;&lt;img src="http://depth-first.com/demo/20071212/smi23d.png"&gt;&lt;/img&gt;&lt;/center&gt;&lt;/p&gt;

&lt;p&gt;It's not much to look at, but we're not quite done yet.&lt;/p&gt;

&lt;p&gt;Stage two is accomplished by using the output of Stage one as input to &lt;tt&gt;mengine&lt;/tt&gt;:&lt;/p&gt;

&lt;div class="console"&gt;
&lt;pre&gt;
$ ./mengine -o optimized.sdf output.sdf
 field : MMX
 Atom Types: 169
 Bonds: 580 Bond3: 0 Bond4: 0 Bond5: 0
 Angle: 434 Angle3: 41 Angle4: 60 Angle5: 0
 Torsion: 697  Torsion4: 58 Torsion5: 0
 Vdw: 172 OOP: 91 Dipole: 474 Charge: 0 Improper: 0
 STBN: 26 ANGANG: 0 STRTOR: 0 VDWPR: 4
 field : MMFF94
 Atom Types: 181
 Bonds: 448 Bond3: 0 Bond4: 0 Bond5: 0
 Angle: 1801 Angle3: 21 Angle4: 61 Angle5: 0
 Torsion: 674  Torsion4: 38 Torsion5: 95
 Vdw: 182 OOP: 112 Dipole: 0 Charge: 0 Improper: 0
 STBN: 286 ANGANG: 0 STRTOR: 0 VDWPR: 0
&lt;/pre&gt;
&lt;/div&gt;

&lt;p&gt;We now have a file called &lt;strong&gt;output.sdf&lt;/strong&gt;. As you can see, it's a pretty good 3D representation of Ivabradine:&lt;/p&gt;

&lt;p&gt;&lt;center&gt;&lt;img src="http://depth-first.com/demo/20071212/mengine.png"&gt;&lt;/img&gt;&lt;/center&gt;&lt;/p&gt;

&lt;h4&gt;Conclusions&lt;/h4&gt;

&lt;p&gt;In this tutorial, we've seen how the Open Source program smi23d can be used to assign reasonable 3D coordinates to an arbitrary SMILES string. One very practical use of smi23d would be to process the output of 2D chemical structure editors prior to use in a 3D program. Future articles will discuss some of the possibilities.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Image Credit: &lt;a href="http://flickr.com/photos/42614915@N00/"&gt;Mary Mactavish&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 12 Dec 2007 10:32:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:5b691ae6-98d7-43ee-a652-0d81c5b576bb</guid>
      <author>Rich Apodaca</author>
      <link>http://depth-first.com/articles/2007/12/12/simple-3d-conformer-generation-with-smi23d</link>
      <category>Tools</category>
      <category>smi23d</category>
      <category>2d</category>
      <category>3d</category>
      <category>structureeditor</category>
      <category>scons</category>
      <category>conformer</category>
      <category>chemwriter</category>
    </item>
  </channel>
</rss>
