annotate visualisation/ob_depiction_svg.xml @ 2:125da3a296ca draft default tip

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