annotate modify/change_title_to_metadata_value.xml @ 1:b52872a1755a draft

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