Mercurial > repos > bgruening > openbabel_change_title
comparison change_title_to_metadata_value.xml @ 0:fd7097abe45a draft
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/openbabel commit 01da22e4184a5a6f6a3dd4631a7b9c31d1b6d502
author | bgruening |
---|---|
date | Sat, 20 May 2017 08:36:52 -0400 |
parents | |
children | 9c15e92bed39 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:fd7097abe45a |
---|---|
1 <tool id="openbabel_change_title" name="Change Title" version="@VERSION@.0"> | |
2 <description>to meta-data value.</description> | |
3 <!--parallelism method="multi" split_inputs="infile" split_mode="to_size" split_size="10000" shared_inputs="" merge_outputs="outfile"></parallelism--> | |
4 <macros> | |
5 <import>macros.xml</import> | |
6 </macros> | |
7 <expand macro="requirements"/> | |
8 <command detect_errors="aggressive"> | |
9 <![CDATA[ | |
10 python '$__tool_directory__/change_title_to_metadata_value.py' | |
11 --infile '${infile}' | |
12 --key '${key}' | |
13 --outfile '${outfile}' | |
14 ]]> | |
15 </command> | |
16 <inputs> | |
17 <param name="infile" type="data" format="sdf,mol2" label="Compound File" help="Specify a compound file in SD- or MOL2-format."/> | |
18 <param name="key" type="text" format="text" label="Compound Identifier encoded in the SDF file." help="Specify the key name of the SDF metadata, that contains the molecule identifier."/> | |
19 </inputs> | |
20 <outputs> | |
21 <expand macro="output_like_input"/> | |
22 </outputs> | |
23 <tests> | |
24 <test> | |
25 <param name="infile" ftype="sdf" value="CID_3033.sdf"/> | |
26 <param name="key" value="PUBCHEM_SHAPE_VOLUME"/> | |
27 <output name="outfile" ftype="sdf" file="change_title_on_CID_3033.sdf" lines_diff="2"/> | |
28 </test> | |
29 </tests> | |
30 <help> | |
31 <![CDATA[ | |
32 | |
33 .. class:: infomark | |
34 | |
35 **What this tool does** | |
36 | |
37 Changes the title of a molecule file to a metadata value of a given ID in the same molecule file. | |
38 | |
39 ----- | |
40 | |
41 .. class:: infomark | |
42 | |
43 **Input** | |
44 | |
45 `SD-file`_ with metadata including the given ID. | |
46 | |
47 .. _SD-file: http://en.wikipedia.org/wiki/Chemical_table_file | |
48 | |
49 ----- | |
50 | |
51 .. class:: infomark | |
52 | |
53 **Output** | |
54 | |
55 Same as input with changed title tag. | |
56 | |
57 | |
58 ]]> | |
59 </help> | |
60 <expand macro="citations"/> | |
61 </tool> |