1
|
1 <tool id="Preprocess_DataSet" name="Preprocess MicroArrays DataSets" version="2">
|
|
2 <description> Preprocessing microarrays datasets.Contains Background Correction, Normalization within arrays, between arrays (depending on the number of channels) and summarization. </description>
|
0
|
3 <macros>
|
|
4 <import>citations.xml</import>
|
|
5 </macros>
|
|
6 <requirements>
|
|
7 <requirement type="package">r-base</requirement>
|
|
8 <requirement type="package">r-batch</requirement>
|
1
|
9 <requirement type="package">bioconductor-affyplm</requirement>
|
|
10 <requirement type="package">bioconductor-affy</requirement>
|
0
|
11 <requirement type="package">bioconductor-annotate</requirement>
|
|
12 <requirement type="package">r-knitr</requirement>
|
|
13 <requirement type="package">bioconductor-marray</requirement>
|
|
14 <requirement type="package">r-idpmisc</requirement>
|
|
15 <requirement type="package">r-kernsmooth</requirement>
|
1
|
16 <requirement type="package">r-rmarkdown</requirement>
|
|
17 <requirement type="package">r-markdown</requirement>
|
|
18 <requirement type="package">bioconductor-limma</requirement>
|
|
19 <requirement type="package">bioconductor-biocinstaller</requirement>
|
|
20 <requirement type="package">r-idpmisc</requirement>
|
|
21
|
0
|
22 </requirements>
|
|
23 <stdio>
|
|
24 <exit_code range="1:" level="fatal" />
|
|
25 </stdio>
|
|
26 <command>
|
|
27 <![CDATA[
|
|
28 Rscript
|
|
29 #if $technologies.technology == "Affymetrix":
|
|
30 '$__tool_directory__/Affymetrix_Preprocessing.R'
|
|
31 thefunctions "AffymetrixPreprocessingFunction"
|
|
32 path "pathtemp"
|
|
33 image $image
|
|
34 backgroundcorrection_method $technologies.BackgroundCorrectionA
|
|
35 normalization_method $technologies.NormalizationA
|
|
36 summary_method $technologies.SummarizationA
|
|
37 #elif $technologies.technology == "Agilent":
|
|
38 #if $technologies.channelsA.channelA == "one":
|
|
39 '$__tool_directory__/Agilent_One_Color_Preprocessing.R'
|
|
40 thefunction "AgilentOneColorPreprocessingFunction"
|
|
41 path "pathtemp"
|
|
42 image $image
|
|
43 methodBC $technologies.channelsA.BackgroundCorrectionAG
|
|
44 methodNBA $technologies.channelsA.methodNBAAG
|
|
45 #else:
|
|
46 '$__tool_directory__/Agilent_Two_Colors_Preprocessing.R'
|
|
47 thefunction "AgilentTwoChannelsPreprocessingFunction"
|
|
48 path "pathtemp"
|
|
49 image $image
|
|
50 methodBC $technologies.channelsA.BackgroundCorrectionAGT
|
|
51 methodNWA $technologies.channelsA.methodNWAAGT
|
|
52 methodNBA $technologies.channelsA.methodNBAAGT
|
|
53 #end if
|
|
54 #else:
|
|
55 #if $technologies.channelsG.channelG == "one"
|
|
56 '$__tool_directory__/GenePix_One_Color_Preprocessing.R'
|
|
57 thefunction "GenePixOneColorPreprocessingFunction"
|
|
58 path "pathtemp"
|
|
59 image $image
|
|
60 methodBC $technologies.channelsG.BackgroundCorrectionG
|
|
61 methodNBA $technologies.channelsG.methodNBAG
|
|
62 #else:
|
|
63 '$__tool_directory__/GenePix_Two_Colors_Preprocessing.R'
|
|
64 thefunction "GenePixTwoChannelsPreprocessingFunction"
|
|
65 path "pathtemp"
|
|
66 image $image
|
|
67 methodBC $technologies.channelsG.BackgroundCorrectionGT
|
|
68 methodNWA $technologies.channelsG.methodNWAGT
|
|
69 methodNBA $technologies.channelsG.methodNBAGT
|
|
70 #end if
|
|
71 #end if
|
|
72 w $w
|
|
73 h $h
|
|
74 ]]>
|
|
75 </command>
|
|
76 <inputs>
|
|
77 <param name="image" type="data" format="rdata" label="Project microarray as a binary rdata" help="Last output from tool read dataset." >
|
|
78 <validator type="expression" message="Please select output dataset from read dataset tool ">'Read.Project' in value.name</validator>
|
|
79 </param>
|
|
80 <conditional name="technologies">
|
|
81 <param name="technology" type="select" label="Select the technology">
|
|
82 <option value="Affymetrix" selected="true">Affymetrix</option>
|
|
83 <option value="Agilent">Agilent</option>
|
|
84 <option value="GenePix">GenePix</option>
|
|
85 </param>
|
|
86 <when value="Affymetrix">
|
|
87 <param name="BackgroundCorrectionA" type="select" label="Background correction method.">
|
|
88 <option value="mas" selected="true">Mas</option>
|
|
89 <option value="rma">Rma</option>
|
|
90 <option value="none">None</option>
|
|
91 </param>
|
|
92 <param name="NormalizationA" type="select" label="Normalization method.">
|
|
93 <option value="quantiles" selected="true">Quantiles</option>
|
|
94 <option value="quantiles.robust">Quantiles robust</option>
|
|
95 <option value="quantiles.probeset">Quantiles Probeset</option>
|
|
96 <option value="constant">Constant</option>
|
|
97 <option value="contrasts">Contrasts</option>
|
|
98 <option value="invariantset">Invariantset</option>
|
|
99 <option value="loess">Loess</option>
|
|
100 <option value="qspline">QSPline</option>
|
|
101 <option value="scaling">Scaling</option>
|
|
102 <option value="vsn">VSN</option>
|
|
103 </param>
|
|
104 <param name="SummarizationA" type="select" label="Summarization method.">
|
|
105 <option value="median.polish" selected="true">Median.polish</option>
|
|
106 <option value="tukey.biweight">Tukey.biweight</option>
|
|
107 <option value="average.log">Average.log</option>
|
|
108 <option value="log.average">Log.average</option>
|
|
109 <option value="rlm">Rlm</option>
|
|
110 <option value="lm">Lm</option>
|
|
111 <option value="log.median">Log.median</option>
|
|
112 <option value="median.log">Median.log</option>
|
|
113 <option value="log.2nd.largest">Log.2nd.largest</option>
|
|
114 </param>
|
|
115 </when>
|
|
116 <when value="Agilent">
|
|
117 <conditional name="channelsA">
|
|
118 <param name="channelA" type="select" label="Select the number of channels">
|
|
119 <option value="one" selected="true">One</option>
|
|
120 <option value="two">Two</option>
|
|
121 </param>
|
|
122 <when value="one">
|
|
123 <param name="BackgroundCorrectionAG" type="select" label="Background correction method.">
|
|
124 <option value="auto" selected="true">Auto</option>
|
|
125 <option value="none">None</option>
|
|
126 <option value="subtract">Subtract</option>
|
|
127 <option value="half">Half</option>
|
|
128 <option value="minimum">Minimum</option>
|
|
129 <option value="movingmin">MovingMin</option>
|
|
130 <option value="edwards">Edwards</option>
|
|
131 <option value="normexp">NormExp</option>
|
|
132 </param>
|
|
133 <param name="methodNBAAG" type="select" label="Normalization between arrays.">
|
|
134 <option value="scale" selected="true">Scale</option>
|
|
135 <option value="quantile">Quantile</option>
|
|
136 <option value="cyclicloess">CyclicLoess</option>
|
|
137 </param>
|
|
138 </when>
|
|
139 <when value="two">
|
|
140 <param name="BackgroundCorrectionAGT" type="select" label="Background correction method.">
|
|
141 <option value="auto" selected="true">Auto</option>
|
|
142 <option value="none">None</option>
|
|
143 <option value="subtract">Subtract</option>
|
|
144 <option value="half">Half</option>
|
|
145 <option value="minimum">Minimum</option>
|
|
146 <option value="movingmin">MovingMin</option>
|
|
147 <option value="edwards">Edwards</option>
|
|
148 <option value="normexp">NormExp</option>
|
|
149 </param>
|
|
150 <param name="methodNWAAGT" type="select" label="Normalization within arrays.">
|
|
151 <option value="median" selected="true">Median</option>
|
|
152 <option value="loess">Loess</option>
|
|
153 <option value="printtiploess">PrintTiploess</option>
|
|
154 </param>
|
|
155 <param name="methodNBAAGT" type="select" label="Normalization between arrays.">
|
|
156 <option value="scale" selected="true">Scale</option>
|
|
157 <option value="quantile">Quantile</option>
|
|
158 <option value="Aquantile">AQuantile</option>
|
|
159 <option value="cyclicloess">CyclicLoess</option>
|
|
160 </param>
|
|
161 </when>
|
|
162 </conditional>
|
|
163 </when>
|
|
164 <when value="GenePix">
|
|
165 <conditional name="channelsG">
|
|
166 <param name="channelG" type="select" label="Select the number of channels">
|
|
167 <option value="one" selected="true">One</option>
|
|
168 <option value="two">Two</option>
|
|
169 </param>
|
|
170 <when value="one">
|
|
171 <param name="BackgroundCorrectionG" type="select" label="Background correction method.">
|
|
172 <option value="auto" selected="true">Auto</option>
|
|
173 <option value="none">None</option>
|
|
174 <option value="subtract">Subtract</option>
|
|
175 <option value="half">Half</option>
|
|
176 <option value="minimum">Minimum</option>
|
|
177 <option value="movingmin">MovingMin</option>
|
|
178 <option value="edwards">Edwards</option>
|
|
179 <option value="normexp">NormExp</option>
|
|
180 </param>
|
|
181 <param name="methodNBAG" type="select" label="Normalization between arrays.">
|
|
182 <!--<option value="scale" selected="true">Scale</option>-->
|
|
183 <option value="quantile" selected="true">Quantile</option>
|
|
184 <option value="scale">Scale</option>
|
|
185 <option value="cyclicloess">CyclicLoess</option>
|
|
186 </param>
|
|
187 </when>
|
|
188 <when value="two">
|
|
189 <param name="BackgroundCorrectionGT" type="select" label="Background correction method.">
|
|
190 <option value="auto" selected="true">Auto</option>
|
|
191 <option value="none">None</option>
|
|
192 <option value="subtract">Subtract</option>
|
|
193 <option value="half">Half</option>
|
|
194 <option value="minimum">Minimum</option>
|
|
195 <option value="movingmin">MovingMin</option>
|
|
196 <option value="edwards">Edwards</option>
|
|
197 <option value="normexp">NormExp</option>
|
|
198 </param>
|
|
199 <param name="methodNWAGT" type="select" label="Normalization within arrays.">
|
|
200 <option value="median" selected="true">Median</option>
|
|
201 <option value="loess">Loess</option>
|
|
202 <option value="printtiploess">PrintTiploess</option>
|
|
203 </param>
|
|
204 <param name="methodNBAGT" type="select" label="Normalization between arrays.">
|
|
205 <!--<option value="scale" >Scale</option>-->
|
|
206 <option value="quantile" selected="true">Quantile</option>
|
|
207 <option value="scale">Scale</option>
|
|
208 <option value="cyclicloess">CyclicLoess</option>
|
|
209 <option value="Aquantile">AQuantile</option>
|
|
210 </param>
|
|
211 </when>
|
|
212 </conditional>
|
|
213 </when>
|
|
214 </conditional>
|
|
215 <param name="w" type="integer" value="1024" label="Plot's width" />
|
|
216 <param name="h" type="integer" value="1024" label="Plot's height" />
|
|
217 </inputs>
|
|
218 <outputs>
|
|
219 <data name="ProcessDataSetRData" format="rdata" from_work_dir="MicroArray.Preprocessing.RData" label="Preprocess.Project.Data.RData" />
|
|
220 <data name="Matrix.Data" format="tabular" from_work_dir="Matrix.Data.tsv" label="Matrix.Data.tsv" />
|
|
221 <data name="Preprocessing.Plots" format="html" from_work_dir="PreprocessingPlots.html" label="Preprocessing.Plots.html" />
|
|
222 </outputs>
|
|
223 <tests>
|
|
224 <test>
|
|
225 <param name="image" ftype="rdata" value="Read.Project.Data.RData" />
|
|
226 <param name="technologies|technology" value="GenePix"/>
|
|
227 <param name="technologies|channelsG|channelG" value="two"/>
|
|
228 <param name="technologies|channelsG|BackgroundCorrectionGT" value="auto"/>
|
|
229 <param name="technologies|channelsG|methodNWAGT" value="median"/>
|
|
230 <param name="technologies|channelsG|methodNBAGT" value="quantile"/>
|
|
231 <output name="ProcessDataSetRData" ftype="rdata" file="Preprocess.Project.Data.RData" compare="sim_size" >
|
|
232 </output>
|
|
233 <output name="Matrix.Data" ftype="tabular" file="Matrix.Data.tsv" >
|
|
234 </output>
|
|
235 <output name="Preprocessing.Plots" ftype="html" file="Preprocessing.Plots.html" compare="sim_size">
|
|
236 </output>
|
|
237 </test>
|
|
238 </tests>
|
|
239 <help>
|
|
240
|
|
241 .. class:: infomark
|
|
242
|
|
243 **Authors** T.Bensellak, B.Ettetuani.
|
|
244
|
|
245 ---------------------------------------------------
|
|
246
|
|
247 ==================================
|
|
248 Preprocessing Microarray DataSet
|
|
249 ==================================
|
|
250
|
|
251 -----------
|
|
252 Description
|
|
253 -----------
|
|
254
|
|
255 This tool is used as first phase of the global workflow, the preprocessing .
|
|
256
|
|
257 -----------------
|
|
258 Workflow position
|
|
259 -----------------
|
|
260
|
|
261 **Upstream tools**
|
|
262
|
|
263 +-------------------------------+------------------------------+---------+
|
|
264 | Name | output file |format |
|
|
265 +===============================+==============================+=========+
|
|
266 | Read.DataSet.Microarray | MicroArrayObject.RData | Rdat |
|
|
267 +-------------------------------+------------------------------+---------+
|
|
268
|
|
269
|
|
270 **Downstream tools**
|
|
271
|
|
272 +-----------------------------------------------+----------------------------------------------+---------+
|
|
273 | Name | Output file | Format |
|
|
274 +===============================================+==============================================+=========+
|
|
275 |Tests and Selection | Test.results.tsv | Tabular |
|
|
276 +-----------------------------------------------+----------------------------------------------+---------+
|
|
277
|
|
278 -----------
|
|
279 Input files
|
|
280 -----------
|
|
281
|
|
282 +---------------------------+------------+
|
|
283 | Parameter : num + label | Format |
|
|
284 +===========================+============+
|
|
285 | Image | Rdata |
|
|
286 +---------------------------+------------+
|
|
287 | Methods parmeters | Numeric |
|
|
288 +---------------------------+------------+
|
|
289
|
|
290 ------------
|
|
291 Output files
|
|
292 ------------
|
|
293
|
|
294 **Microarray.Preprocessing.RData**
|
|
295
|
|
296 **Matrix.Data.tsv**
|
|
297
|
|
298 ------------------------------
|
|
299 General schema of the workflow
|
|
300 ------------------------------
|
|
301
|
|
302 https://bensellak.github.io/microarrays-galaxy/workflow.png
|
|
303
|
|
304
|
|
305 </help>
|
|
306 <expand macro="R_citation">
|
|
307 </expand>
|
|
308 </tool>
|