comparison edger.xml @ 12:a8305cf0c951 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/edger commit 4955aeed800ea8e45057b7e8578dc878a07f9cfc
author iuc
date Thu, 21 Sep 2023 10:01:55 +0000
parents f2843df56434
children 0cb907a2a810
comparison
equal deleted inserted replaced
11:f2843df56434 12:a8305cf0c951
2 <description> 2 <description>
3 Perform differential expression of count data 3 Perform differential expression of count data
4 </description> 4 </description>
5 <macros> 5 <macros>
6 <token name="@TOOL_VERSION@">3.36.0</token> 6 <token name="@TOOL_VERSION@">3.36.0</token>
7 <token name="@VERSION_SUFFIX@">0</token> 7 <token name="@VERSION_SUFFIX@">1</token>
8 </macros> 8 </macros>
9 <xrefs>
10 <xref type="bio.tools">edger</xref>
11 </xrefs>
12 <edam_topics> 9 <edam_topics>
13 <edam_topic>topic_3308</edam_topic> 10 <edam_topic>topic_3308</edam_topic>
14 </edam_topics> 11 </edam_topics>
15 <edam_operations> 12 <edam_operations>
16 <edam_operation>operation_3563</edam_operation> 13 <edam_operation>operation_3563</edam_operation>
17 <edam_operation>operation_3223</edam_operation> 14 <edam_operation>operation_3223</edam_operation>
18 </edam_operations> 15 </edam_operations>
19 16 <xrefs>
17 <xref type="bio.tools">edger</xref>
18 <xref type="bioconductor">edger</xref>
19 </xrefs>
20 <requirements> 20 <requirements>
21 <requirement type="package" version="@TOOL_VERSION@">bioconductor-edger</requirement> 21 <requirement type="package" version="@TOOL_VERSION@">bioconductor-edger</requirement>
22 <requirement type="package" version="3.50.0">bioconductor-limma</requirement> 22 <requirement type="package" version="3.50.0">bioconductor-limma</requirement>
23 <requirement type="package" version="0.2.20">r-rjson</requirement> 23 <requirement type="package" version="0.2.20">r-rjson</requirement>
24 <requirement type="package" version="1.20.3">r-getopt</requirement> 24 <requirement type="package" version="1.20.3">r-getopt</requirement>
25 <requirement type="package" version="1.4.36">r-statmod</requirement> 25 <requirement type="package" version="1.4.36">r-statmod</requirement>
26 <!-- required for alpha function used with plotMD --> 26 <!-- required for alpha function used with plotMD -->
27 <requirement type="package" version="1.1.1">r-scales</requirement> 27 <requirement type="package" version="1.1.1">r-scales</requirement>
28 </requirements> 28 </requirements>
29
30 <version_command><![CDATA[ 29 <version_command><![CDATA[
31 echo $(R --version | grep version | grep -v GNU)", edgeR version" $(R --vanilla --slave -e "library(edgeR); cat(sessionInfo()\$otherPkgs\$edgeR\$Version)" 2> /dev/null | grep -v -i "WARNING: ")", limma version" $(R --vanilla --slave -e "library(limma); cat(sessionInfo()\$otherPkgs\$limma\$Version)" 2> /dev/null | grep -v -i "WARNING: ")", scales version" $(R --vanilla --slave -e "library(scales); cat(sessionInfo()\$otherPkgs\$scales\$Version)" 2> /dev/null | grep -v -i "WARNING: ")", rjson version" $(R --vanilla --slave -e "library(rjson); cat(sessionInfo()\$otherPkgs\$rjson\$Version)" 2> /dev/null | grep -v -i "WARNING: ")", getopt version" $(R --vanilla --slave -e "library(getopt); cat(sessionInfo()\$otherPkgs\$getopt\$Version)" 2> /dev/null | grep -v -i "WARNING: ") 30 echo $(R --version | grep version | grep -v GNU)", edgeR version" $(R --vanilla --slave -e "library(edgeR); cat(sessionInfo()\$otherPkgs\$edgeR\$Version)" 2> /dev/null | grep -v -i "WARNING: ")", limma version" $(R --vanilla --slave -e "library(limma); cat(sessionInfo()\$otherPkgs\$limma\$Version)" 2> /dev/null | grep -v -i "WARNING: ")", scales version" $(R --vanilla --slave -e "library(scales); cat(sessionInfo()\$otherPkgs\$scales\$Version)" 2> /dev/null | grep -v -i "WARNING: ")", rjson version" $(R --vanilla --slave -e "library(rjson); cat(sessionInfo()\$otherPkgs\$rjson\$Version)" 2> /dev/null | grep -v -i "WARNING: ")", getopt version" $(R --vanilla --slave -e "library(getopt); cat(sessionInfo()\$otherPkgs\$getopt\$Version)" 2> /dev/null | grep -v -i "WARNING: ")
32 ]]></version_command> 31 ]]></version_command>
33
34 <command detect_errors="exit_code"><![CDATA[ 32 <command detect_errors="exit_code"><![CDATA[
35 #import json 33 #import json
36 Rscript '$__tool_directory__/edger.R' 34 Rscript '$__tool_directory__/edger.R'
37 35
38 -R '$outReport' 36 -R '$outReport'
112 110
113 #if $out.rscript: 111 #if $out.rscript:
114 && cp '$__tool_directory__/edger.R' '$rscript' 112 && cp '$__tool_directory__/edger.R' '$rscript'
115 #end if 113 #end if
116 ]]></command> 114 ]]></command>
117
118 <inputs> 115 <inputs>
119
120 <!-- Counts and Factors --> 116 <!-- Counts and Factors -->
121 <conditional name="input"> 117 <conditional name="input">
122 <param name="format" type="select" label="Count Files or Matrix?" 118 <param name="format" type="select" label="Count Files or Matrix?" help="You can choose to input either separate count files (one per sample) or a single count matrix">
123 help="You can choose to input either separate count files (one per sample) or a single count matrix">
124 <option value="files">Separate Count Files</option> 119 <option value="files">Separate Count Files</option>
125 <option value="matrix">Single Count Matrix</option> 120 <option value="matrix">Single Count Matrix</option>
126 </param> 121 </param>
127
128 <when value="files"> 122 <when value="files">
129 <repeat name="rep_factor" title="Factor" min="1"> 123 <repeat name="rep_factor" title="Factor" min="1">
130 <param name="factorName" type="text" label="Name" help="Name of experiment factor of interest (e.g. Genotype). One factor must be entered and there must be two or more groups per factor. Optional additional factors (e.g. Batch) can be entered using the Insert Factor button below, see Help section for more information. NOTE: Please only use letters, numbers or underscores, and the first character of each factor must be a letter"> 124 <param name="factorName" type="text" label="Name" help="Name of experiment factor of interest (e.g. Genotype). One factor must be entered and there must be two or more groups per factor. Optional additional factors (e.g. Batch) can be entered using the Insert Factor button below, see Help section for more information. NOTE: Please only use letters, numbers or underscores, and the first character of each factor must be a letter">
131 <sanitizer> 125 <sanitizer>
132 <valid initial="string.letters,string.digits"><add value="_" /></valid> 126 <valid initial="string.letters,string.digits">
133 </sanitizer> 127 <add value="_"/>
128 </valid>
129 </sanitizer>
134 </param> 130 </param>
135 <repeat name="rep_group" title="Group" min="2" default="2"> 131 <repeat name="rep_group" title="Group" min="2" default="2">
136 <param name="groupName" type="text" label="Name" 132 <param name="groupName" type="text" label="Name" help="Name of group that the counts files belong to (e.g. WT or Mut). NOTE: Please only use letters, numbers or underscores (case sensitive), and the first character of each group must be a letter">
137 help="Name of group that the counts files belong to (e.g. WT or Mut). NOTE: Please only use letters, numbers or underscores (case sensitive), and the first character of each group must be a letter"> 133 <sanitizer>
138 <sanitizer> 134 <valid initial="string.letters,string.digits">
139 <valid initial="string.letters,string.digits"><add value="_" /></valid> 135 <add value="_"/>
140 </sanitizer> 136 </valid>
137 </sanitizer>
141 </param> 138 </param>
142 <param name="countsFile" type="data" format="tabular" multiple="true" label="Counts files"/> 139 <param name="countsFile" type="data" format="tabular" multiple="true" label="Counts files"/>
143 </repeat> 140 </repeat>
144 </repeat> 141 </repeat>
145 </when> 142 </when>
146
147 <when value="matrix"> 143 <when value="matrix">
148 <param name="counts" type="data" format="tabular" label="Count Matrix"/> 144 <param name="counts" type="data" format="tabular" label="Count Matrix"/>
149
150 <conditional name="fact"> 145 <conditional name="fact">
151 <param name="ffile" type="select" label="Input factor information from file?" 146 <param name="ffile" type="select" label="Input factor information from file?" help="You can choose to input the factor and group information for the samples from a file or manually enter below. NOTE: Please only use letters, numbers or underscores (case sensitive), and the first character of each sample, factor and group must be a letter">
152 help="You can choose to input the factor and group information for the samples from a file or manually enter below. NOTE: Please only use letters, numbers or underscores (case sensitive), and the first character of each sample, factor and group must be a letter">
153 <option value="no">No</option> 147 <option value="no">No</option>
154 <option value="yes">Yes</option> 148 <option value="yes">Yes</option>
155 </param> 149 </param>
156 <when value="yes"> 150 <when value="yes">
157 <param name="finfo" type="data" format="tabular" label="Factor File"/> 151 <param name="finfo" type="data" format="tabular" label="Factor File"/>
158 </when> 152 </when>
159 <when value="no" > 153 <when value="no">
160 <repeat name="rep_factor" title="Factor" min="1"> 154 <repeat name="rep_factor" title="Factor" min="1">
161 <param name="factorName" type="text" label="Factor Name" 155 <param name="factorName" type="text" label="Factor Name" help="Name of experiment factor of interest (e.g. Genotype). One factor must be entered and there must be two or more groups per factor. Additional factors (e.g. Batch) can be entered using the Insert Factor button below, see Help section below. NOTE: Please only use letters, numbers or underscores, and the first character of each factor must be a letter">
162 help="Name of experiment factor of interest (e.g. Genotype). One factor must be entered and there must be two or more groups per factor. Additional factors (e.g. Batch) can be entered using the Insert Factor button below, see Help section below. NOTE: Please only use letters, numbers or underscores, and the first character of each factor must be a letter"> 156 <validator type="empty_field"/>
163 <validator type="empty_field" />
164 <validator type="regex" message="Please only use letters, numbers or underscores">^[\w]+$</validator> 157 <validator type="regex" message="Please only use letters, numbers or underscores">^[\w]+$</validator>
165 </param> 158 </param>
166 <param name="groupNames" type="text" label="Groups" 159 <param name="groupNames" type="text" label="Groups" help="Enter the group names for the samples separated with commas e.g. WT,WT,WT,Mut,Mut,Mut. The order of the names must match the order of the samples in the columns of the count matrix. NOTE: Please only use letters, numbers or underscores (case sensitive), and the first character of each group must be a letter">
167 help="Enter the group names for the samples separated with commas e.g. WT,WT,WT,Mut,Mut,Mut. The order of the names must match the order of the samples in the columns of the count matrix. NOTE: Please only use letters, numbers or underscores (case sensitive), and the first character of each group must be a letter"> 160 <validator type="empty_field"/>
168 <validator type="empty_field" />
169 <validator type="regex" message="Please only use letters, numbers or underscores, and separate levels by commas">^[\w,]+$</validator> 161 <validator type="regex" message="Please only use letters, numbers or underscores, and separate levels by commas">^[\w,]+$</validator>
170 </param> 162 </param>
171 </repeat> 163 </repeat>
172 </when> 164 </when>
173 </conditional> 165 </conditional>
174 </when> 166 </when>
175 </conditional> 167 </conditional>
176
177 <!-- Gene Annotations --> 168 <!-- Gene Annotations -->
178 <conditional name="anno"> 169 <conditional name="anno">
179 <param name="annoOpt" type="select" label="Use Gene Annotations?" 170 <param name="annoOpt" type="select" label="Use Gene Annotations?" help="If you provide an annotation file, annotations will be added to the table(s) of differential expression results to provide descriptions for each gene. See Help section below.">
180 help="If you provide an annotation file, annotations will be added to the table(s) of differential expression results to provide descriptions for each gene. See Help section below.">
181 <option value="no">No</option> 171 <option value="no">No</option>
182 <option value="yes">Yes</option> 172 <option value="yes">Yes</option>
183 </param> 173 </param>
184 <when value="yes"> 174 <when value="yes">
185 <param name="geneanno" type="data" format="tabular" label="Gene Annotations"/> 175 <param name="geneanno" type="data" format="tabular" label="Gene Annotations"/>
186 </when> 176 </when>
187 <when value="no" /> 177 <when value="no"/>
188 </conditional> 178 </conditional>
189
190 <!-- Contrasts --> 179 <!-- Contrasts -->
191 <repeat name="rep_contrast" title="Contrast" min="1" default="1"> 180 <repeat name="rep_contrast" title="Contrast" min="1" default="1">
192 <param name="contrast" type="text" label="Contrast of Interest" help="Names of two groups to compare separated by a hyphen e.g. Mut-WT. If the order is Mut-WT the fold changes in the results will be up/down in Mut relative to WT. If you have more than one contrast enter each separately using the Insert Contrast button below. For differences between contrasts use e.g. (MT.t1-MT.t0)-(WT.t1-WT.t0). For more info, see Chapter 8 in the limma User's guide: https://www.bioconductor.org/packages/release/bioc/vignettes/limma/inst/doc/usersguide.pdf or https://bioconductor.org/packages/release/bioc/vignettes/edgeR/inst/doc/edgeRUsersGuide.pdf page 36 for nested comparisons."> 181 <param name="contrast" type="text" label="Contrast of Interest" help="Names of two groups to compare separated by a hyphen e.g. Mut-WT. If the order is Mut-WT the fold changes in the results will be up/down in Mut relative to WT. If you have more than one contrast enter each separately using the Insert Contrast button below. For differences between contrasts use e.g. (MT.t1-MT.t0)-(WT.t1-WT.t0). For more info, see Chapter 8 in the limma User's guide: https://www.bioconductor.org/packages/release/bioc/vignettes/limma/inst/doc/usersguide.pdf or https://bioconductor.org/packages/release/bioc/vignettes/edgeR/inst/doc/edgeRUsersGuide.pdf page 36 for nested comparisons.">
193 <validator type="empty_field" /> 182 <validator type="empty_field"/>
194 <validator type="regex" message="Please only use letters, numbers, parentheses or underscores">^[\w\-()]+$</validator> 183 <validator type="regex" message="Please only use letters, numbers, parentheses or underscores">^[\w\-()]+$</validator>
195 </param> 184 </param>
196 </repeat> 185 </repeat>
197
198 <!-- Filter Options --> 186 <!-- Filter Options -->
199 <section name="f" expanded="false" title="Filter Low Counts"> 187 <section name="f" expanded="false" title="Filter Low Counts">
200 <conditional name="filt"> 188 <conditional name="filt">
201 <param name="filt_select" type="select" label="Filter lowly expressed genes?" help="Treat genes with very low expression as unexpressed and filter out. See the Filter Low Counts section below for more information. Default: No"> 189 <param name="filt_select" type="select" label="Filter lowly expressed genes?" help="Treat genes with very low expression as unexpressed and filter out. See the Filter Low Counts section below for more information. Default: No">
202 <option value="no" selected="true">No</option> 190 <option value="no" selected="true">No</option>
208 <option value="cpm">CPM</option> 196 <option value="cpm">CPM</option>
209 <option value="counts">Counts</option> 197 <option value="counts">Counts</option>
210 </param> 198 </param>
211 <when value="cpm"> 199 <when value="cpm">
212 <param name="cpmReq" type="float" value="1" min="0" label="Minimum CPM" help="Treat genes with CPM below this value as unexpressed and filter out. See the Filter Low Counts section below for more information."/> 200 <param name="cpmReq" type="float" value="1" min="0" label="Minimum CPM" help="Treat genes with CPM below this value as unexpressed and filter out. See the Filter Low Counts section below for more information."/>
213 <param name="cpmSampleReq" type="integer" value="0" min="0" label="Minimum Samples" 201 <param name="cpmSampleReq" type="integer" value="0" min="0" label="Minimum Samples" help="Filter out all genes that do not meet the Minimum CPM in at least this many samples. See the Filter Low Counts section below for more information."/>
214 help="Filter out all genes that do not meet the Minimum CPM in at least this many samples. See the Filter Low Counts section below for more information."/>
215 </when> 202 </when>
216 <when value="counts"> 203 <when value="counts">
217 <param name="cntReq" type="integer" value="0" min="0" label="Minimum Count" help="Filter out all genes that do not meet this minimum count. You can choose below to apply this filter to the total count for all samples or specify the number of samples under Minimum Samples. See the Filter Low Counts section below for more information." /> 204 <param name="cntReq" type="integer" value="0" min="0" label="Minimum Count" help="Filter out all genes that do not meet this minimum count. You can choose below to apply this filter to the total count for all samples or specify the number of samples under Minimum Samples. See the Filter Low Counts section below for more information."/>
218 <conditional name="samples"> 205 <conditional name="samples">
219 <param name="count_select" type="select" label="Filter on Total Count or per Sample Count values?" > 206 <param name="count_select" type="select" label="Filter on Total Count or per Sample Count values?">
220 <option value="total">Total</option> 207 <option value="total">Total</option>
221 <option value="sample">Sample</option> 208 <option value="sample">Sample</option>
222 </param> 209 </param>
223 <when value="total"/> 210 <when value="total"/>
224 <when value="sample"> 211 <when value="sample">
225 <param name="cntSampleReq" type="integer" value="0" min="0" label="Minimum Samples" 212 <param name="cntSampleReq" type="integer" value="0" min="0" label="Minimum Samples" help="Filter out all genes that do not meet the Minimum Count in at least this many samples. See the Filter Low Counts section below for more information."/>
226 help="Filter out all genes that do not meet the Minimum Count in at least this many samples. See the Filter Low Counts section below for more information."/>
227 </when> 213 </when>
228 </conditional> 214 </conditional>
229 </when> 215 </when>
230 </conditional> 216 </conditional>
231 </when> 217 </when>
232 <when value="no" /> 218 <when value="no"/>
233 </conditional> 219 </conditional>
234 </section> 220 </section>
235
236 <!-- Output Options --> 221 <!-- Output Options -->
237 <section name="out" expanded="false" title="Output Options"> 222 <section name="out" expanded="false" title="Output Options">
238 <param name="normCounts" type="boolean" truevalue="1" falsevalue="0" checked="false" 223 <param name="normCounts" type="boolean" truevalue="1" falsevalue="0" checked="false" label="Output Normalised Counts Table?" help="Output a file containing the normalised counts, these are in log2 counts per million (logCPM). Default: No">
239 label="Output Normalised Counts Table?"
240 help="Output a file containing the normalised counts, these are in log2 counts per million (logCPM). Default: No">
241 </param> 224 </param>
242 <param name="rscript" type="boolean" truevalue="True" falsevalue="False" checked="False" label="Output Rscript?" help="If this option is set to Yes, the Rscript used will be provided as a text file in the output. Default: No"/> 225 <param name="rscript" type="boolean" truevalue="True" falsevalue="False" checked="False" label="Output Rscript?" help="If this option is set to Yes, the Rscript used will be provided as a text file in the output. Default: No"/>
243 <param name="rdaOption" type="boolean" truevalue="1" falsevalue="0" checked="false" 226 <param name="rdaOption" type="boolean" truevalue="1" falsevalue="0" checked="false" label="Output RData file?" help="Output all the data used by R to construct the plots and tables, can be loaded into R. A link to the RData file will be provided in the HTML report. Default: No">
244 label="Output RData file?"
245 help="Output all the data used by R to construct the plots and tables, can be loaded into R. A link to the RData file will be provided in the HTML report. Default: No">
246 </param> 227 </param>
247 </section> 228 </section>
248
249 <!-- Advanced Options --> 229 <!-- Advanced Options -->
250 <section name="adv" expanded="false" title="Advanced Options"> 230 <section name="adv" expanded="false" title="Advanced Options">
251 <param name="lfc" type="float" value="0" min="0" 231 <param name="lfc" type="float" value="0" min="0" label="Minimum Log2 Fold Change" help="Genes above this threshold and below the p-value threshold are considered significant and highlighted in the MD plot. Default: 0."/>
252 label="Minimum Log2 Fold Change" 232 <param name="pVal" type="float" value="0.05" min="0" max="1" label="P-Value Adjusted Threshold" help="Genes below this threshold are considered significant and highlighted in the MD plot. If either BH(1995) or BY(2001) are selected then this value is a false-discovery-rate control. If Holm(1979) is selected then this is an adjusted p-value for family-wise error rate. Default: 0.05."/>
253 help="Genes above this threshold and below the p-value threshold are considered significant and highlighted in the MD plot. Default: 0."/>
254 <param name="pVal" type="float" value="0.05" min="0" max="1"
255 label="P-Value Adjusted Threshold"
256 help="Genes below this threshold are considered significant and highlighted in the MD plot. If either BH(1995) or BY(2001) are selected then this value is a false-discovery-rate control. If Holm(1979) is selected then this is an adjusted p-value for family-wise error rate. Default: 0.05."/>
257 <param name="pAdjust" type="select" label="P-Value Adjustment Method" help="Default: BH"> 233 <param name="pAdjust" type="select" label="P-Value Adjustment Method" help="Default: BH">
258 <option value="BH" selected="true">Benjamini and Hochberg (1995)</option> 234 <option value="BH" selected="true">Benjamini and Hochberg (1995)</option>
259 <option value="BY">Benjamini and Yekutieli (2001)</option> 235 <option value="BY">Benjamini and Yekutieli (2001)</option>
260 <option value="holm">Holm (1979)</option> 236 <option value="holm">Holm (1979)</option>
261 <option value="none">None</option> 237 <option value="none">None</option>
264 <option value="TMM" selected="true">TMM</option> 240 <option value="TMM" selected="true">TMM</option>
265 <option value="RLE">RLE</option> 241 <option value="RLE">RLE</option>
266 <option value="upperquartile">Upperquartile</option> 242 <option value="upperquartile">Upperquartile</option>
267 <option value="none">None (Don't normalise)</option> 243 <option value="none">None (Don't normalise)</option>
268 </param> 244 </param>
269 <param name="robOption" type="boolean" truevalue="1" falsevalue="0" checked="true" label="Use Robust Settings?" help="Using robust settings is usually recommended to protect against outlier genes. Default: Yes" /> 245 <param name="robOption" type="boolean" truevalue="1" falsevalue="0" checked="true" label="Use Robust Settings?" help="Using robust settings is usually recommended to protect against outlier genes. Default: Yes"/>
270 <param name="lrtOption" type="boolean" truevalue="1" falsevalue="0" checked="false" label="Use Likelihood Ratio Test?" help="Use likelihood ratio test instead of quasi-likelihood F-test. Default: No"/> 246 <param name="lrtOption" type="boolean" truevalue="1" falsevalue="0" checked="false" label="Use Likelihood Ratio Test?" help="Use likelihood ratio test instead of quasi-likelihood F-test. Default: No"/>
271 </section> 247 </section>
272
273 </inputs> 248 </inputs>
274
275 <outputs> 249 <outputs>
276 <data name="outReport" format="html" label="${tool.name} on ${on_string}: Report" /> 250 <data name="outReport" format="html" label="${tool.name} on ${on_string}: Report"/>
277 <collection name="outTables" type="list" label="${tool.name} on ${on_string}: Tables"> 251 <collection name="outTables" type="list" label="${tool.name} on ${on_string}: Tables">
278 <discover_datasets pattern="(?P&lt;name&gt;.+)\.tsv$" format="tabular" directory="output_dir" visible="false" /> 252 <discover_datasets pattern="(?P&lt;name&gt;.+)\.tsv$" format="tabular" directory="output_dir" visible="false"/>
279 </collection> 253 </collection>
280 <data name="rscript" format="txt" label="${tool.name} on ${on_string}: Rscript"> 254 <data name="rscript" format="txt" label="${tool.name} on ${on_string}: Rscript">
281 <filter>out['rscript']</filter> 255 <filter>out['rscript']</filter>
282 </data> 256 </data>
283 </outputs> 257 </outputs>
284
285 <tests> 258 <tests>
286 <!-- Ensure report is output --> 259 <!-- Ensure report is output -->
287 <test> 260 <test expect_num_outputs="2">
288 <param name="format" value="matrix" /> 261 <param name="format" value="matrix"/>
289 <param name="counts" value="matrix.txt" /> 262 <param name="counts" value="matrix.txt"/>
290 <repeat name="rep_factor"> 263 <repeat name="rep_factor">
291 <param name="factorName" value="Genotype"/> 264 <param name="factorName" value="Genotype"/>
292 <param name="groupNames" value="Mut,Mut,Mut,WT,WT,WT" /> 265 <param name="groupNames" value="Mut,Mut,Mut,WT,WT,WT"/>
293 </repeat> 266 </repeat>
294 <repeat name="rep_contrast"> 267 <repeat name="rep_contrast">
295 <param name="contrast" value="Mut-WT" /> 268 <param name="contrast" value="Mut-WT"/>
296 </repeat> 269 </repeat>
297 <repeat name="rep_contrast"> 270 <repeat name="rep_contrast">
298 <param name="contrast" value="WT-Mut" /> 271 <param name="contrast" value="WT-Mut"/>
299 </repeat> 272 </repeat>
300 <param name="normalisationOption" value="TMM" /> 273 <param name="normalisationOption" value="TMM"/>
301 <output_collection name="outTables" count="2"> 274 <output_collection name="outTables" count="2">
302 <element name="edgeR_Mut-WT" ftype="tabular" > 275 <element name="edgeR_Mut-WT" ftype="tabular">
303 <assert_contents> 276 <assert_contents>
304 <has_text_matching expression="GeneID.*logFC.*logCPM.*F.*PValue.*FDR" /> 277 <has_text_matching expression="GeneID.*logFC.*logCPM.*F.*PValue.*FDR"/>
305 <has_text_matching expression="11304.*0.4582" /> 278 <has_text_matching expression="11304.*0.4582"/>
306 </assert_contents> 279 </assert_contents>
307 </element> 280 </element>
308 <element name="edgeR_WT-Mut" ftype="tabular" > 281 <element name="edgeR_WT-Mut" ftype="tabular">
309 <assert_contents> 282 <assert_contents>
310 <has_text_matching expression="GeneID.*logFC.*logCPM.*F.*PValue.*FDR" /> 283 <has_text_matching expression="GeneID.*logFC.*logCPM.*F.*PValue.*FDR"/>
311 <has_text_matching expression="11304.*-0.4582" /> 284 <has_text_matching expression="11304.*-0.4582"/>
312 </assert_contents> 285 </assert_contents>
313 </element> 286 </element>
314 </output_collection> 287 </output_collection>
315 <output name="outReport" > 288 <output name="outReport">
316 <assert_contents> 289 <assert_contents>
317 <has_text text="edgeR Analysis Output" /> 290 <has_text text="edgeR Analysis Output"/>
318 <has_text text="quasi-likelihood" /> 291 <has_text text="quasi-likelihood"/>
319 <not_has_text text="likelihood ratio" /> 292 <not_has_text text="likelihood ratio"/>
320 <not_has_text text="RData" /> 293 <not_has_text text="RData"/>
321 </assert_contents> 294 </assert_contents>
322 </output> 295 </output>
323 </test> 296 </test>
324 <!-- Complex contrasts constructions --> 297 <!-- Complex contrasts constructions -->
325 <test> 298 <test expect_num_outputs="2">
326 <param name="format" value="matrix" /> 299 <param name="format" value="matrix"/>
327 <param name="counts" value="matrix-complex.txt" /> 300 <param name="counts" value="matrix-complex.txt"/>
328 <repeat name="rep_factor"> 301 <repeat name="rep_factor">
329 <param name="factorName" value="Genotype"/> 302 <param name="factorName" value="Genotype"/>
330 <param name="groupNames" value="MutA,MutA,MutA,MutB,MutB,MutB,WTA,WTA,WTA,WTB,WTB,WTB" /> 303 <param name="groupNames" value="MutA,MutA,MutA,MutB,MutB,MutB,WTA,WTA,WTA,WTB,WTB,WTB"/>
331 </repeat> 304 </repeat>
332 <repeat name="rep_contrast"> 305 <repeat name="rep_contrast">
333 <param name="contrast" value="(MutA-MutB)-(WTA-WTB)" /> 306 <param name="contrast" value="(MutA-MutB)-(WTA-WTB)"/>
334 </repeat> 307 </repeat>
335 <param name="normalisationOption" value="TMM" /> 308 <param name="normalisationOption" value="TMM"/>
336 <output_collection name="outTables" count="1"> 309 <output_collection name="outTables" count="1">
337 <element name="edgeR_(MutA-MutB)-(WTA-WTB)" ftype="tabular" > 310 <element name="edgeR_(MutA-MutB)-(WTA-WTB)" ftype="tabular">
338 <assert_contents> 311 <assert_contents>
339 <has_text_matching expression="GeneID.*logFC.*logCPM.*F.*PValue.*FDR" /> 312 <has_text_matching expression="GeneID.*logFC.*logCPM.*F.*PValue.*FDR"/>
340 <has_text_matching expression="11304.*15.53" /> 313 <has_text_matching expression="11304.*15.53"/>
341 </assert_contents> 314 </assert_contents>
342 </element> 315 </element>
343 </output_collection> 316 </output_collection>
344 <output name="outReport" > 317 <output name="outReport">
345 <assert_contents> 318 <assert_contents>
346 <has_text text="edgeR Analysis Output" /> 319 <has_text text="edgeR Analysis Output"/>
347 <has_text text="quasi-likelihood" /> 320 <has_text text="quasi-likelihood"/>
348 <not_has_text text="likelihood ratio" /> 321 <not_has_text text="likelihood ratio"/>
349 <not_has_text text="RData" /> 322 <not_has_text text="RData"/>
350 </assert_contents> 323 </assert_contents>
351 </output> 324 </output>
352 </test> 325 </test>
353 <!-- Ensure annotation file input works --> 326 <!-- Ensure annotation file input works -->
354 <test> 327 <test expect_num_outputs="2">
355 <param name="format" value="matrix" /> 328 <param name="format" value="matrix"/>
356 <param name="annoOpt" value="yes" /> 329 <param name="annoOpt" value="yes"/>
357 <param name="geneanno" value="anno.txt" /> 330 <param name="geneanno" value="anno.txt"/>
358 <param name="counts" value="matrix.txt" /> 331 <param name="counts" value="matrix.txt"/>
359 <repeat name="rep_factor"> 332 <repeat name="rep_factor">
360 <param name="factorName" value="Genotype"/> 333 <param name="factorName" value="Genotype"/>
361 <param name="groupNames" value="Mut,Mut,Mut,WT,WT,WT" /> 334 <param name="groupNames" value="Mut,Mut,Mut,WT,WT,WT"/>
362 </repeat> 335 </repeat>
363 <repeat name="rep_contrast"> 336 <repeat name="rep_contrast">
364 <param name="contrast" value="Mut-WT" /> 337 <param name="contrast" value="Mut-WT"/>
365 </repeat> 338 </repeat>
366 <param name="normalisationOption" value="TMM" /> 339 <param name="normalisationOption" value="TMM"/>
367 <output_collection name="outTables" count="1"> 340 <output_collection name="outTables" count="1">
368 <element name="edgeR_Mut-WT" ftype="tabular" > 341 <element name="edgeR_Mut-WT" ftype="tabular">
369 <assert_contents> 342 <assert_contents>
370 <has_text_matching expression="EntrezID.*Symbol.*logFC.*logCPM.*F.*PValue.*FDR" /> 343 <has_text_matching expression="EntrezID.*Symbol.*logFC.*logCPM.*F.*PValue.*FDR"/>
371 <has_text_matching expression="11304.*Abca4.*0.4582" /> 344 <has_text_matching expression="11304.*Abca4.*0.4582"/>
372 </assert_contents> 345 </assert_contents>
373 </element> 346 </element>
374 </output_collection> 347 </output_collection>
375 </test> 348 </test>
376 <!-- Ensure RScript and RData file can be output --> 349 <!-- Ensure RScript and RData file can be output -->
377 <test> 350 <test expect_num_outputs="3">
378 <param name="format" value="matrix" /> 351 <param name="format" value="matrix"/>
379 <param name="rscript" value="True"/> 352 <param name="rscript" value="True"/>
380 <param name="rdaOption" value="true" /> 353 <param name="rdaOption" value="true"/>
381 <param name="counts" value="matrix.txt" /> 354 <param name="counts" value="matrix.txt"/>
382 <repeat name="rep_factor"> 355 <repeat name="rep_factor">
383 <param name="factorName" value="Genotype"/> 356 <param name="factorName" value="Genotype"/>
384 <param name="groupNames" value="Mut,Mut,Mut,WT,WT,WT" /> 357 <param name="groupNames" value="Mut,Mut,Mut,WT,WT,WT"/>
385 </repeat> 358 </repeat>
386 <repeat name="rep_contrast"> 359 <repeat name="rep_contrast">
387 <param name="contrast" value="Mut-WT" /> 360 <param name="contrast" value="Mut-WT"/>
388 </repeat> 361 </repeat>
389 <param name="normalisationOption" value="TMM" /> 362 <param name="normalisationOption" value="TMM"/>
390 <output name="outReport" > 363 <output name="outReport">
391 <assert_contents> 364 <assert_contents>
392 <has_text text="RData" /> 365 <has_text text="RData"/>
393 </assert_contents> 366 </assert_contents>
394 </output> 367 </output>
395 <output name="rscript"> 368 <output name="rscript">
396 <assert_contents> 369 <assert_contents>
397 <has_text_matching expression="Task run time" /> 370 <has_text_matching expression="Task run time"/>
398 </assert_contents> 371 </assert_contents>
399 </output> 372 </output>
400 </test> 373 </test>
401 <!-- Ensure secondary factors work --> 374 <!-- Ensure secondary factors work -->
402 <test> 375 <test expect_num_outputs="2">
403 <param name="format" value="matrix" /> 376 <param name="format" value="matrix"/>
404 <param name="counts" value="matrix.txt" /> 377 <param name="counts" value="matrix.txt"/>
405 <repeat name="rep_factor"> 378 <repeat name="rep_factor">
406 <param name="factorName" value="Genotype"/> 379 <param name="factorName" value="Genotype"/>
407 <param name="groupNames" value="Mut,Mut,Mut,WT,WT,WT" /> 380 <param name="groupNames" value="Mut,Mut,Mut,WT,WT,WT"/>
408 </repeat> 381 </repeat>
409 <repeat name="rep_factor"> 382 <repeat name="rep_factor">
410 <param name="factorName" value="Batch"/> 383 <param name="factorName" value="Batch"/>
411 <param name="groupNames" value="b1,b2,b3,b1,b2,b3"/> 384 <param name="groupNames" value="b1,b2,b3,b1,b2,b3"/>
412 </repeat> 385 </repeat>
413 <repeat name="rep_contrast"> 386 <repeat name="rep_contrast">
414 <param name="contrast" value="Mut-WT" /> 387 <param name="contrast" value="Mut-WT"/>
415 </repeat> 388 </repeat>
416 <param name="normalisationOption" value="TMM" /> 389 <param name="normalisationOption" value="TMM"/>
417 <output_collection name="outTables" count="1" > 390 <output_collection name="outTables" count="1">
418 <element name="edgeR_Mut-WT" ftype="tabular" > 391 <element name="edgeR_Mut-WT" ftype="tabular">
419 <assert_contents> 392 <assert_contents>
420 <has_text_matching expression="GeneID.*logFC.*logCPM.*F.*PValue.*FDR" /> 393 <has_text_matching expression="GeneID.*logFC.*logCPM.*F.*PValue.*FDR"/>
421 <has_text_matching expression="11304.*0.4584" /> 394 <has_text_matching expression="11304.*0.4584"/>
422 </assert_contents> 395 </assert_contents>
423 </element> 396 </element>
424 </output_collection> 397 </output_collection>
425 </test> 398 </test>
426 <!-- Ensure factors file with unordered samples works --> 399 <!-- Ensure factors file with unordered samples works -->
427 <test> 400 <test expect_num_outputs="2">
428 <param name="format" value="matrix" /> 401 <param name="format" value="matrix"/>
429 <param name="ffile" value="yes" /> 402 <param name="ffile" value="yes"/>
430 <param name="finfo" value="factorinfo.txt" /> 403 <param name="finfo" value="factorinfo.txt"/>
431 <param name="counts" value="matrix.txt" /> 404 <param name="counts" value="matrix.txt"/>
432 <repeat name="rep_contrast"> 405 <repeat name="rep_contrast">
433 <param name="contrast" value="Mut-WT" /> 406 <param name="contrast" value="Mut-WT"/>
434 </repeat> 407 </repeat>
435 <param name="normalisationOption" value="TMM" /> 408 <param name="normalisationOption" value="TMM"/>
436 <output_collection name="outTables" count="1"> 409 <output_collection name="outTables" count="1">
437 <element name="edgeR_Mut-WT" ftype="tabular" > 410 <element name="edgeR_Mut-WT" ftype="tabular">
438 <assert_contents> 411 <assert_contents>
439 <has_text_matching expression="GeneID.*logFC.*logCPM.*F.*PValue.*FDR" /> 412 <has_text_matching expression="GeneID.*logFC.*logCPM.*F.*PValue.*FDR"/>
440 <has_text_matching expression="11304.*0.4584" /> 413 <has_text_matching expression="11304.*0.4584"/>
441 </assert_contents> 414 </assert_contents>
442 </element> 415 </element>
443 </output_collection> 416 </output_collection>
444 </test> 417 </test>
445 <!-- Ensure normalised counts file output works--> 418 <!-- Ensure normalised counts file output works-->
446 <test> 419 <test expect_num_outputs="2">
447 <param name="format" value="matrix" /> 420 <param name="format" value="matrix"/>
448 <param name="normCounts" value="true" /> 421 <param name="normCounts" value="true"/>
449 <param name="counts" value="matrix.txt" /> 422 <param name="counts" value="matrix.txt"/>
450 <repeat name="rep_factor"> 423 <repeat name="rep_factor">
451 <param name="factorName" value="Genotype"/> 424 <param name="factorName" value="Genotype"/>
452 <param name="groupNames" value="Mut,Mut,Mut,WT,WT,WT" /> 425 <param name="groupNames" value="Mut,Mut,Mut,WT,WT,WT"/>
453 </repeat> 426 </repeat>
454 <repeat name="rep_contrast"> 427 <repeat name="rep_contrast">
455 <param name="contrast" value="Mut-WT" /> 428 <param name="contrast" value="Mut-WT"/>
456 </repeat> 429 </repeat>
457 <param name="normalisationOption" value="TMM" /> 430 <param name="normalisationOption" value="TMM"/>
458 <output_collection name="outTables" count="2"> 431 <output_collection name="outTables" count="2">
459 <element name="edgeR_Mut-WT" ftype="tabular" > 432 <element name="edgeR_Mut-WT" ftype="tabular">
460 <assert_contents> 433 <assert_contents>
461 <has_text_matching expression="GeneID.*logFC.*logCPM.*F.*PValue.*FDR" /> 434 <has_text_matching expression="GeneID.*logFC.*logCPM.*F.*PValue.*FDR"/>
462 <has_text_matching expression="11304.*0.4582" /> 435 <has_text_matching expression="11304.*0.4582"/>
463 </assert_contents> 436 </assert_contents>
464 </element> 437 </element>
465 <element name="edgeR_normcounts" ftype="tabular" > 438 <element name="edgeR_normcounts" ftype="tabular">
466 <assert_contents> 439 <assert_contents>
467 <has_text_matching expression="GeneID.*Mut1.*Mut2.*Mut3.*WT1.*WT2.*WT3" /> 440 <has_text_matching expression="GeneID.*Mut1.*Mut2.*Mut3.*WT1.*WT2.*WT3"/>
468 <has_text_matching expression="11304.*15.75" /> 441 <has_text_matching expression="11304.*15.75"/>
469 </assert_contents> 442 </assert_contents>
470 </element> 443 </element>
471 </output_collection> 444 </output_collection>
472 </test> 445 </test>
473 <!-- Ensure likelihood ratio option works --> 446 <!-- Ensure likelihood ratio option works -->
474 <test> 447 <test expect_num_outputs="2">
475 <param name="format" value="matrix" /> 448 <param name="format" value="matrix"/>
476 <param name="counts" value="matrix.txt" /> 449 <param name="counts" value="matrix.txt"/>
477 <repeat name="rep_factor"> 450 <repeat name="rep_factor">
478 <param name="factorName" value="Genotype"/> 451 <param name="factorName" value="Genotype"/>
479 <param name="groupNames" value="Mut,Mut,Mut,WT,WT,WT" /> 452 <param name="groupNames" value="Mut,Mut,Mut,WT,WT,WT"/>
480 </repeat> 453 </repeat>
481 <repeat name="rep_contrast"> 454 <repeat name="rep_contrast">
482 <param name="contrast" value="Mut-WT" /> 455 <param name="contrast" value="Mut-WT"/>
483 </repeat> 456 </repeat>
484 <param name="normalisationOption" value="TMM" /> 457 <param name="normalisationOption" value="TMM"/>
485 <param name="lrtOption" value="true" /> 458 <param name="lrtOption" value="true"/>
486 <output name="outReport" > 459 <output name="outReport">
487 <assert_contents> 460 <assert_contents>
488 <has_text text="likelihood ratio" /> 461 <has_text text="likelihood ratio"/>
489 <not_has_text text="quasi-likelihood" /> 462 <not_has_text text="quasi-likelihood"/>
490 </assert_contents> 463 </assert_contents>
491 </output> 464 </output>
492 </test> 465 </test>
493 <!-- Ensure multiple counts files input works --> 466 <!-- Ensure multiple counts files input works -->
494 <test> 467 <test expect_num_outputs="2">
495 <param name="format" value="files" /> 468 <param name="format" value="files"/>
496 <repeat name="rep_factor"> 469 <repeat name="rep_factor">
497 <param name="factorName" value="Genotype"/> 470 <param name="factorName" value="Genotype"/>
498 <repeat name="rep_group"> 471 <repeat name="rep_group">
499 <param name="groupName" value="WT"/> 472 <param name="groupName" value="WT"/>
500 <param name="countsFile" value="WT1.counts,WT2.counts,WT3.counts"/> 473 <param name="countsFile" value="WT1.counts,WT2.counts,WT3.counts"/>
517 <repeat name="rep_group"> 490 <repeat name="rep_group">
518 <param name="groupName" value="b3"/> 491 <param name="groupName" value="b3"/>
519 <param name="countsFile" value="WT3.counts,Mut3.counts"/> 492 <param name="countsFile" value="WT3.counts,Mut3.counts"/>
520 </repeat> 493 </repeat>
521 </repeat> 494 </repeat>
522 <param name="annoOpt" value="yes" /> 495 <param name="annoOpt" value="yes"/>
523 <param name="geneanno" value="anno.txt" /> 496 <param name="geneanno" value="anno.txt"/>
524 <repeat name="rep_contrast"> 497 <repeat name="rep_contrast">
525 <param name="contrast" value="Mut-WT" /> 498 <param name="contrast" value="Mut-WT"/>
526 </repeat> 499 </repeat>
527 <repeat name="rep_contrast"> 500 <repeat name="rep_contrast">
528 <param name="contrast" value="WT-Mut" /> 501 <param name="contrast" value="WT-Mut"/>
529 </repeat> 502 </repeat>
530 <param name="normCounts" value="true" /> 503 <param name="normCounts" value="true"/>
531 <output_collection name="outTables" count="3"> 504 <output_collection name="outTables" count="3">
532 <element name="edgeR_Mut-WT" ftype="tabular" > 505 <element name="edgeR_Mut-WT" ftype="tabular">
533 <assert_contents> 506 <assert_contents>
534 <has_text_matching expression="EntrezID.*Symbol.*logFC.*logCPM.*F.*PValue.*FDR" /> 507 <has_text_matching expression="EntrezID.*Symbol.*logFC.*logCPM.*F.*PValue.*FDR"/>
535 <has_text_matching expression="11304.*Abca4.*0.4584" /> 508 <has_text_matching expression="11304.*Abca4.*0.4584"/>
536 </assert_contents> 509 </assert_contents>
537 </element> 510 </element>
538 <element name="edgeR_WT-Mut" ftype="tabular" > 511 <element name="edgeR_WT-Mut" ftype="tabular">
539 <assert_contents> 512 <assert_contents>
540 <has_text_matching expression="logFC.*logCPM.*F.*PValue.*FDR" /> 513 <has_text_matching expression="logFC.*logCPM.*F.*PValue.*FDR"/>
541 <has_text_matching expression="11304.*Abca4.*-0.4584" /> 514 <has_text_matching expression="11304.*Abca4.*-0.4584"/>
542 </assert_contents> 515 </assert_contents>
543 </element> 516 </element>
544 <element name="edgeR_normcounts" ftype="tabular" > 517 <element name="edgeR_normcounts" ftype="tabular">
545 <assert_contents> 518 <assert_contents>
546 <has_text_matching expression="Mut1.*Mut2.*Mut3.*WT1.*WT2.*WT3" /> 519 <has_text_matching expression="Mut1.*Mut2.*Mut3.*WT1.*WT2.*WT3"/>
547 <has_text_matching expression="11304.*Abca4.*15.75" /> 520 <has_text_matching expression="11304.*Abca4.*15.75"/>
548 </assert_contents> 521 </assert_contents>
549 </element> 522 </element>
550 </output_collection> 523 </output_collection>
551 </test> 524 </test>
552 <!-- Ensure filtering on CPM in Mnimum Samples works --> 525 <!-- Ensure filtering on CPM in Mnimum Samples works -->
553 <test> 526 <test expect_num_outputs="2">
554 <param name="format" value="matrix" /> 527 <param name="format" value="matrix"/>
555 <param name="counts" value="matrix.txt" /> 528 <param name="counts" value="matrix.txt"/>
556 <repeat name="rep_factor"> 529 <repeat name="rep_factor">
557 <param name="factorName" value="Genotype"/> 530 <param name="factorName" value="Genotype"/>
558 <param name="groupNames" value="Mut,Mut,Mut,WT,WT,WT" /> 531 <param name="groupNames" value="Mut,Mut,Mut,WT,WT,WT"/>
559 </repeat> 532 </repeat>
560 <repeat name="rep_contrast"> 533 <repeat name="rep_contrast">
561 <param name="contrast" value="Mut-WT" /> 534 <param name="contrast" value="Mut-WT"/>
562 </repeat> 535 </repeat>
563 <param name="normalisationOption" value="TMM" /> 536 <param name="normalisationOption" value="TMM"/>
564 <param name="filt_select" value="yes" /> 537 <param name="filt_select" value="yes"/>
565 <param name="format_select" value="cpm" /> 538 <param name="format_select" value="cpm"/>
566 <!-- real cpmReq values would be a lot lower 539 <!-- real cpmReq values would be a lot lower
567 this is just for this tiny test dataset --> 540 this is just for this tiny test dataset -->
568 <param name="cpmReq" value="1000" /> 541 <param name="cpmReq" value="1000"/>
569 <param name="cpmSampleReq" value="3" /> 542 <param name="cpmSampleReq" value="3"/>
570 <output name="outReport" > 543 <output name="outReport">
571 <assert_contents> 544 <assert_contents>
572 <has_text text="CPM in at least" /> 545 <has_text text="CPM in at least"/>
573 <not_has_text text="after summing counts for all samples" /> 546 <not_has_text text="after summing counts for all samples"/>
574 <not_has_text text="counts in at least" /> 547 <not_has_text text="counts in at least"/>
575 </assert_contents> 548 </assert_contents>
576 </output> 549 </output>
577 <output_collection name="outTables" count="1" > 550 <output_collection name="outTables" count="1">
578 <element name="edgeR_Mut-WT" ftype="tabular" > 551 <element name="edgeR_Mut-WT" ftype="tabular">
579 <assert_contents> 552 <assert_contents>
580 <has_text_matching expression="GeneID.*logFC.*logCPM.*F.*PValue.*FDR" /> 553 <has_text_matching expression="GeneID.*logFC.*logCPM.*F.*PValue.*FDR"/>
581 <has_text_matching expression="11304.*0.4568" /> 554 <has_text_matching expression="11304.*0.4568"/>
582 <not_has_text text="-0.0682" /> 555 <not_has_text text="-0.0682"/>
583 </assert_contents> 556 </assert_contents>
584 </element> 557 </element>
585 </output_collection> 558 </output_collection>
586 </test> 559 </test>
587 <!-- Ensure filtering on Count in Minmum Samples works --> 560 <!-- Ensure filtering on Count in Minmum Samples works -->
588 <test> 561 <test expect_num_outputs="2">
589 <param name="format" value="matrix" /> 562 <param name="format" value="matrix"/>
590 <param name="counts" value="matrix.txt" /> 563 <param name="counts" value="matrix.txt"/>
591 <repeat name="rep_factor"> 564 <repeat name="rep_factor">
592 <param name="factorName" value="Genotype"/> 565 <param name="factorName" value="Genotype"/>
593 <param name="groupNames" value="Mut,Mut,Mut,WT,WT,WT" /> 566 <param name="groupNames" value="Mut,Mut,Mut,WT,WT,WT"/>
594 </repeat> 567 </repeat>
595 <repeat name="rep_contrast"> 568 <repeat name="rep_contrast">
596 <param name="contrast" value="Mut-WT" /> 569 <param name="contrast" value="Mut-WT"/>
597 </repeat> 570 </repeat>
598 <param name="normalisationOption" value="TMM" /> 571 <param name="normalisationOption" value="TMM"/>
599 <param name="filt_select" value="yes" /> 572 <param name="filt_select" value="yes"/>
600 <param name="format_select" value="counts" /> 573 <param name="format_select" value="counts"/>
601 <param name="cntReq" value="10" /> 574 <param name="cntReq" value="10"/>
602 <param name="count_select" value="sample" /> 575 <param name="count_select" value="sample"/>
603 <param name="cntSampleReq" value="3" /> 576 <param name="cntSampleReq" value="3"/>
604 <output name="outReport" > 577 <output name="outReport">
605 <assert_contents> 578 <assert_contents>
606 <has_text text="counts in at least" /> 579 <has_text text="counts in at least"/>
607 <not_has_text text="after summing counts for all samples" /> 580 <not_has_text text="after summing counts for all samples"/>
608 <not_has_text text="CPM in at least" /> 581 <not_has_text text="CPM in at least"/>
609 </assert_contents> 582 </assert_contents>
610 </output> 583 </output>
611 <output_collection name="outTables" count="1" > 584 <output_collection name="outTables" count="1">
612 <element name="edgeR_Mut-WT" ftype="tabular" > 585 <element name="edgeR_Mut-WT" ftype="tabular">
613 <assert_contents> 586 <assert_contents>
614 <has_text_matching expression="GeneID.*logFC.*logCPM.*F.*PValue.*FDR" /> 587 <has_text_matching expression="GeneID.*logFC.*logCPM.*F.*PValue.*FDR"/>
615 <has_text_matching expression="11304.*0.4568" /> 588 <has_text_matching expression="11304.*0.4568"/>
616 <not_has_text text="-0.0682" /> 589 <not_has_text text="-0.0682"/>
617 </assert_contents> 590 </assert_contents>
618 </element> 591 </element>
619
620 </output_collection> 592 </output_collection>
621 </test> 593 </test>
622 <!-- Ensure filtering on Total Count works --> 594 <!-- Ensure filtering on Total Count works -->
623 <test> 595 <test expect_num_outputs="2">
624 <param name="format" value="matrix" /> 596 <param name="format" value="matrix"/>
625 <param name="counts" value="matrix.txt" /> 597 <param name="counts" value="matrix.txt"/>
626 <repeat name="rep_factor"> 598 <repeat name="rep_factor">
627 <param name="factorName" value="Genotype"/> 599 <param name="factorName" value="Genotype"/>
628 <param name="groupNames" value="Mut,Mut,Mut,WT,WT,WT" /> 600 <param name="groupNames" value="Mut,Mut,Mut,WT,WT,WT"/>
629 </repeat> 601 </repeat>
630 <repeat name="rep_contrast"> 602 <repeat name="rep_contrast">
631 <param name="contrast" value="Mut-WT" /> 603 <param name="contrast" value="Mut-WT"/>
632 </repeat> 604 </repeat>
633 <param name="normalisationOption" value="TMM" /> 605 <param name="normalisationOption" value="TMM"/>
634 <param name="filt_select" value="yes" /> 606 <param name="filt_select" value="yes"/>
635 <param name="format_select" value="counts" /> 607 <param name="format_select" value="counts"/>
636 <!-- real cntReq values would be a lot lower 608 <!-- real cntReq values would be a lot lower
637 this is just for this tiny test dataset --> 609 this is just for this tiny test dataset -->
638 <param name="cntReq" value="1000" /> 610 <param name="cntReq" value="1000"/>
639 <param name="count_select" value="total" /> 611 <param name="count_select" value="total"/>
640 <param name="totReq" value="true" /> 612 <output name="outReport">
641 <output name="outReport" >
642 <assert_contents> 613 <assert_contents>
643 <has_text text="after summing counts for all samples" /> 614 <has_text text="after summing counts for all samples"/>
644 <not_has_text text="counts in at least" /> 615 <not_has_text text="counts in at least"/>
645 <not_has_text text="CPM in at least" /> 616 <not_has_text text="CPM in at least"/>
646 </assert_contents> 617 </assert_contents>
647 </output> 618 </output>
648 <output_collection name="outTables" count="1" > 619 <output_collection name="outTables" count="1">
649 <element name="edgeR_Mut-WT" ftype="tabular" > 620 <element name="edgeR_Mut-WT" ftype="tabular">
650 <assert_contents> 621 <assert_contents>
651 <has_text_matching expression="GeneID.*logFC.*logCPM.*F.*PValue.*FDR" /> 622 <has_text_matching expression="GeneID.*logFC.*logCPM.*F.*PValue.*FDR"/>
652 <has_text_matching expression="11304.*0.4568" /> 623 <has_text_matching expression="11304.*0.4568"/>
653 <not_has_text text="-0.0682" /> 624 <not_has_text text="-0.0682"/>
654 </assert_contents> 625 </assert_contents>
655 </element> 626 </element>
656 </output_collection> 627 </output_collection>
657 </test> 628 </test>
658 </tests> 629 </tests>
659
660 <help><![CDATA[ 630 <help><![CDATA[
661 .. class:: infomark 631 .. class:: infomark
662 632
663 **What it does** 633 **What it does**
664 634