comparison data_normalization_and_rescaling.xml @ 1:2e7d47c0b027 draft

"planemo upload for repository https://malex@toolshed.g2.bx.psu.edu/repos/malex/secimtools"
author malex
date Mon, 08 Mar 2021 22:04:06 +0000
parents
children
comparison
equal deleted inserted replaced
0:b54326490b4d 1:2e7d47c0b027
1 <tool id="secimtools_data_normalization_and_rescaling" name="Normalization and Re-Scaling" version="@WRAPPER_VERSION@">
2 <description>of data.</description>
3 <macros>
4 <import>macros.xml</import>
5 </macros>
6 <expand macro="requirements" />
7 <command><![CDATA[
8 data_normalization_and_rescaling.py
9 --input $input
10 --design $design
11 --uniqID $uniqID
12 --method $method
13 --out $out
14 ]]></command>
15 <inputs>
16 <param name="input" type="data" format="tabular" label="Wide Dataset" help="Input tab-separated wide format dataset. If not tab separated see TIP below."/>
17 <param name="design" type="data" format="tabular" label="Design File" help="Input your design file (tab-separated). Note you need a 'sampleID' column. If not tab separated see TIP below."/>
18 <param name="uniqID" type="text" size="30" value="" label="Unique Feature ID" help="Name of the column in your Wide Dataset that has unique identifiers."/>
19 <param name="method" size="30" type="select" value="" display="radio" label="Normalization Method" help="Method to be used for normalization and re-scaling of the data.">
20 <option value="mean" selected="true">Mean (samples)</option>
21 <option value="sum" selected="true">Sum (samples)</option>
22 <option value="median" selected="true">Median (samples)</option>
23 <option value="centering" selected="true">Centering (features)</option>
24 <option value="auto" selected="true">Autoscaling (features)</option>
25 <option value="pareto" selected="true">Pareto (features)</option>
26 <option value="range" selected="true">Range (features)</option>
27 <option value="level" selected="true">Level (features)</option>
28 <option value="vast" selected="true">VAST (features)</option>
29 </param>
30 </inputs>
31 <outputs>
32 <data format="tabular" name="out" label="${tool.name} on ${on_string}: Normalized data"/>
33 </outputs>
34 <tests>
35 <test>
36 <param name="input" value="ST000006_data.tsv"/>
37 <param name="design" value="ST000006_design.tsv"/>
38 <param name="uniqID" value="Retention_Index" />
39 <param name="method" value="mean" />
40 <output name="out" file="ST000006_data_normalization_and_rescaling_mean_output.tsv" />
41 </test>
42 <test>
43 <param name="input" value="ST000006_data.tsv"/>
44 <param name="design" value="ST000006_design.tsv"/>
45 <param name="uniqID" value="Retention_Index" />
46 <param name="method" value="vast" />
47 <output name="out" file="ST000006_data_normalization_and_rescaling_vast_output.tsv" />
48 </test>
49 </tests>
50 <help><![CDATA[
51
52 @TIP_AND_WARNING@
53
54 **Tool Description**
55
56 The first three normalization methods (Mean, Sum and Median) perform re-scaling of the data by sample.
57 Each individual sample (column) in the wide dataset is re-scaled by dividing all feature values within that column by the mean, median or sum of those feature values.
58 Each sample (column) is re-scaled independently from other samples (columns).
59
60 The last six normalization methods (Centering, Pareto, Autoscaling, Range, Level, and Variable Stability (VAST)) perform scaling of the data by features.
61 Each feature (row) is re-scaled independently from other features.
62 Each individual feature (row) in the wide dataset is centered by subtraction of the mean of that feature and is re-scaled by dividing all the feature values within that row by the scaling factor.
63 The scaling factor is computed from the feature values in the current row and depends on the selected method.
64 Centering does not have a scaling factor and does not perform division, Autoscaling uses standard deviation, Pareto scaling uses the square root of the standard deviation, Range uses the difference between the max and min values, and Level uses the mean.
65 VAST scaling is performed in two steps. The first step is Autoscaling, followed by division of the resulting feature values in each row by the coefficient of variation for that feature.
66
67 More information on the scaling methods are available from the literature:
68
69 Keun, Hector C., Timothy MD Ebbels, Henrik Antti, Mary E. Bollard, Olaf Beckonert, Elaine Holmes, John C. Lindon, and Jeremy K. Nicholson. "Improved analysis of multivariate data by variable stability scaling: application to NMR-based metabolic profiling." Analytica chimica acta 490, no. 1 (2003): 265-276.
70 van den Berg, Robert A., Huub CJ Hoefsloot, Johan A. Westerhuis, Age K. Smilde, and Mariƫt J. van der Werf. "Centering, scaling, and transformations: improving the biological information content of metabolomics data." BMC genomics 7, no. 1 (2006): 142
71
72
73 ------------------------------------------------------------------------------------------
74
75 **Input Files**
76
77 - Two input datasets are required.
78
79 @WIDE@
80
81 **NOTE:** The sample IDs must match the sample IDs in the Design File
82 (below). Extra columns will automatically be ignored.
83
84 @METADATA@
85
86 @UNIQID@
87
88 **Normalization Method**
89
90 - Method to be used for normalization and re-scaling of the data. The parenthesis indicates whether the method will be applied to samples or features.
91
92 --------------------------------------------------------------------------------
93
94 **Output**
95
96 TSV file containing the same column names as in the original Wide Dataset where the values in each cell correspond to the values after normalization/re-scaling.
97
98 ]]></help>
99 <expand macro="citations"/>
100 </tool>