comparison normalize_dataset.xml @ 0:72633301cc0d draft default tip

planemo upload for repository https://github.com/asaim/galaxytools/tree/master/tools/normalize_dataset commit 21b25425f77162c0edae4dd87b3a9e33608c5a95-dirty
author bebatut
date Fri, 15 Apr 2016 08:42:40 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:72633301cc0d
1 <tool id="normalize_dataset" name="Normalize a dataset by" version="0.1.0">
2 <description>row or column sum to obtain proportion or percentage</description>
3
4 <requirements>
5 </requirements>
6
7 <stdio>
8 <exit_code range="1:" />
9 <exit_code range=":-1" />
10 </stdio>
11
12 <version_command></version_command>
13
14 <command><![CDATA[
15 python $__tool_directory__/normalize_dataset.py
16 --input_file $input_file
17 --output_file $output_file
18 --normalization $normalization
19 --format $format
20 ]]></command>
21
22 <inputs>
23 <param name="input_file" type="data" format="tabular,tsv,csv" label="Input file" help="File in tabular format with tab-separated columns and header in first line (--input_file)"/>
24
25 <param name="normalization" label="Normalization on" type="select" help="(--normalization)">
26 <option value="column" selected="True">Column</option>
27 <option value="row">Row</option>
28 </param>
29
30 <param name="format" label="Output format" type="select" help="(--format)">
31 <option value="proportion" selected="True">Proportion</option>
32 <option value="percentage">Percentage</option>
33 </param>
34 </inputs>
35
36 <outputs>
37 <data name="output_file" format="tabular"
38 label="${tool.name} on ${on_string}: Normalized dataset" />
39 </outputs>
40
41 <tests>
42 <test>
43 <param name="input_file" value="input_file.tabular"/>
44 <param name="normalization" value="column"/>
45 <param name="format" value="proportion"/>
46 <output name="output_file" file="output_column_proportion.tabular"/>
47 </test>
48 <test>
49 <param name="input_file" value="input_file.tabular"/>
50 <param name="normalization" value="row"/>
51 <param name="format" value="proportion"/>
52 <output name="output_file" file="output_row_proportion.tabular"/>
53 </test>
54 <test>
55 <param name="input_file" value="input_file.tabular"/>
56 <param name="normalization" value="column"/>
57 <param name="format" value="percentage"/>
58 <output name="output_file" file="output_column_percentage.tabular"/>
59 </test>
60 </tests>
61
62 <help><![CDATA[
63 **What it does**
64
65 This tool normalizes each row or column of a dataset by the row or column sum.
66 The results can be in proportion or percentage.
67
68 The input file must be in tabular format with tab-separated columns. Only data will be used for normalization.
69 ]]></help>
70
71 <citations>
72 </citations>
73 </tool>