3
|
1 <tool id="edgeR" name="Empirical analysis of digital gene expression data" version="0.0.1">
|
7
|
2 <description> - Estimates differential gene expression for short read sequence count using methods appropriate for count data</description>
|
6
|
3 <requirements>
|
|
4 <requirement type="R-module">edgeR</requirement>
|
|
5 <requirement type="R-module">limma</requirement>
|
|
6 </requirements>
|
3
|
7 <command interpreter="perl">
|
|
8 edgeR.pl -a $analysis_type.analysis -e $html_file.files_path -f $fdr -h $html_file -o $output
|
|
9 ## Pairwise comparisons
|
|
10 #if $analysis_type.analysis == "pw":
|
|
11 -r $analysis_type.rowsumfilter
|
|
12 #if $analysis_type.tagwise_disp.twd == "TRUE":
|
|
13 -p $analysis_type.tagwise_disp.twd_prop
|
|
14 -u $analysis_type.tagwise_disp.twd_trend
|
|
15 -t
|
|
16 #end if
|
|
17 ## GLM
|
|
18 #else if $analysis_type.analysis == "glm":
|
|
19 #if $analysis_type.exp.export_norm == "true":
|
|
20 -n $norm_exp
|
|
21 #end if
|
|
22 -d $analysis_type.disp
|
|
23 $analysis_type.cont_pw
|
|
24 #for $fct in $analysis_type.factors:
|
|
25 factor::${$fct.fact_name}::${$fct.fact}
|
|
26 #end for
|
|
27 #for $c in $analysis_type.cont_pred:
|
|
28 cp::${c.cp_name}::${c.cp}
|
|
29 #end for
|
|
30 #for $cnt in $analysis_type.contrasts:
|
|
31 "cnt::${cnt.add_cont}"
|
|
32 #end for
|
|
33 ## LIMMA
|
|
34 #else
|
|
35 #if $analysis_type.exp.export_norm == "true":
|
|
36 -n $norm_exp $analysis_type.exp.log
|
|
37 #end if
|
|
38 $analysis_type.cont_pw
|
|
39 #for $fct in $analysis_type.factors:
|
|
40 factor::${$fct.fact_name}::${$fct.fact}
|
|
41 #end for
|
|
42 #for $c in $analysis_type.cont_pred:
|
|
43 cp::${c.cp_name}::${c.cp}
|
|
44 #end for
|
|
45 #for $cnt in $analysis_type.contrasts:
|
|
46 "cnt::${cnt.add_cont}"
|
|
47 #end for
|
|
48 #end if
|
|
49 $matrix
|
|
50
|
|
51 </command>
|
|
52
|
|
53 <inputs>
|
|
54 <param name="matrix" type="data" format="tabular" label="Digital Expression Matrix"/>
|
|
55 <conditional name="analysis_type">
|
|
56 <param name="analysis" type="select" label="Type Of Analysis">
|
|
57 <option value="pw">Pairwise comparisons (1 Factor Analysis)</option>
|
|
58 <option value="glm" selected="true">Generalized Linear Models (Multiple Factor Analysis using GLM)</option>
|
|
59 <option value="limma">Linear Models for RNA-Seq (Multiple Factor Analysis using LIMMA)</option>
|
|
60 </param>
|
|
61 <when value="pw">
|
|
62 <param name="rowsumfilter" type="integer" value="5" label="Common Dispersion Rowsum Filter" help="Numeric scalar giving a value for the filtering out of low abundance tags in the estimation of the common dispersion. Only tags with total sum of counts above this value are used in the estimation of the common dispersion. Low abundance tags can adversely affect the estimation of the common dispersion, so this argument allows the user to select an appropriate filter threshold for the tag abundance."/>
|
|
63 <conditional name="tagwise_disp">
|
|
64 <param name="twd" type="select" label="Maximize the Negative Binomial Weighted Conditional Likelihood" help="Calculate and use an estimate of the dispersion parameter for each tag">
|
|
65 <option value="TRUE" selected="true">True</option>
|
|
66 <option value="FALSE">False</option>
|
|
67 </param>
|
|
68 <when value="TRUE">
|
|
69 <param name="twd_trend" type="select" label="Method for allowing the prior distribution for the dispersion to be abundance-dependent">
|
|
70 <option value="movingave" selected="true">Movingave</option>
|
|
71 <option value="tricube">Tricube</option>
|
|
72 <option value="none">None</option>
|
|
73 </param>
|
|
74 <param name="twd_prop" type="float" value="0.3" label="The proportion of all tags/genes to be used for the locally weighted estimation of the tagwise dispersion, allowing the dispersion estimates to vary with abundance (expression level)"/>
|
|
75 </when>
|
|
76 </conditional>
|
|
77 </when>
|
|
78 <when value="glm">
|
|
79 <param name="disp" type="select" label="Select The Dispersion Estimate To Use:">
|
|
80 <option value="common">Common Dispersion</option>
|
|
81 <option value="trend">Trended Dispersion</option>
|
|
82 <option value="tag" selected="true">Tagwise Dispersion</option>
|
|
83 </param>
|
|
84 <repeat name="factors" title="Factor">
|
|
85 <param name="fact_name" title="Factor Name" type="text" label="Name Of Factor (no spaces or commas)"/>
|
|
86 <param name="fact" title="Factor" type="text" size="100" label="The Level Of Each Sample Seperated By A Colon (no spaces or commas)"/>
|
|
87 </repeat>
|
|
88 <repeat name="cont_pred" title="Continuous Predictor">
|
|
89 <param name="cp_name" title="Continuous Predictor Name" type="text" label="Name Of Continuous Predictor (no spaces or commas)"/>
|
|
90 <param name="cp" title="Continuous Predictor" type="text" size="100" label="The Numerical Value For Each Sample Seperated By A Colon (no spaces or commas)"/>
|
|
91 </repeat>
|
|
92 <param name="cont_pw" type="boolean" truevalue="-m" falsevalue="" checked="True" label="Perform all pairwise comparisons" help="Include all pairwise comparisons in the contrast matrix."/>
|
|
93 <repeat name="contrasts" title="Contrast">
|
|
94 <param name="add_cont" title="Contrast" type="text" label="Enter the contrast of interest, e.g. (G1+G2)/2-G3 (no spaces or commas)"/>
|
|
95 </repeat>
|
|
96 <conditional name="exp">
|
|
97 <param name="export_norm" type="select" label="Save Normalised DGE Matrix">
|
|
98 <option value="true">Yes</option>
|
|
99 <option value="false">No</option>
|
|
100 </param>
|
|
101 </conditional>
|
|
102 </when>
|
|
103 <when value="limma">
|
|
104 <repeat name="factors" title="Factor">
|
|
105 <param name="fact_name" title="Factor Name" type="text" label="Name Of Factor (no spaces or commas)"/>
|
|
106 <param name="fact" title="Factor" type="text" size="100" label="The Level Of Each Sample Seperated By A Colon (no spaces or commas)"/>
|
|
107 </repeat>
|
|
108 <repeat name="cont_pred" title="Continuous Predictor">
|
|
109 <param name="cp_name" title="Continuous Predictor Name" type="text" label="Name Of Continuous Predictor (no spaces or commas)"/>
|
|
110 <param name="cp" title="Continuous Predictor" type="text" size="100" label="The Numerical Value For Each Sample Seperated By A Colon (no spaces or commas)"/>
|
|
111 </repeat>
|
|
112 <param name="cont_pw" type="boolean" truevalue="-m" falsevalue="" checked="True" label="Perform all pairwise comparisons" help="Include all pairwise comparisons in the contrast matrix."/>
|
|
113 <repeat name="contrasts" title="Contrast">
|
|
114 <param name="add_cont" title="Contrast" type="text" label="Enter the contrast of interest, e.g. (G1+G2)/2-G3 (no spaces or commas)"/>
|
|
115 </repeat>
|
|
116 <conditional name="exp">
|
|
117 <param name="export_norm" type="select" label="Save Normalised DGE Matrix">
|
|
118 <option value="true">Yes</option>
|
|
119 <option value="false">No</option>
|
|
120 </param>
|
|
121 <when value="true">
|
|
122 <param name="log" type="boolean" truevalue="-l" falsevalue="" checked="True" label="Export Normalised DGE Matrix in Log2" help="Selecting this will log base 2 transform the Normalised Digital Gene Expression Matrix."/>
|
|
123 </when>
|
|
124 </conditional>
|
|
125 </when>
|
|
126 </conditional>
|
|
127 <param name="fdr" type="select" label="False discovery rate adjustment method">
|
|
128 <option value="BH">Benjamini and Hochberg (1995)</option>
|
|
129 <option value="holm">Holm (1979)</option>
|
|
130 <option value="hochberg">Hochberg (1988)</option>
|
|
131 <option value="hommel">Hommel (1988)</option>
|
|
132 <option value="BY">Benjamini and Yekutieli (2001)</option>
|
|
133 <option value="none">None</option>
|
|
134 </param>
|
|
135 </inputs>
|
|
136
|
|
137 <outputs>
|
|
138 <data format="tabular" name="output" label="EdgeR analysis on ${matrix.name}"/>
|
|
139 <data name="html_file" format="html" label="EdgeR analysis plots for ${matrix.name}"/>
|
|
140 <data name="norm_exp" format="tabular" label="EdgeR Norm Expr Matrix for ${matrix.name}">
|
|
141 <filter>analysis_type[ "analysis" ] != "pw" and analysis_type[ "exp" ][ "export_norm" ] == "true"</filter>
|
|
142 </data>
|
|
143 </outputs>
|
|
144
|
|
145 <help>
|
|
146
|
|
147 .. class:: infomark
|
|
148
|
|
149 **What it does**
|
|
150
|
|
151 Estimates differential gene expression for short read sequence count using methods appropriate for count data.
|
|
152 If you have paired data you may also want to consider Tophat/Cufflinks.
|
|
153 Input must be raw count data for each sequence arranged in a rectangular matrix as a tabular file.
|
|
154 Note - no scaling - please make sure you have untransformed raw counts of reads for each sequence.
|
|
155
|
|
156 Performs digital differential gene expression analysis between groups (eg a treatment and control).
|
|
157 Biological replicates provide information about experimental variability required for reliable inference.
|
|
158
|
|
159 **What it does not do**
|
|
160 edgeR_ requires biological replicates.
|
|
161 Without replicates you can't account for known important experimental sources of variability that the approach implemented here requires.
|
|
162
|
7
|
163
|
3
|
164 **Input**
|
|
165 A count matrix containing sequence names as rows and sample specific counts of reads from this sequence as columns.
|
|
166 The matrix must have 2 header rows, the first indicating the group assignment and the second uniquely identifiying the samples. It must also contain a unique set of (eg Feature) names in the first column.
|
|
167
|
|
168 Example::
|
|
169
|
|
170 # G1:Mut G1:Mut G1:Mut G2:WT G2:WT G2:WT
|
|
171 #Feature Spl1 Spl2 Spl3 Spl4 Spl5 Spl6
|
|
172 NM_001001130 97 43 61 34 73 26
|
|
173 NM_001001144 25 8 9 3 5 5
|
|
174 NM_001001152 72 45 29 20 31 13
|
|
175 NM_001001160 0 1 1 1 0 0
|
|
176 NM_001001177 0 1 0 4 3 3
|
|
177 NM_001001178 0 2 1 0 4 0
|
|
178 NM_001001179 0 0 0 0 0 2
|
|
179 NM_001001180 0 0 0 0 0 2
|
|
180 NM_001001181 415 319 462 185 391 155
|
|
181 NM_001001182 1293 945 987 297 938 496
|
|
182 NM_001001183 5 4 11 7 11 2
|
|
183 NM_001001184 135 198 178 110 205 64
|
|
184 NM_001001185 186 1 0 1 1 0
|
|
185 NM_001001186 75 90 91 34 63 54
|
|
186 NM_001001187 267 236 170 165 202 51
|
|
187 NM_001001295 5 2 6 1 7 0
|
|
188 NM_001001309 1 0 0 1 2 1
|
|
189 ...
|
|
190
|
|
191
|
|
192 Please use the "Count reads in features with htseq-count" tool to generate the count matrix.
|
|
193
|
|
194 **Output**
|
|
195
|
|
196 A tabular file containing relative expression levels, statistical estimates of differential expression probability, R scripts, log, and some helpful diagnostic plots.
|
|
197
|
|
198 .. class:: infomark
|
|
199
|
|
200 **Attribution**
|
|
201 This tool wraps the edgeR_ Bioconductor package so all calculations and plots are controlled by that code. See edgeR_ for all documentation and appropriate attribution.
|
|
202 Recommended reference is Mark D. Robinson, Davis J. McCarthy, Gordon K. Smyth, PMCID: PMC2796818
|
|
203
|
|
204 .. class:: infomark
|
|
205
|
|
206 **Attribution**
|
|
207 When applying the LIMMA (Linear models for RNA-Seq) anlysis the tool also makes use of the limma_ Bioconductor package.
|
|
208 Recommended reference is Smyth, G. K. (2005). Limma: linear models for microarray data. In: 'Bioinformatics and Computational Biology Solutions using R and Bioconductor'. R. Gentleman, V. Carey, S. Dudoit, R. Irizarry, W. Huber (eds), Springer, New York, pages 397--420.
|
|
209
|
|
210 .. _edgeR: http://www.bioconductor.org/packages/release/bioc/html/edgeR.html
|
|
211 .. _limma: http://www.bioconductor.org/packages/release/bioc/html/limma.html
|
|
212
|
7
|
213
|
3
|
214 </help>
|
|
215
|
|
216 </tool>
|