comparison NmrNormalization_xml.xml @ 0:e1b29d705286 draft

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