0
|
1 <tool id="ctb_change_title" name="Change Title" version="0.0.1">
|
|
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 <requirements>
|
|
5 <requirement type="package" version="2.3.2">openbabel</requirement>
|
|
6 </requirements>
|
|
7 <command interpreter="python">
|
2
|
8 <![CDATA[
|
0
|
9 ## The command is a Cheetah template which allows some Python based syntax.
|
|
10 ## Lines starting hash hash are comments. Galaxy will turn newlines into spaces
|
|
11 change_title_to_metadata_value.py
|
|
12 --infile "${infile}"
|
|
13 --key "${key}"
|
|
14 --outfile "${outfile}"
|
2
|
15 ]]>
|
0
|
16 </command>
|
|
17 <inputs>
|
|
18 <param name="infile" type="data" format="sdf,mol2" label="Compound File" help="Specify a compound file in SD- or MOL2-format."/>
|
|
19 <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."/>
|
|
20 </inputs>
|
|
21 <outputs>
|
|
22 <data name="outfile" format_source="infile"/>
|
|
23 </outputs>
|
|
24 <tests>
|
|
25 <param name="infile" type="sdf" value="CID_3033.sdf"/>
|
|
26 <param name="key" value="PUBCHEM_SHAPE_VOLUME"/>
|
|
27 <data name="output" type="sdf" file="change_title_on_CID_3033.sdf"/>
|
|
28 </tests>
|
|
29 <help>
|
2
|
30 <![CDATA[
|
0
|
31
|
|
32 .. class:: infomark
|
|
33
|
|
34 **What this tool does**
|
|
35
|
|
36 Changes the title of a molecule file to a metadata value of a given ID in the same molecule file.
|
|
37
|
|
38 -----
|
|
39
|
|
40 .. class:: infomark
|
|
41
|
|
42 **Input**
|
|
43
|
|
44 `SD-file`_ with metadata including the given ID.
|
|
45
|
|
46 .. _SD-file: http://en.wikipedia.org/wiki/Chemical_table_file
|
|
47
|
|
48 -----
|
|
49
|
|
50 .. class:: infomark
|
|
51
|
|
52 **Output**
|
|
53
|
|
54 Same as input with changed title tag.
|
|
55
|
|
56 -----
|
|
57
|
|
58 .. class:: infomark
|
|
59
|
|
60 **Cite**
|
|
61
|
|
62 `Open Babel`_
|
|
63
|
|
64 .. _Open Babel: http://openbabel.org/wiki/Main_Page
|
|
65
|
2
|
66 ]]>
|
0
|
67 </help>
|
|
68 </tool>
|