comparison withinvariation-26603602a823/mixomics_multilevel.xml @ 0:5086ad0c0992 draft default tip

Uploaded v0.4
author yguitton
date Fri, 05 May 2017 05:04:36 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:5086ad0c0992
1 <tool id="mixomics_multilevel" name="Multilevel" version="0.5.0">
2
3 <description>Data transformation: Within matrix decomposition for repeated measurements (cross-over design) with mixOmics package</description>
4
5 <requirements>
6 <requirement type="package" version="6.1.1">r-mixomics</requirement>
7 <requirement type="package" version="1.1_4">r-batch</requirement>
8 <requirement type="package" version="1.64.0">bioconductor-pcamethods</requirement>
9 </requirements>
10
11 <stdio>
12 <exit_code range="1:" level="fatal" />
13 </stdio>
14
15
16 <command>
17 Rscript $__tool_directory__/mixomics_multilevel.r
18
19 dataMatrix_in "$dataMatrix_in"
20 sampleMetadata_in "$sampleMetadata_in"
21 repmeasure "$repmeasure"
22 #if $transformation.option_transformation == "false"
23 transfo "none"
24 #end if
25 #if $nblevel.option_level == "onelevel"
26 respL "$nblevel.respL"
27 respL2 "NULL"
28 #end if
29 #if $nblevel.option_level == "twolevel"
30 respL1 "$nblevel.respL1"
31 respL2 "$nblevel.respL2"
32 #end if
33 #if $transformation.option_transformation == "true"
34 transfo "go"
35 trans "$transformation.trans"
36 scale "$transformation.scale"
37 center "$transformation.center"
38 #end if
39
40 </command>
41 <inputs>
42 <param name="dataMatrix_in" label="Data matrix file" type="data" format="tabular" help="variable x sample, decimal: '.', missing: NA, mode: numerical, sep: tabular" />
43 <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" />
44 <param name="repmeasure" label="Repeated mesurement label (Individual IDs, ...)" type="text" value="none" help="Indicate the column name of the sample table to be used as repeated mesurement factor" />
45
46
47 <conditional name="nblevel">
48 <param name="option_level" type="select" label="Select number of levels1">
49 <option value="onelevel" selected="True">One Level</option>
50 <option value="twolevel">Two levels</option>
51 </param>
52 <when value="onelevel">
53 <param name="respL" label="Level name (as in sampleMetadata)" type="text" value = "none" help="Indicate the column name of the sample table to be used as factor" />
54 </when>
55 <when value="twolevel">
56 <param name="respL1" label="First level name (as in sampleMetadata)" type="text" value = "none" help="Indicate the column name of the sample table to be used as first factor" />
57 <param name="respL2" label="Second level name (as in sampleMetadata)" type="text" value = "none" help="Indicate the column name of the sample table to be used as second factor" />
58 </when>
59 </conditional>
60 <conditional name="transformation">
61 <param name="option_transformation" type="boolean" label="Add transformation to dataMatrix before withinVariation" />
62 <when value="false">
63 </when>
64 <when value="true">
65 <param name="trans" label="Transformation" type="select" help="" >
66 <option value="none">none</option>
67 <option value="log2">log2</option>
68 <option value="log10">log10</option>
69 <option value="sqrt">square root</option>
70 </param>
71 <param name="scale" label="Scaling" type="select" help="" >
72 <option value="none">none</option>
73 <option value="pareto">pareto</option>
74 <option value="vector">vector</option>
75 <option value="uv">UV</option>
76 </param>
77 <param name="center" label="Centering" type="boolean" />
78 </when>
79 </conditional>
80
81
82 </inputs>
83
84 <outputs>
85 <data name="dataMatrix_out" format="tabular" from_work_dir="dataMatrix_out.tsv" label="dataMatrix_out.tsv" ></data>
86 <data name="multilevelRData" format="rdata" from_work_dir="multilevel.RData" label="multilevel.RData" />
87 <data name="log" format="txt" from_work_dir="multilevel.log" label="multilevel.log.txt" />
88 </outputs>
89
90 <tests>
91 <test>
92 <param name="dataMatrix_in" value="dataMatrix.csv" ftype="tabular" />
93 <param name="sampleMetadata_in" value="sampleMetadata.csv" ftype="tabular" />
94 <param name="repmeasure" value="Subject" />
95 <param name="nblevel|option_level" value="onelevel" />
96 <param name="respL" value="Occasion" />
97 <output name="dataMatrix_out" file="dataMatrix_out.tsv" lines_diff="2" />
98 </test>
99 <test>
100 <param name="dataMatrix_in" value="dataMatrix.csv" ftype="tabular" />
101 <param name="sampleMetadata_in" value="sampleMetadata.csv" ftype="tabular" />
102 <param name="repmeasure" value="Subject" />
103 <param name="nblevel|option_level" value="onelevel" />
104 <param name="respL" value="Occasion" />
105 <param name="transformation|option_transformation" value="true" />
106 <param name="transfo" value="go" />
107 <param name="trans" value="log10" />
108 <param name="scale" value="pareto" />
109 <param name="center" value="false" />
110 <output name="dataMatrix_out" file="dataMatrix_out_log10.tsv" lines_diff="2" />
111 </test>
112
113 </tests>
114
115
116 <help>
117
118 .. class:: infomark
119
120 **Author(s)** Benoit Liquet, Kim-Anh Le Cao, Benoit Gautier, Ignacio Gonzalez.
121
122 .. class:: infomark
123
124 **Galaxy wrapper and scripts developpers for W4M integration** Guitton Yann LABERCA yann.guitton@oniris-nantes.fr
125
126 ===========
127 Description
128 ===========
129
130 withinVariation function decomposes the Within variation in the dataMatrix (One or two-factor analyses are available). The resulting matrix is then input in any multivariate analyses.
131
132 withinVariation simply returns the Xw within matrix, which can be input in the other multivariate approaches already implemented in mixOmics
133
134
135 That tool make use of withinVariation function for cross-over design experiment (Repeated mesurement) from mixOmics R package packurl_
136
137 .. _packurl: https://CRAN.R-project.org/package=mixOmics
138
139 For details information about mixOmics please connect to link_
140
141 .. _link: http://mixomics.org/
142
143 **Please cite:**
144 Kim-Anh Le Cao, Florian Rohart, Ignacio Gonzalez, Sebastien Dejean with key contributors Benoit Gautier, Francois Bartolo,
145 contributions from Pierre Monget, Jeff Coquery, FangZou Yao and Benoit Liquet(2016).
146 mixOmics: Omics Data Integration Project. R package version 6.1.1.
147
148 </help>
149
150 <citations>
151 <citation type="doi">10.1186/1471-2105-13-325</citation>
152 <citation type="doi">10.1007/s11306-009-0185-z</citation>
153 <citation type="doi">10.1093/bioinformatics/btu813</citation>
154 </citations>
155 </tool>