comparison w4mclassfilter.xml @ 2:23c6d271def9 draft

planemo upload
author eschen42
date Wed, 10 May 2017 02:51:58 -0400
parents bab3a658f74e
children 191a720488ce
comparison
equal deleted inserted replaced
1:371741d19743 2:23c6d271def9
22 classnameColumn "$classnameColumn" 22 classnameColumn "$classnameColumn"
23 samplenameColumn "$samplenameColumn" 23 samplenameColumn "$samplenameColumn"
24 dataMatrix_out "$dataMatrix_out" 24 dataMatrix_out "$dataMatrix_out"
25 sampleMetadata_out "$sampleMetadata_out" 25 sampleMetadata_out "$sampleMetadata_out"
26 variableMetadata_out "$variableMetadata_out" 26 variableMetadata_out "$variableMetadata_out"
27 information "$information"
28 ]]></command> 27 ]]></command>
29 28
30 <inputs> 29 <inputs>
31 <param name="dataMatrix_in" label="Data matrix file" type="data" format="tabular" help="variable x sample, decimal: '.', missing: NA, mode: numerical, sep: tabular" /> 30 <param name="dataMatrix_in" label="Data matrix file" type="data" format="tabular" help="variable x sample, decimal: '.', missing: NA, mode: numerical, separator: tab" />
32 <param name="sampleMetadata_in" label="Sample metadata file" type="data" format="tabular" help="sample x metadata, decimal: '.', missing: NA, mode: character and numerical, sep: tabular" /> 31 <param name="sampleMetadata_in" label="Sample metadata file" type="data" format="tabular" help="sample x metadata columns, separator: tab" />
33 <param name="variableMetadata_in" label="Variable metadata file" type="data" format="tabular" help="variable x metadata, decimal: '.', missing: NA, mode: character and numerical, sep: tabular" /> 32 <param name="variableMetadata_in" label="Variable metadata file" type="data" format="tabular" help="variable x metadata columns, separator: tab" />
34 <param name="sampleclassNames" label="Names of sample classes" type="text" value = "" help="comma-separated names of sample classes to filter in or out; defaults to no names" /> 33 <param name="sampleclassNames" label="Names of sample classes" type="text" value = "" help="comma-separated names of sample classes to filter in or out; defaults to no names" />
35 <param name="inclusive" label="Include named classes" type="select" help="filter-in - include only the named sample classes; filter-out (the default) - exclude only the named sample classes"> 34 <param name="inclusive" label="Include named classes" type="select" help="filter-in - include only the named sample classes; filter-out (the default) - exclude only the named sample classes">
36 <option value="TRUE">filter-in</option> 35 <option value="TRUE">filter-in</option>
37 <option value="FALSE" selected="true">filter-out</option> 36 <option value="FALSE" selected="true">filter-out</option>
38 </param> 37 </param>
41 </inputs> 40 </inputs>
42 <outputs> 41 <outputs>
43 <data name="dataMatrix_out" label="${tool.name}_${dataMatrix_in.name}" format="tabular" ></data> 42 <data name="dataMatrix_out" label="${tool.name}_${dataMatrix_in.name}" format="tabular" ></data>
44 <data name="sampleMetadata_out" label="${tool.name}_${sampleMetadata_in.name}" format="tabular" ></data> 43 <data name="sampleMetadata_out" label="${tool.name}_${sampleMetadata_in.name}" format="tabular" ></data>
45 <data name="variableMetadata_out" label="${tool.name}_${variableMetadata_in.name}" format="tabular" ></data> 44 <data name="variableMetadata_out" label="${tool.name}_${variableMetadata_in.name}" format="tabular" ></data>
46 <data name="information" label="${tool.name}__information.txt" format="txt"/>
47 </outputs> 45 </outputs>
48 46
49 <tests> 47 <tests>
50 <test> 48 <test>
51 <param name="dataMatrix_in" value="input_dataMatrix.tsv"/> 49 <param name="dataMatrix_in" value="input_dataMatrix.tsv"/>
53 <param name="variableMetadata_in" value="input_variableMetadata.tsv"/> 51 <param name="variableMetadata_in" value="input_variableMetadata.tsv"/>
54 <param name="classnameColumn" value="gender"/> 52 <param name="classnameColumn" value="gender"/>
55 <param name="sampleclassNames" value="M"/> 53 <param name="sampleclassNames" value="M"/>
56 <param name="samplenameColumn" value="sampleMetadata"/> 54 <param name="samplenameColumn" value="sampleMetadata"/>
57 <param name="inclusive" value="filter-in"/> 55 <param name="inclusive" value="filter-in"/>
58 <param name="information" value="test-information.txt"/>
59 <output name="dataMatrix_out"> 56 <output name="dataMatrix_out">
60 <assert_contents> 57 <assert_contents>
61 <not_has_text text="HU_028" /> 58 <not_has_text text="HU_028" />
62 <not_has_text text="HU_051" /> 59 <not_has_text text="HU_051" />
63 <not_has_text text="HU_060" /> 60 <not_has_text text="HU_060" />
103 <param name="variableMetadata_in" value="input_variableMetadata.tsv"/> 100 <param name="variableMetadata_in" value="input_variableMetadata.tsv"/>
104 <param name="classnameColumn" value="gender"/> 101 <param name="classnameColumn" value="gender"/>
105 <param name="sampleclassNames" value="M"/> 102 <param name="sampleclassNames" value="M"/>
106 <param name="samplenameColumn" value="sampleMetadata"/> 103 <param name="samplenameColumn" value="sampleMetadata"/>
107 <param name="inclusive" value="filter-in"/> 104 <param name="inclusive" value="filter-in"/>
108 <param name="information" value="test-information.txt"/>
109 <output name="sampleMetadata_out"> 105 <output name="sampleMetadata_out">
110 <assert_contents> 106 <assert_contents>
111 <not_has_text text="HU_028" /> 107 <not_has_text text="HU_028" />
112 <not_has_text text="HU_051" /> 108 <not_has_text text="HU_051" />
113 <not_has_text text="HU_060" /> 109 <not_has_text text="HU_060" />
137 <param name="variableMetadata_in" value="input_variableMetadata.tsv"/> 133 <param name="variableMetadata_in" value="input_variableMetadata.tsv"/>
138 <param name="classnameColumn" value="gender"/> 134 <param name="classnameColumn" value="gender"/>
139 <param name="sampleclassNames" value="M"/> 135 <param name="sampleclassNames" value="M"/>
140 <param name="samplenameColumn" value="sampleMetadata"/> 136 <param name="samplenameColumn" value="sampleMetadata"/>
141 <param name="inclusive" value="filter-in"/> 137 <param name="inclusive" value="filter-in"/>
142 <param name="information" value="test-information.txt"/>
143 <output name="variableMetadata_out"> 138 <output name="variableMetadata_out">
144 <assert_contents> 139 <assert_contents>
145 <has_text text="HMDB03193" /> 140 <has_text text="HMDB03193" />
146 <not_has_text text="HMDB00822" /> 141 <not_has_text text="HMDB00822" />
147 <has_text text="HMDB01101" /> 142 <has_text text="HMDB01101" />
163 </test> 158 </test>
164 </tests> 159 </tests>
165 160
166 161
167 162
168 <help> 163 <help>
164 <![CDATA[
169 165
170 .. class:: infomark 166 .. class:: infomark
171 167
172 **Author** Arthur Eschenlauer (University of Minnesota, esch0041@umn.edu) 168 **Author** Arthur Eschenlauer (University of Minnesota, esch0041@umn.edu)
173 169
212 ----------- 208 -----------
213 209
214 +---------------------------+------------+ 210 +---------------------------+------------+
215 | File | Format | 211 | File | Format |
216 +===========================+============+ 212 +===========================+============+
217 | 1) Data matrix | tabular | 213 | Data matrix | tabular |
218 +---------------------------+------------+ 214 +---------------------------+------------+
219 | 2) Sample metadata | tabular | 215 | Sample metadata | tabular |
220 +---------------------------+------------+ 216 +---------------------------+------------+
221 | 3) Variable metadata | tabular | 217 | Variable metadata | tabular |
222 +---------------------------+------------+ 218 +---------------------------+------------+
223 219
224 220
225 ---------- 221 ----------
226 Parameters 222 Parameters
227 ---------- 223 ----------
228 224
229 Data matrix file 225 Data matrix file
230 | variable x sample **dataMatrix** tabular separated file of the numeric data matrix, with . as decimal, and NA for missing values; the table must not contain metadata apart from row and column names; the row and column names must be identical to the rownames of the sample and variable metadata, respectively (see below) 226 | variable x sample **dataMatrix** (tabular separated values) file of the numeric data matrix, with . as decimal, and NA for missing values; the table must not contain metadata apart from row and column names; the row and column names must be identical to the rownames of the sample and variable metadata, respectively (see below)
231 | 227 |
232 228
233 Sample metadata file 229 Sample metadata file
234 | sample x metadata **sampleMetadata** tabular separated file of the numeric and/or character sample metadata, with . as decimal and NA for missing values 230 | sample x metadata **sampleMetadata** (tabular separated values) file of the numeric and/or character sample metadata, with . as decimal and NA for missing values
235 | 231 |
236 232
237 Variable metadata file 233 Variable metadata file
238 | variable x metadata **variableMetadata** tabular separated file of the numeric and/or character variable metadata, with . as decimal and NA for missing values 234 | variable x metadata **variableMetadata** (tabular separated values) file of the numeric and/or character variable metadata, with . as decimal and NA for missing values
239 | 235 |
240 236
241 Names of sample classes (default = no names) 237 Names of sample classes (default = no names)
242 | comma-separated names of sample classes to include or exclude 238 | comma-separated names of sample classes to include or exclude
243 | 239 |
244 240
245 Include named classes (default = filter-out) 241 Include named classes (default = filter-out)
246 | *filter-in* - include only the named sample classes 242 | *filter-in* - include only the named sample classes
247 | *filter-out* - exclude only the named sample classes 243 | *filter-out* - exclude only the named sample classes
248 | 244 |
245
249 246
250 Column that names the sample-class (default = 'class') 247 Column that names the sample-class (default = 'class')
251 | name of the column in sample metadata that has the values to be tested against the 'classes' input parameter 248 | name of the column in sample metadata that has the values to be tested against the 'classes' input parameter
252 | 249 |
253 250
259 ------------ 256 ------------
260 Output files 257 Output files
261 ------------ 258 ------------
262 259
263 260
264 sampleMetadata_out.tabular 261 sampleMetadata
265 | **sampleMetadata** tabular separated file identical to the file given as argument, excepting lacking rows for samples that have been filtered out 262 | (tabular separated values) file identical to the **sampleMetadata** file given as an input argument, excepting lacking rows for samples (xC-MS features) that have been filtered out (by the sample-class filter or because of zero variance)
266 | 263 |
267 264
268 variableMetadata_out.tabular 265 variableMetadata
269 | **variableMetadata** tabular separated file identical to the file given as argument, excepting lacking rows for variables (xC-MS features) that have been filtered out (because of zero variance) 266 | (tabular separated values) file identical to the **variableMetadata** file given as an input argument, excepting lacking rows for variables (xC-MS features) that have been filtered out (because of zero variance)
270 | 267 |
271 268
272 dataMatrix_out.tabular 269 dataMatrix
273 | **dataMatrix** tabular separated file identical to the file given as argument, excepting lacking columns for samples that have been filtered out (because of the sample-classes specified in the input parameters) and rows for variables (xC-MS features) that have been filtered out (because of zero variance) 270 | (tabular separated values) file identical to the **dataMatrix** file given as an input argument, excepting lacking rows for variables (xC-MS features) that have been filtered out (because of zero variance) and columns that have been filtered out (by the sample-class filter or because of zero variance)
274 | 271 |
275 272
276 information.txt 273
277 | Text file with all messages and warnings generated during the computation 274 ---------------
278 | 275 Working example
276 ---------------
277
278 .. class:: infomark
279
280 **Input files**
281
282 +-------------------+--------------------------------------------------------------------------------------------------------------+
283 | Input File | Download from URL |
284 +===================+==============================================================================================================+
285 | Data matrix | https://raw.githubusercontent.com/HegemanLab/w4mclassfilter/master/tests/testthat/input_dataMatrix.tsv |
286 +-------------------+--------------------------------------------------------------------------------------------------------------+
287 | Sample metadata | https://raw.githubusercontent.com/HegemanLab/w4mclassfilter/master/tests/testthat/input_sampleMetadata.tsv |
288 +-------------------+--------------------------------------------------------------------------------------------------------------+
289 | Variable metadata | https://raw.githubusercontent.com/HegemanLab/w4mclassfilter/master/tests/testthat/input_variableMetadata.tsv |
290 +-------------------+--------------------------------------------------------------------------------------------------------------+
291
292 .. class:: infomark
293
294 **Other input parameters**
295
296 +------------------------------------+-----------------+
297 | Input Parameter | Value |
298 +====================================+=================+
299 | Names of sample classes | M |
300 +------------------------------------+-----------------+
301 | Include named classes | filter-in |
302 +------------------------------------+-----------------+
303 | Column that names the sample-class | gender |
304 +------------------------------------+-----------------+
305 | Column that names the sample | sampleMetadata |
306 +------------------------------------+-----------------+
307
308 .. class:: infomark
309
310 **Expected outputs**
311
312 +-------------------+-----------------------------------------------------------------------------------------------------------------+
313 | Expected Output | Download from URL |
314 +===================+=================================================================================================================+
315 | Data matrix | https://raw.githubusercontent.com/HegemanLab/w4mclassfilter/master/tests/testthat/expected_dataMatrix.tsv |
316 +-------------------+-----------------------------------------------------------------------------------------------------------------+
317 | Sample metadata | https://raw.githubusercontent.com/HegemanLab/w4mclassfilter/master/tests/testthat/expected_sampleMetadata.tsv |
318 +-------------------+-----------------------------------------------------------------------------------------------------------------+
319 | Variable metadata | https://raw.githubusercontent.com/HegemanLab/w4mclassfilter/master/tests/testthat/expected_variableMetadata.tsv |
320 +-------------------+-----------------------------------------------------------------------------------------------------------------+
321
279 322
280 ----------------------------------------------------------------------------- 323 -----------------------------------------------------------------------------
281 324
282 ---- 325 ----
283 NEWS 326 NEWS
293 *dataMatrix* *is* modified by the tool, so it *does* appear as an output file 336 *dataMatrix* *is* modified by the tool, so it *does* appear as an output file
294 337
295 INTERNAL MODIFICATIONS 338 INTERNAL MODIFICATIONS
296 339
297 none 340 none
298 341 ]]>
299 </help> 342 </help>
300 <citations> 343 <citations>
301 </citations> 344 </citations>
302 </tool> 345 </tool>
303 <!-- vim: et sw=2 ts=2 : 346 <!-- vim: noet sw=4 ts=4 :
304 --> 347 -->