comparison ob_depiction_svg.xml @ 0:88f229c63734 draft

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/openbabel commit 01da22e4184a5a6f6a3dd4631a7b9c31d1b6d502
author bgruening
date Sat, 20 May 2017 08:38:05 -0400
parents
children 672b3365ddbc
comparison
equal deleted inserted replaced
-1:000000000000 0:88f229c63734
1 <tool id="openbabel_svg_depiction" name="Visualisation" version="@VERSION@.0">
2 <description>of compounds</description>
3 <macros>
4 <import>macros.xml</import>
5 </macros>
6 <expand macro="requirements"/>
7 <command detect_errors="aggressive">
8 <![CDATA[
9 obabel
10 -i${infile.ext}
11 "${infile}"
12 $embed_molecule_as_cml
13 $draw_all_carbon_atoms
14 -xC
15 -O
16 "${outfile}"
17 -o$oformat
18 #if $sort:
19 --sort $sort
20 #end if
21 #if str($display_name) != "None" and len(str($display_name)) > 0 and str($display_name) != 'title':
22 --append "$display_name"
23 --title ""
24 #end if
25 $thick_lines
26 2>&1
27 ]]>
28 </command>
29 <inputs>
30 <expand macro="infile_all_types"/>
31 <param name="embed_molecule_as_cml" type="boolean" truevalue="-e" falsevalue="" label="Embed molecule as CML"/>
32 <param name="draw_all_carbon_atoms" type="boolean" truevalue="-a" falsevalue="" label="draw all carbon atoms"/>
33 <param name="thick_lines" type="boolean" truevalue="-xt" falsevalue="" label="use thicker lines"/>
34
35 <param name='display_name' type='select' format='text' label="The property which is displayed under the molecule">
36 <option value='title'>Molecule's title</option>
37 <option value='MW'>Molecular Weight</option>
38 <option value='abonds'>Number of aromatic bonds</option>
39 <option value='atoms'>Number of atoms</option>
40 <option value='bonds'>Number of bonds</option>
41 <option value='cansmi'>Canonical SMILES</option>
42 <option value='cansmiNS'>Canonical SMILES without isotopes or stereo</option>
43 <option value='dbonds'>Number of double bonds</option>
44 <option value='formula'>Chemical formula</option>
45 <option value='HBA1'>Number of Hydrogen Bond Acceptors 1 (JoelLib)</option>
46 <option value='HBA2'>Number of Hydrogen Bond Acceptors 2 (JoelLib)</option>
47 <option value='HBD'>Number of Hydrogen Bond Donors (JoelLib)</option>
48 <option value='InChI'>IUPAC InChI identifier</option>
49 <option value='L5'>Lipinski Rule of Five</option>
50 <option value='logP'>octanol/water partition coefficient</option>
51 <option value='MR'>molar refractivity</option>
52 <option value='nF'>Number of Fluorine Atoms</option>
53 <option value='s'>SMARTS filter</option>
54 <option value='sbonds'>Number of single bonds</option>
55 <option value='smarts'>SMARTS filter</option>
56 <option value='tbonds'>Number of triple bonds</option>
57 <option value='TPSA'>topological polar surface area</option>
58 </param>
59
60 <param name='sort' type='select' format='text' optional="True" label="Sorting the displayed molecules by">
61 <option value='MW'>Molecular Weight</option>
62 <option value='abonds'>Number of aromatic bonds</option>
63 <option value='atoms'>Number of atoms</option>
64 <option value='bonds'>Number of bonds</option>
65 <option value='dbonds'>Number of double bonds</option>
66 <option value='HBA1'>Number of Hydrogen Bond Acceptors 1 (JoelLib)</option>
67 <option value='HBA2'>Number of Hydrogen Bond Acceptors 2 (JoelLib)</option>
68 <option value='HBD'>Number of Hydrogen Bond Donors (JoelLib)</option>
69 <option value='L5'>Lipinski Rule of Five</option>
70 <option value='logP'>octanol/water partition coefficient</option>
71 <option value='MR'>molar refractivity</option>
72 <option value='nF'>Number of Fluorine Atoms</option>
73 <option value='sbonds'>Number of single bonds</option>
74 <option value='tbonds'>Number of triple bonds</option>
75 <option value='TPSA'>topological polar surface area</option>
76 </param>
77
78 <param name='oformat' type='select' format='text' label="Format of the resulting picture">
79 <option value='svg'>SVG</option>
80 <option value='png'>PNG</option>
81 </param>
82
83 </inputs>
84 <outputs>
85 <data name="outfile" format="png" label="${tool.name} on ${on_string}">
86 <change_format>
87 <when input="oformat" value="svg" format="svg"/>
88 </change_format>
89 </data>
90 </outputs>
91 <tests>
92 <test>
93 <param name="infile" ftype="smi" value="8_mol.smi" />
94 <param name="embed_molecule_as_cml" value="False" />
95 <param name="draw_all_carbon_atoms" value="True" />
96 <param name="thick_lines" value="True" />
97 <param name='display_name' value="title" />
98 <output name="outfile" ftype="svg" file="ob_depiction_svg_on_8_mol.svg" lines_diff="100" />
99 </test>
100 </tests>
101 <help>
102 <![CDATA[
103
104 .. class:: infomark
105
106 **What this tool does**
107
108 Creates an .svg or .png image of a small set of molecules (few hundreds). Based on Open Babel PNG_/SVG_ 2D depiction.
109
110 .. _PNG: http://openbabel.org/docs/dev/FileFormats/PNG_2D_depiction.html
111 .. _SVG: http://openbabel.org/docs/dev/FileFormats/SVG_2D_depiction.html
112
113 -----
114
115 .. class:: warningmark
116
117 **Hint**
118
119 Use only libraries with at most a few hundred molecules.
120
121
122 ]]>
123 </help>
124 <expand macro="citations"/>
125 </tool>