Mercurial > repos > marie-tremblay-metatoul > normalization
comparison NmrNormalization_xml.xml @ 3:966fcf7ae66e draft
planemo upload for repository https://github.com/workflow4metabolomics/normalization commit 9ca88a22e9b9394bfa00ea383fbb2b78ef05f990
author | lecorguille |
---|---|
date | Thu, 26 Oct 2017 06:01:14 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
2:3cd762aac7a4 | 3:966fcf7ae66e |
---|---|
1 <tool id="normalization" name="Normalization" version="1.0.2"> | |
2 | |
3 <description> Normalization of (preprocessed) spectra </description> | |
4 | |
5 <requirements> | |
6 <requirement type="package" version="1.1_4">r-batch</requirement> | |
7 </requirements> | |
8 | |
9 <stdio> | |
10 <exit_code range="1:" level="fatal" /> | |
11 </stdio> | |
12 | |
13 <command> | |
14 Rscript $__tool_directory__/NmrNormalization_wrapper.R | |
15 | |
16 ## Data matrix of bucketed and integrated spectra | |
17 dataMatrix $dataMatrix | |
18 | |
19 ## Normalization method | |
20 scalingMethod $scalingMethod.method | |
21 #if $scalingMethod.method == "PQN": | |
22 ## Sample metadata matrix | |
23 sampleMetadata $scalingMethod.sampleMetadata | |
24 | |
25 ## Biological factor of interest (column number in samplemetadata) | |
26 factor $scalingMethod.factor | |
27 | |
28 ## Reference class | |
29 controlGroup $scalingMethod.controlGroup | |
30 #end if | |
31 #if $scalingMethod.method == "QuantitativeVariable": | |
32 ## Sample metadata matrix | |
33 sampleMetadata $scalingMethod.sampleMetadata | |
34 | |
35 ## Biological factor of interest (column number in samplemetadata) | |
36 factor $scalingMethod.factor | |
37 #end if | |
38 | |
39 ## Spectra representation | |
40 graphType $graphType | |
41 | |
42 ## Outputs | |
43 logOut $logOut | |
44 dataMatrixOut $dataMatrixOut | |
45 graphOut $graphOut | |
46 | |
47 | |
48 </command> | |
49 | |
50 <inputs> | |
51 <param name="dataMatrix" type="data" label="Data matrix of preprocessed data" help="" format="tabular" /> | |
52 | |
53 <conditional name="scalingMethod" > | |
54 <param name="method" label="Normalization method" type="select" help="Default method is total intensity" > | |
55 <option value="None">None normalization</option> | |
56 <option value="Total">Total intensity</option> | |
57 <option value="PQN">Probabilistic Quotient Normalization</option> | |
58 <option value="QuantitativeVariable">Quantitative variable</option> | |
59 </param> | |
60 <when value="None" /> | |
61 <when value="Total" /> | |
62 <when value="PQN"> | |
63 <param name="sampleMetadata" type="data" label="Sample metadata matrix" help="" format="tabular" /> | |
64 <param name="factor" label="Name of the column of the biological factor of interest (for PQN method)" type="text" /> | |
65 <param name="controlGroup" label="Name of reference level for PQN normalization" type="text" help=""/> | |
66 </when> | |
67 <when value="QuantitativeVariable"> | |
68 <param name="sampleMetadata" type="data" label="Sample metadata matrix" help="" format="tabular" /> | |
69 <param name="factor" label="Name of the column of the numerical variable for normalization (weight, osmolality, ...)" type="text" /> | |
70 </when> | |
71 </conditional> | |
72 | |
73 <param name="graphType" label="Spectra representation" type="select" help="Select 'None' for no representation,'Overlay' to overlay all spectra on a unique chart and 'One per individual' to generate an individual chart for each observation"> | |
74 <option value="None"> none </option> | |
75 <option value="Overlay"> Overlay </option> | |
76 <option value="One_per_individual"> One_per_individual </option> | |
77 </param> | |
78 </inputs> | |
79 | |
80 | |
81 <outputs> | |
82 <data format="txt" name="logOut" label="${tool.name}_log" /> | |
83 <data format="tabular" name="dataMatrixOut" label="${tool.name}_dataMatrix" /> | |
84 <data format="pdf" name="graphOut" label="${tool.name}_spectra" > | |
85 <filter> graphType != "None" </filter> | |
86 </data> | |
87 </outputs> | |
88 | |
89 <tests> | |
90 <test> | |
91 <param name="dataMatrix" value="MTBLS1_bucketedData.tabular" ftype="tabular" /> | |
92 <conditional name="scalingMethod" > | |
93 <param name="method" value="Total" /> | |
94 </conditional> | |
95 <param name="graphType" value="Overlay" /> | |
96 <output name="dataMatrixOut" file="MTBLS1_bucketedData_normalized.tabular" /> | |
97 </test> | |
98 </tests> | |
99 | |
100 <help> | |
101 | |
102 .. class:: infomark | |
103 | |
104 **Authors** Marie Tremblay-Franco (marie.tremblay-franco@toulouse.inra.fr) and Marion Landi (marion.landi@clermont.inra.fr) | |
105 MetaboHUB: The French National Infrastructure for Metabolomics and Fluxomics (http://www.metabohub.fr/en) | |
106 | |
107 --------------------------------------------------- | |
108 | |
109 .. class:: infomark | |
110 | |
111 **Please cite** | |
112 | |
113 F. Dieterle, A. Ross, G. Schlotterbeck, and H. Senn (2006). Probabilistic Quotient Normalization as Robust Method to Account for Dilution of Complex Biological Mixtures. Application in 1H NMR Metabonomics. | |
114 Analytical Chemistry 78(13): 4281-4290. | |
115 | |
116 --------------------------------------------------- | |
117 | |
118 =============== | |
119 Normalization | |
120 =============== | |
121 | |
122 ----------- | |
123 Description | |
124 ----------- | |
125 | |
126 Normalization (operation applied on each (preprocessed) individual spectrum) of preprocessed data | |
127 | |
128 ----------------- | |
129 Workflow position | |
130 ----------------- | |
131 | |
132 **Upstream tools** | |
133 | |
134 +----------------------+------------------------------------+---------+-------------+ | |
135 | Name | output file | format | parameter | | |
136 +======================+====================================+=========+=============+ | |
137 | NMR_Bucketing | Normalization_bucketedData.tsv | tabular | Ions Matrix | | |
138 +----------------------+------------------------------------+---------+-------------+ | |
139 | |
140 | |
141 | |
142 | |
143 **Downstream tools** | |
144 | |
145 +---------------------------+----------------------+--------+ | |
146 | Name | Output file | Format | | |
147 +===========================+======================+========+ | |
148 |Univariate | variableMetadata.tsv | Tabular| | |
149 +---------------------------+----------------------+--------+ | |
150 |Multivariate | sampleMetadata.tsv | Tabular| | |
151 +---------------------------+----------------------+--------+ | |
152 | | variableMetadata.tsv | Tabular| | |
153 +---------------------------+----------------------+--------+ | |
154 | |
155 | |
156 ----------- | |
157 Input files | |
158 ----------- | |
159 | |
160 +---------------------------+------------+ | |
161 | Parameter : num + label | Format | | |
162 +===========================+============+ | |
163 | DataMatrix | Tabular | | |
164 +---------------------------+------------+ | |
165 | |
166 **DataMAtrix** | |
167 | |
168 | variable x sample dataMatrix tabular separated file containing (preprocessed) spectra, with . as decimal, and NA for missing values | |
169 | |
170 | |
171 ---------- | |
172 Parameters | |
173 ---------- | |
174 | |
175 DataMatrix | |
176 | see "Input files" section above | |
177 | | |
178 | |
179 Normalization method | |
180 | normalization to apply on each spectrum: | |
181 | |
182 +---------------------------+--------------------------------------+ | |
183 | Name | Normalization | | |
184 +===========================+======================================+ | |
185 |None | No | | |
186 +---------------------------+--------------------------------------+ | |
187 |Total | Total intensity | | |
188 +---------------------------+--------------------------------------+ | |
189 |PQN | Probabilistic Quotient Normalization | | |
190 +---------------------------+--------------------------------------+ | |
191 |QuantitativeVariable | Weight, osmolality, ... | | |
192 +---------------------------+--------------------------------------+ | |
193 | |
194 | |
195 sampleMetadata | |
196 | sample x metadata **sample** tabular separated file of the numeric and/or character sample metadata, with . as decimal and NA for missing values | |
197 | Mandatory for "PQN" or "Quantitative" normalization method | |
198 | The row names must be identical to the column names of the dataMatrix file | |
199 | | |
200 | |
201 | |
202 Spectra representation: | |
203 | Graphical chart of bucketed and integrated raw files | |
204 | If "Overlay": the n (sample number) spectra are overlaid on the same figure | |
205 | If "One_per_individual": pdf file includes n pages (1 per sample) | |
206 | | |
207 | |
208 | |
209 ------------ | |
210 Output files | |
211 ------------ | |
212 | |
213 | |
214 dataMatrix.tsv | |
215 | tabular output | |
216 | Data matrix with p rows (variable) and n columns (samples) containing the intensities | |
217 | | |
218 | |
219 spectra.pdf | |
220 | pdf output | |
221 | Graphical chart of bucketed and integrated data | |
222 | | |
223 | |
224 | |
225 --------------------------------------------------- | |
226 | |
227 --------------- | |
228 Working example | |
229 --------------- | |
230 | |
231 | |
232 .. class:: warningmark | |
233 | |
234 Under construction | |
235 | |
236 .. image:: ./static/images/Mth_Travaux.png | |
237 :width: 100 | |
238 | |
239 | |
240 --------------------------------------------------- | |
241 | |
242 -------------- | |
243 Changelog/News | |
244 -------------- | |
245 | |
246 **Version 1.0.2 - 22/10/2016** | |
247 | |
248 - NEW: this tool was previously named NMR Normalization. It had been generalize to deal with all kind of preprocessed data | |
249 | |
250 **Version 1.0.1 - 14/04/2016** | |
251 | |
252 - TEST: refactoring to pass planemo test using conda dependencies | |
253 | |
254 **Version 2015-01-28 - 28/01/2015** | |
255 | |
256 </help> | |
257 <citations> | |
258 <citation type="doi">10.1093/bioinformatics/btu813</citation> | |
259 </citations> | |
260 </tool> |