changeset 0:2bebf3bd9a34

Uploaded
author bgruening
date Fri, 26 Apr 2013 08:39:52 -0400
parents
children 2614385be725
files opsin.xml repository_dependencies.xml test-data/iupac_names.txt test-data/opsin_results.smi tool_dependencies.xml
diffstat 5 files changed, 83 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/opsin.xml	Fri Apr 26 08:39:52 2013 -0400
@@ -0,0 +1,54 @@
+<tool id="ctb_opsin" name="IUPAC name-to-structure" version="0.1">
+    <description>converter (OPSIN)</description>
+    <requirements>
+        <requirement type="package" version="1.4.0">opsin</requirement>
+    </requirements>
+    <command>java -jar \$JAVA_JAR_PATH/opsin-1.4.0-jar-with-dependencies.jar ${radicals} "${wildcards}" -o$oformat &lt; "${infile}" &gt; "${outfile}" </command>
+    <stdio>
+        <exit_code range="1:" />
+        <exit_code range=":-1" />
+        <regex match="Error:" />
+        <regex match="EXception:" />
+    </stdio>
+    <inputs>
+        <param format="tabular,text" name="infile" type="data" label="IUPAC names" help="Dataset missing? See TIP below"/>
+        <param name="oformat" type="select" label="Output format">
+            <option value="smi">SMILES</option>
+            <option value="cml">Chemical Markup Language</option>
+            <option value="inchi">InChI</option>
+        </param>
+        <param name='radicals' type='boolean' label='Enables interpretation of radicals' truevalue='--allowRadicals' falsevalue='' />
+        <param name='wildcards' type='boolean' label='Radicals are output as wildcard atoms' truevalue='--wildcardRadicals' falsevalue='' />
+    </inputs>
+    <outputs>
+        <data format="tabular" name="outfile" />
+    </outputs>
+    <tests>
+        <test>
+            <param name="infile" value="iupac_names.txt"/>
+            <param name="oformat" value="smi"/>
+            <output name="outfile" file="opsin_results.smi"/>
+        </test>
+    </tests>
+    <help>
+
+
+**What it is**
+
+OPSIN_ [1] is a IUPAC name-to-structure conversion tool offering high recall and precision on organic chemical nomenclature.
+
+.. _Opsin: https://bitbucket.org/dan2097/opsin/overview
+
+-----
+
+    
+**Cite**
+
+[1] Chemical Name to Structure: OPSIN, an Open Source Solution
+Daniel M. Lowe, Peter T. Corbett, Peter Murray-Rust, Robert C. Glen
+Journal of Chemical Information and Modeling 2011 51 (3), 739-753
+
+http://dx.doi.org/10.1021/ci100384d
+
+    </help>
+</tool>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/repository_dependencies.xml	Fri Apr 26 08:39:52 2013 -0400
@@ -0,0 +1,4 @@
+<?xml version="1.0"?>
+<repositories description="This requires the Molecule datatype definitions (e.g. SMILES, InChI, SD-format).">
+	<repository toolshed="http://testtoolshed.g2.bx.psu.edu/" name="molecule_datatypes" owner="bgruening" changeset_revision="25698453d7d7" />
+</repositories> 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/iupac_names.txt	Fri Apr 26 08:39:52 2013 -0400
@@ -0,0 +1,4 @@
+acetonitrile
+bla
+foo
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/opsin_results.smi	Fri Apr 26 08:39:52 2013 -0400
@@ -0,0 +1,4 @@
+C(C)#N
+
+
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tool_dependencies.xml	Fri Apr 26 08:39:52 2013 -0400
@@ -0,0 +1,17 @@
+<tool_dependency>
+    <package name="opsin" version="1.4.0">
+        <install version="1.0">
+            <actions>
+                <action type="download_by_url">https://bitbucket.org/dan2097/opsin/downloads/opsin-1.4.0-jar-with-dependencies.jar</action>
+               <action type="move_file">
+                    <source>opsin-1.4.0-jar-with-dependencies.jar</source>
+                    <destination>$INSTALL_DIR/jars</destination>
+                </action>
+                <action type="set_environment">
+                    <environment_variable name="JAVA_JAR_PATH" action="set_to">$INSTALL_DIR/jars</environment_variable>
+                </action>
+            </actions>
+        </install>
+        <readme>Opsin requires a JAVA (1.5+) runtime evironment.</readme>
+    </package>
+</tool_dependency>