Mercurial > repos > bgruening > openbabel
diff modify/change_title_to_metadata_value.xml @ 0:6493d130f018
Uploaded
| author | bgruening |
|---|---|
| date | Tue, 26 Mar 2013 14:49:44 -0400 |
| parents | |
| children | ec87a42dccec |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/modify/change_title_to_metadata_value.xml Tue Mar 26 14:49:44 2013 -0400 @@ -0,0 +1,55 @@ +<tool id="ctb_change_title" name="Change Title" version="0.0.1"> + <description>to meta-data value.</description> + <parallelism method="multi" split_inputs="infile" split_mode="to_size" split_size="10000" shared_inputs="" merge_outputs="outfile"></parallelism> + <requirements> + <requirement type="python-module">pybel</requirement> + </requirements> + <command interpreter="python"> + ## The command is a Cheetah template which allows some Python based syntax. + ## Lines starting hash hash are comments. Galaxy will turn newlines into spaces + change_title_to_metadata_value.py + --infile "${infile}" + --key "${key}" + --outfile "${outfile}" + </command> + <inputs> + <param name="infile" type="data" format="sdf,mol2" label="Compound File" help="Specify a compound file in SD- or MOL2-format."/> + <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."/> + </inputs> + <outputs> + <data name="outfile" format_source="infile"/> + </outputs> + <tests> + <param name="infile" type="sdf" value="CID_3033.sdf"/> + <param name="key" value="PUBCHEM_SHAPE_VOLUME"/> + <data name="output" type="sdf" file="change_title_on_CID_3033.sdf"/> + </tests> + <help> + +.. class:: infomark + +**Hint** + + To convert the output, use the pencil icon next to the history entry. + +------ + +**What it does** + +Change the title from a molecule file to metadata value of a given-id of the same molecule file. + +----- + +**Input format** + +SDF with metadata including the given key. + +**Output format** + +Same as input with changed title tag. + +**References** + + + </help> +</tool>
