annotate convert/ob_convert.xml @ 3:282503f242cf

Uploaded
author bgruening
date Fri, 26 Apr 2013 09:07:43 -0400
parents 6493d130f018
children 12822efbd4a4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
6493d130f018 Uploaded
bgruening
parents:
diff changeset
1 <tool id="compound_convert" name="Compound Convert">
6493d130f018 Uploaded
bgruening
parents:
diff changeset
2 <description>Converts various chemistry and molecular modeling data files</description>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
3 <!--<parallelism method="multi" split_inputs="infile" split_mode="to_size" split_size="10000" shared_inputs="" merge_outputs="outfile"></parallelism>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
4 We can't use that currently, because a few output-datatypes, like the fastsearch index do not support merging. We need to patch galaxy to not abort in such a case
6493d130f018 Uploaded
bgruening
parents:
diff changeset
5 and run the job in non.multi mode.
6493d130f018 Uploaded
bgruening
parents:
diff changeset
6 -->
6493d130f018 Uploaded
bgruening
parents:
diff changeset
7 <requirements>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
8 <requirement type="package" version="2.3.2">openbabel</requirement>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
9 </requirements>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
10 <command>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
11 ## The command is a Cheetah template which allows some Python based syntax.
6493d130f018 Uploaded
bgruening
parents:
diff changeset
12 ## Lines starting hash hash are comments. Galaxy will turn newlines into spaces
6493d130f018 Uploaded
bgruening
parents:
diff changeset
13
6493d130f018 Uploaded
bgruening
parents:
diff changeset
14 #if str($out_format) == 'fs':
6493d130f018 Uploaded
bgruening
parents:
diff changeset
15 ## For the fastsearch index we need to copy the original molecule files to the composite datatype of obfs.
6493d130f018 Uploaded
bgruening
parents:
diff changeset
16 ## Because openbabel likes file extensions, we give the molecule file a proper file extension.
6493d130f018 Uploaded
bgruening
parents:
diff changeset
17 mkdir $outfile.extra_files_path;
6493d130f018 Uploaded
bgruening
parents:
diff changeset
18 cp "${infile}" ${os.path.join($outfile.extra_files_path, 'molecule.%s' % $infile.ext )};
6493d130f018 Uploaded
bgruening
parents:
diff changeset
19 #end if
6493d130f018 Uploaded
bgruening
parents:
diff changeset
20
6493d130f018 Uploaded
bgruening
parents:
diff changeset
21 obabel -i "${infile.ext}"
6493d130f018 Uploaded
bgruening
parents:
diff changeset
22 #if str($out_format) == 'fs':
6493d130f018 Uploaded
bgruening
parents:
diff changeset
23 ${os.path.join($outfile.extra_files_path, 'molecule.%s' % $infile.ext )}
6493d130f018 Uploaded
bgruening
parents:
diff changeset
24 -o "${out_format}" -e
6493d130f018 Uploaded
bgruening
parents:
diff changeset
25 -O ${os.path.join($outfile.extra_files_path,'molecule.fs')}
6493d130f018 Uploaded
bgruening
parents:
diff changeset
26 #else:
6493d130f018 Uploaded
bgruening
parents:
diff changeset
27 "${infile}"
6493d130f018 Uploaded
bgruening
parents:
diff changeset
28 -o "${out_format}" -e
6493d130f018 Uploaded
bgruening
parents:
diff changeset
29 -O "${outfile}"
6493d130f018 Uploaded
bgruening
parents:
diff changeset
30 #end if
6493d130f018 Uploaded
bgruening
parents:
diff changeset
31
6493d130f018 Uploaded
bgruening
parents:
diff changeset
32 $remove_h
6493d130f018 Uploaded
bgruening
parents:
diff changeset
33 #if $iso_chi or $can or $exp_h:
6493d130f018 Uploaded
bgruening
parents:
diff changeset
34 -x$iso_chi$exp_h$can
6493d130f018 Uploaded
bgruening
parents:
diff changeset
35 #end if
6493d130f018 Uploaded
bgruening
parents:
diff changeset
36 #if $dative_bonds:
6493d130f018 Uploaded
bgruening
parents:
diff changeset
37 -b
6493d130f018 Uploaded
bgruening
parents:
diff changeset
38 #end if
6493d130f018 Uploaded
bgruening
parents:
diff changeset
39 #if int($ph) >= 0:
6493d130f018 Uploaded
bgruening
parents:
diff changeset
40 -p $ph
6493d130f018 Uploaded
bgruening
parents:
diff changeset
41 #end if
6493d130f018 Uploaded
bgruening
parents:
diff changeset
42 2>&#38;1
6493d130f018 Uploaded
bgruening
parents:
diff changeset
43 </command>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
44 <inputs>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
45 <param name="infile" type="data" format="sdf,mol2,cml,inchi,smi" label="Select input file with molecules"/>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
46 <param name="out_format" type="select" label="Output format">
6493d130f018 Uploaded
bgruening
parents:
diff changeset
47 <option value="acr">Carine ASCI Crystal</option>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
48 <option value="alc">Alchemy format</option>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
49 <option value="bgf">MSI BGF format</option>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
50 <option value="box">Dock 3.5 Box format</option>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
51 <option value="bs">Ball and Stick format</option>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
52 <option value="c3d1">Chem3D Cartesian 1 format</option>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
53 <option value="c3d2">Chem3D Cartesian 2 format</option>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
54 <option value="caccrt">Cacao Cartesian format</option>
3
282503f242cf Uploaded
bgruening
parents: 0
diff changeset
55 <option value="cache">CAChe MolStruct format</option>
282503f242cf Uploaded
bgruening
parents: 0
diff changeset
56 <option value="cacint">Cacao Internal format</option>
0
6493d130f018 Uploaded
bgruening
parents:
diff changeset
57 <option value="can">Canonical SMILES format (can)</option>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
58 <option value="cdxml">ChemDraw CDXML format</option>
3
282503f242cf Uploaded
bgruening
parents: 0
diff changeset
59 <option value="cht">Chemtool format</option>
0
6493d130f018 Uploaded
bgruening
parents:
diff changeset
60 <option value="cif">Crystallographic Information File</option>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
61 <option value="cml">Chemical Markup Language</option>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
62 <option value="cmlr">CML Reaction format</option>
3
282503f242cf Uploaded
bgruening
parents: 0
diff changeset
63 <option value="com">Gaussian 98/03 Cartesian Input</option>
282503f242cf Uploaded
bgruening
parents: 0
diff changeset
64 <option value="copy">Copies raw text</option>
0
6493d130f018 Uploaded
bgruening
parents:
diff changeset
65 <option value="crk2d">Chemical Resource Kit 2D diagram format</option>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
66 <option value="crk3d">Chemical Resource Kit 3D format</option>
3
282503f242cf Uploaded
bgruening
parents: 0
diff changeset
67 <option value="csr">Accelrys/MSI Quanta CSR format</option>
282503f242cf Uploaded
bgruening
parents: 0
diff changeset
68 <option value="cssr">CSD CSSR format</option>
0
6493d130f018 Uploaded
bgruening
parents:
diff changeset
69 <option value="ct">ChemDraw Connection Table format</option>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
70 <option value="dmol">DMol3 coordinates format</option>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
71 <!--<option value="ent">Protein Data Bank format</option>
3
282503f242cf Uploaded
bgruening
parents: 0
diff changeset
72 <option value="fa">FASTA format</option>-->
282503f242cf Uploaded
bgruening
parents: 0
diff changeset
73 <option value="fasta">FASTA format</option>
0
6493d130f018 Uploaded
bgruening
parents:
diff changeset
74 <option value="feat">Feature format</option>
3
282503f242cf Uploaded
bgruening
parents: 0
diff changeset
75 <option value="fh">Fenske-Hall Z-Matrix format</option>
282503f242cf Uploaded
bgruening
parents: 0
diff changeset
76 <option value="fix">SMILES FIX format</option>
282503f242cf Uploaded
bgruening
parents: 0
diff changeset
77 <option value="fpt">Fingerprint format</option>
0
6493d130f018 Uploaded
bgruening
parents:
diff changeset
78 <option value="fract">Free Form Fractional format</option>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
79 <option value="fs">Open Babel FastSearching database (fs)</option>
3
282503f242cf Uploaded
bgruening
parents: 0
diff changeset
80 <!--<option value="fsa">FASTA format</option>-->
282503f242cf Uploaded
bgruening
parents: 0
diff changeset
81 <option value="gamin">GAMESS Input</option>
282503f242cf Uploaded
bgruening
parents: 0
diff changeset
82 <option value="gau">Gaussian 98/03 Cartesian Input</option>
282503f242cf Uploaded
bgruening
parents: 0
diff changeset
83 <!--<option value="gjc">Gaussian 98/03 Cartesian Input</option>
282503f242cf Uploaded
bgruening
parents: 0
diff changeset
84 <option value="gjf">Gaussian 98/03 Cartesian Input</option>-->
0
6493d130f018 Uploaded
bgruening
parents:
diff changeset
85 <option value="gpr">Ghemical format</option>
3
282503f242cf Uploaded
bgruening
parents: 0
diff changeset
86 <option value="gr96">GROMOS96 format</option>
0
6493d130f018 Uploaded
bgruening
parents:
diff changeset
87 <option value="hin">HyperChem HIN format</option>
3
282503f242cf Uploaded
bgruening
parents: 0
diff changeset
88 <option value="inchi">IUPAC InChI</option>
282503f242cf Uploaded
bgruening
parents: 0
diff changeset
89 <option value="inp">GAMESS Input</option>
282503f242cf Uploaded
bgruening
parents: 0
diff changeset
90 <option value="jin">Jaguar input format</option>
0
6493d130f018 Uploaded
bgruening
parents:
diff changeset
91 <!--<option value="mdl">MDL MOL format (mol)</option>-->
6493d130f018 Uploaded
bgruening
parents:
diff changeset
92 <option value="mmd">MacroModel format</option>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
93 <option value="mmod">MacroModel format</option>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
94 <option value="mol">MDL MOL format (mol)</option>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
95 <option value="mol2">Sybyl Mol2 format (mol2)</option>
3
282503f242cf Uploaded
bgruening
parents: 0
diff changeset
96 <option value="molreport">Open Babel molecule report</option>
0
6493d130f018 Uploaded
bgruening
parents:
diff changeset
97 <option value="mop">MOPAC Cartesian format</option>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
98 <option value="mopcrt">MOPAC Cartesian format</option>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
99 <option value="mopin">MOPAC Internal</option>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
100 <option value="mpc">MOPAC Cartesian format</option>
3
282503f242cf Uploaded
bgruening
parents: 0
diff changeset
101 <option value="mpd">Sybyl descriptor format</option>
282503f242cf Uploaded
bgruening
parents: 0
diff changeset
102 <option value="mpqcin">MPQC simplified input format</option>
282503f242cf Uploaded
bgruening
parents: 0
diff changeset
103 <option value="nw">NWChem input format</option>
0
6493d130f018 Uploaded
bgruening
parents:
diff changeset
104 <option value="pcm">PCModel format</option>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
105 <option value="pdb">Protein Data Bank format (pdb)</option>
3
282503f242cf Uploaded
bgruening
parents: 0
diff changeset
106 <option value="pov">POV-Ray input format</option>
0
6493d130f018 Uploaded
bgruening
parents:
diff changeset
107 <option value="pqs">Parallel Quantum Solutions format</option>
3
282503f242cf Uploaded
bgruening
parents: 0
diff changeset
108 <option value="qcin">Q-Chem input format</option>
282503f242cf Uploaded
bgruening
parents: 0
diff changeset
109 <option value="report">Open Babel report format</option>
0
6493d130f018 Uploaded
bgruening
parents:
diff changeset
110 <option value="rxn">MDL RXN format</option>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
111 <!--<option value="sd">MDL MOL format</option>-->
6493d130f018 Uploaded
bgruening
parents:
diff changeset
112 <option value="sdf">MDL MOL format (sdf)</option>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
113 <option value="smi">SMILES format (smi)</option>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
114 <!--<option value="sy2">Sybyl Mol2 format</option>-->
6493d130f018 Uploaded
bgruening
parents:
diff changeset
115 <option value="tdd">Thermo format</option>
3
282503f242cf Uploaded
bgruening
parents: 0
diff changeset
116 <option value="test">Test format</option>
0
6493d130f018 Uploaded
bgruening
parents:
diff changeset
117 <option value="therm">Thermo format</option>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
118 <option value="tmol">TurboMole Coordinate format</option>
3
282503f242cf Uploaded
bgruening
parents: 0
diff changeset
119 <option value="txyz">Tinker MM2 format</option>
0
6493d130f018 Uploaded
bgruening
parents:
diff changeset
120 <option value="unixyz">UniChem XYZ format</option>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
121 <option value="vmol">ViewMol format</option>
3
282503f242cf Uploaded
bgruening
parents: 0
diff changeset
122 <option value="xed">XED format</option>
0
6493d130f018 Uploaded
bgruening
parents:
diff changeset
123 <option value="xyz">XYZ cartesian coordinates format</option>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
124 <option value="yob">YASARA.org YOB format</option>
3
282503f242cf Uploaded
bgruening
parents: 0
diff changeset
125 <option value="zin">ZINDO input format</option>
0
6493d130f018 Uploaded
bgruening
parents:
diff changeset
126 </param>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
127 <param name="iso_chi" type="boolean" label="Do not include isotopic or chiral markings (-xi)" truevalue="i" falsevalue="" checked="false" />
6493d130f018 Uploaded
bgruening
parents:
diff changeset
128 <param name="can" type="boolean" label="Output in canonical form (-xc)" truevalue="c" falsevalue="" checked="false" />
6493d130f018 Uploaded
bgruening
parents:
diff changeset
129 <param name="exp_h" type="boolean" label="Output explicit hydrogens as such (-xh)" truevalue="h" falsevalue="" checked="false" />
6493d130f018 Uploaded
bgruening
parents:
diff changeset
130 <param name="remove_h" type="boolean" label="Delete hydrogen atoms (-d)" truevalue="-d" falsevalue="" />
6493d130f018 Uploaded
bgruening
parents:
diff changeset
131 <param name="ph" size="3" type="float" value="-1" label="Add hydrogens appropriate for pH (-p)" help="-1 means deactivated"/>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
132 <param name="dative_bonds" type="boolean" label="Convert dative bonds (e.g. [N+]([O-])=O to N(=O)=O) (-b)" truevalue="-b" falsevalue="" />
6493d130f018 Uploaded
bgruening
parents:
diff changeset
133 </inputs>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
134 <outputs>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
135 <data name="outfile" type="data" format="text" label="Convert to ${out_format.input.value_label} from ${on_string}">
6493d130f018 Uploaded
bgruening
parents:
diff changeset
136 <change_format>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
137 <when input="out_format" value="sdf" format="sdf"/>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
138 <when input="out_format" value="smi" format="smi"/>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
139 <when input="out_format" value="mol2" format="mol2"/>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
140 <when input="out_format" value="inchi" format="inchi"/>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
141 <when input="out_format" value="cml" format="cml"/>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
142 <when input="out_format" value="mol" format="mol"/>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
143 <when input="out_format" value="pdb" format="pdb"/>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
144 <when input="out_format" value="fs" format="obfs"/>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
145 </change_format>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
146 </data>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
147 </outputs>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
148 <help>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
149
6493d130f018 Uploaded
bgruening
parents:
diff changeset
150 **What it does**
6493d130f018 Uploaded
bgruening
parents:
diff changeset
151
6493d130f018 Uploaded
bgruening
parents:
diff changeset
152 OpenBabel is a cross-platform program designed to interconvert between many file formats used in molecular modeling and computational chemistry and related areas.
6493d130f018 Uploaded
bgruening
parents:
diff changeset
153
6493d130f018 Uploaded
bgruening
parents:
diff changeset
154 -----
6493d130f018 Uploaded
bgruening
parents:
diff changeset
155
6493d130f018 Uploaded
bgruening
parents:
diff changeset
156
6493d130f018 Uploaded
bgruening
parents:
diff changeset
157 </help>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
158 </tool>