Mercurial > repos > bgruening > openbabel
comparison convert/ob_convert.xml @ 2:125da3a296ca draft default tip
Uploaded
author | bgruening |
---|---|
date | Wed, 15 Jul 2015 12:13:08 -0400 |
parents | 527ecd2fc500 |
children |
comparison
equal
deleted
inserted
replaced
1:b52872a1755a | 2:125da3a296ca |
---|---|
6 --> | 6 --> |
7 <requirements> | 7 <requirements> |
8 <requirement type="package" version="2.3.2">openbabel</requirement> | 8 <requirement type="package" version="2.3.2">openbabel</requirement> |
9 </requirements> | 9 </requirements> |
10 <command> | 10 <command> |
11 <![CDATA[ | |
11 ## The command is a Cheetah template which allows some Python based syntax. | 12 ## The command is a Cheetah template which allows some Python based syntax. |
12 ## Lines starting hash hash are comments. Galaxy will turn newlines into spaces | 13 ## Lines starting hash hash are comments. Galaxy will turn newlines into spaces |
13 | 14 |
14 #set $format = $oformat.oformat_opts_selector | 15 #set $format = $oformat.oformat_opts_selector |
15 | 16 |
16 #if $format == "fs": | 17 #if $format == "fs": |
17 ## For the fastsearch index we need to copy the original molecule files to the composite datatype of obfs. | 18 ## For the fastsearch index we need to copy the original molecule files to the composite datatype of obfs. |
18 ## Because openbabel likes file extensions, we give the molecule file a proper file extension. | 19 ## Because openbabel likes file extensions, we give the molecule file a proper file extension. |
19 mkdir $outfile.extra_files_path; | 20 mkdir $outfile.files_path; |
20 cp "${infile}" ${os.path.join($outfile.extra_files_path, 'molecule.%s' % $infile.ext )}; | 21 cp "${infile}" ${os.path.join($outfile.files_path, 'molecule.%s' % $infile.ext )}; |
21 #end if | 22 #end if |
22 | 23 |
23 obabel -i "${infile.ext}" | 24 obabel -i "${infile.ext}" |
24 | 25 |
25 #if $format == "fs": | 26 #if $format == "fs": |
26 ## the fs filetype need his own symlink path, all others can take the original ones | 27 ## the fs filetype need his own symlink path, all others can take the original ones |
27 ${os.path.join($outfile.extra_files_path, 'molecule.%s' % $infile.ext )} | 28 ${os.path.join($outfile.files_path, 'molecule.%s' % $infile.ext )} |
28 -o "$format" -e | 29 -o "$format" -e |
29 -O ${os.path.join($outfile.extra_files_path,'molecule.fs')} | 30 -O ${os.path.join($outfile.files_path,'molecule.fs')} |
30 #if int($oformat.fs_fold) > 0: | 31 #if int($oformat.fs_fold) > 0: |
31 -xN$oformat.fs_fold | 32 -xN$oformat.fs_fold |
32 #end if | 33 #end if |
33 ${oformat.fs_fptype} | 34 ${oformat.fs_fptype} |
34 #else: | 35 #else: |
123 | 124 |
124 #if int($ph) >= 0: | 125 #if int($ph) >= 0: |
125 -p $ph | 126 -p $ph |
126 #end if | 127 #end if |
127 | 128 |
128 2>&1 | 129 2>&1 |
130 ]]> | |
129 </command> | 131 </command> |
130 <inputs> | 132 <inputs> |
131 <param name="infile" type="data" format="sdf,mol2,cml,inchi,smi" label="Select input file with molecules"/> | 133 <param name="infile" type="data" format="sdf,mol2,cml,inchi,smi" label="Select input file with molecules"/> |
132 <conditional name="oformat"> | 134 <conditional name="oformat"> |
133 <param name="oformat_opts_selector" type="select" label="Output format"> | 135 <param name="oformat_opts_selector" type="select" label="Output format"> |
143 <option value="cacint">Cacao Internal format</option> | 145 <option value="cacint">Cacao Internal format</option> |
144 <option value="can" selected="True">Canonical SMILES format (can)</option> | 146 <option value="can" selected="True">Canonical SMILES format (can)</option> |
145 <option value="cdxml">ChemDraw CDXML format</option> | 147 <option value="cdxml">ChemDraw CDXML format</option> |
146 <option value="cht">Chemtool format</option> | 148 <option value="cht">Chemtool format</option> |
147 <option value="cif">Crystallographic Information File</option> | 149 <option value="cif">Crystallographic Information File</option> |
148 <option value="cml">Chemical Markup Language</option> | 150 <option value="cml">Chemical Markup Language (CML)</option> |
149 <option value="cmlr">CML Reaction format</option> | 151 <option value="cmlr">CML Reaction format</option> |
150 <option value="com">Gaussian 98/03 Cartesian Input</option> | 152 <option value="com">Gaussian 98/03 Cartesian Input</option> |
151 <option value="copy">Copies raw text</option> | 153 <option value="copy">Copies raw text</option> |
152 <option value="crk2d">Chemical Resource Kit 2D diagram format</option> | 154 <option value="crk2d">Chemical Resource Kit 2D diagram format</option> |
153 <option value="crk3d">Chemical Resource Kit 3D format</option> | 155 <option value="crk3d">Chemical Resource Kit 3D format</option> |
422 <when input="oformat.oformat_opts_selector" value="fs" format="obfs"/> | 424 <when input="oformat.oformat_opts_selector" value="fs" format="obfs"/> |
423 </change_format> | 425 </change_format> |
424 </data> | 426 </data> |
425 </outputs> | 427 </outputs> |
426 <help> | 428 <help> |
429 <![CDATA[ | |
427 | 430 |
428 .. class:: infomark | 431 .. class:: infomark |
429 | 432 |
430 **What this tool does** | 433 **What this tool does** |
431 | 434 |
432 The compound converter joins several `Open Babel`_ command prompt converters in an easy to use tool. It converts various chemistry and moleculare modeling data files. | 435 The compound converter joins several `Open Babel`_ command prompt converters in an easy to use tool. It converts various chemistry and moleculare modeling data files. |
433 The output format can be specified as well as several parameters. Some parameters are available for all tools (e.g. protonation state and pH) | 436 The output format can be specified as well as several parameters. Some parameters are available for all tools (e.g. protonation state and pH) |
434 others are specific for a given output format (e.g. exclude isotopes for conversion to canSMI). | 437 others are specific for a given output format (e.g. exclude isotopes for conversion to canSMI). |
435 | 438 |
436 ----- | 439 ----- |
437 | 440 |
438 .. class:: infomark | 441 .. class:: infomark |
454 `Open Babel`_ | 457 `Open Babel`_ |
455 | 458 |
456 .. _`Open Babel`: http://openbabel.org/wiki/Main_Page | 459 .. _`Open Babel`: http://openbabel.org/wiki/Main_Page |
457 | 460 |
458 | 461 |
462 ]]> | |
459 </help> | 463 </help> |
460 </tool> | 464 </tool> |