comparison goseq.xml @ 3:783e8b70b047 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/goseq commit 46c4278d292ab4d76dc5f3f74c3109c3179be7ef
author iuc
date Mon, 24 Sep 2018 06:29:03 -0400
parents ab492df30cdf
children ae39895af5fe
comparison
equal deleted inserted replaced
2:ab492df30cdf 3:783e8b70b047
1 <tool id="goseq" name="goseq" version="1.26.0"> 1 <tool id="goseq" name="goseq" version="1.30.0">
2 <description>tests for overrepresented gene categories</description> 2 <description>tests for overrepresented gene categories</description>
3 <requirements> 3 <requirements>
4 <requirement type="package" version="1.3.2">r-optparse</requirement> 4 <requirement type="package" version="1.6.0">r-optparse</requirement>
5 <requirement type="package" version="1.26.0">bioconductor-goseq</requirement> 5 <requirement type="package" version="1.30.0">bioconductor-goseq</requirement>
6 <requirement type="package" version="3.3.0">bioconductor-org.hs.eg.db</requirement> 6 <requirement type="package" version="3.5.0">bioconductor-org.hs.eg.db</requirement>
7 <requirement type="package" version="3.4.0">bioconductor-org.dm.eg.db</requirement> 7 <requirement type="package" version="3.5.0">bioconductor-org.dm.eg.db</requirement>
8 <requirement type="package" version="3.4.1">bioconductor-org.dr.eg.db</requirement> 8 <requirement type="package" version="3.5.0">bioconductor-org.dr.eg.db</requirement>
9 <requirement type="package" version="3.4.0">bioconductor-org.mm.eg.db</requirement> 9 <requirement type="package" version="3.5.0">bioconductor-org.mm.eg.db</requirement>
10 <requirement type="package" version="0.7.6">r-dplyr</requirement>
11 <requirement type="package" version="3.0.0">r-ggplot2</requirement>
10 </requirements> 12 </requirements>
11 <stdio> 13 <stdio>
12 <regex match="Execution halted" 14 <regex match="Execution halted"
13 source="both" 15 source="both"
14 level="fatal" 16 level="fatal"
21 source="both" 23 source="both"
22 level="fatal" 24 level="fatal"
23 description="An undefined error occured, please check your input carefully and contact your administrator." /> 25 description="An undefined error occured, please check your input carefully and contact your administrator." />
24 </stdio> 26 </stdio>
25 <version_command><![CDATA[ 27 <version_command><![CDATA[
26 echo $(R --version | grep version | grep -v GNU)", goseq version" $(R --vanilla --slave -e "library(goseq); cat(sessionInfo()\$otherPkgs\$goseq\$Version)" 2> /dev/null | grep -v -i "WARNING: ")", optparse version" $(R --vanilla --slave -e "library(optparse); cat(sessionInfo()\$otherPkgs\$optparse\$Version)" 2> /dev/null | grep -v -i "WARNING: ")", org.Hs.eg.db version" $(R --vanilla --slave -e "library(org.Hs.eg.db); cat(sessionInfo()\$otherPkgs\$org.Hs.eg.db\$Version)" 2> /dev/null | grep -v -i "WARNING: ")", org.Dr.eg.db version" $(R --vanilla --slave -e "library(org.Dr.eg.db); cat(sessionInfo()\$otherPkgs\$org.Dr.eg.db\$Version)" 2> /dev/null | grep -v -i "WARNING: ")", org.Dm.eg.db version" $(R --vanilla --slave -e "library(org.Dm.eg.db); cat(sessionInfo()\$otherPkgs\$org.Dm.eg.db\$Version)" 2> /dev/null | grep -v -i "WARNING: ")", org.Mm.eg.db version" $(R --vanilla --slave -e "library(org.Mm.eg.db); cat(sessionInfo()\$otherPkgs\$org.Mm.eg.db\$Version)" 2> /dev/null | grep -v -i "WARNING: ") 28 echo $(R --version | grep version | grep -v GNU)", goseq version" $(R --vanilla --slave -e "library(goseq); cat(sessionInfo()\$otherPkgs\$goseq\$Version)" 2> /dev/null | grep -v -i "WARNING: ")", optparse version" $(R --vanilla --slave -e "library(optparse); cat(sessionInfo()\$otherPkgs\$optparse\$Version)" 2> /dev/null | grep -v -i "WARNING: ")", org.Hs.eg.db version" $(R --vanilla --slave -e "library(org.Hs.eg.db); cat(sessionInfo()\$otherPkgs\$org.Hs.eg.db\$Version)" 2> /dev/null | grep -v -i "WARNING: ")", org.Dr.eg.db version" $(R --vanilla --slave -e "library(org.Dr.eg.db); cat(sessionInfo()\$otherPkgs\$org.Dr.eg.db\$Version)" 2> /dev/null | grep -v -i "WARNING: ")", org.Dm.eg.db version" $(R --vanilla --slave -e "library(org.Dm.eg.db); cat(sessionInfo()\$otherPkgs\$org.Dm.eg.db\$Version)" 2> /dev/null | grep -v -i "WARNING: ")", org.Mm.eg.db version" $(R --vanilla --slave -e "library(org.Mm.eg.db); cat(sessionInfo()\$otherPkgs\$org.Mm.eg.db\$Version)" 2> /dev/null | grep -v -i "WARNING: ")", dplyr version" $(R --vanilla --slave -e "library(dplyr); cat(sessionInfo()\$otherPkgs\$dplyr\$Version)" 2> /dev/null | grep -v -i "WARNING: ")", ggplot2 version" $(R --vanilla --slave -e "library(ggplot2); cat(sessionInfo()\$otherPkgs\$ggplot2\$Version)" 2> /dev/null | grep -v -i "WARNING: ")
27 ]]></version_command> 29 ]]></version_command>
28 <command><![CDATA[ 30 <command><![CDATA[
29 Rscript '$__tool_directory__/goseq.r' 31 Rscript '$__tool_directory__/goseq.r'
30 32
31 --dge_file '$dge_file' 33 --dge_file '$dge_file'
49 --sampling_tab '$sampling_tab' 51 --sampling_tab '$sampling_tab'
50 52
51 --make_plots '$out.make_plots' 53 --make_plots '$out.make_plots'
52 --length_bias_plot '$length_bias_plot' 54 --length_bias_plot '$length_bias_plot'
53 --sample_vs_wallenius_plot '$sample_vs_wallenius_plot' 55 --sample_vs_wallenius_plot '$sample_vs_wallenius_plot'
56
54 --rdata '$out.rdata_out' 57 --rdata '$out.rdata_out'
55
56 --p_adj_method '$adv.p_adj_method' 58 --p_adj_method '$adv.p_adj_method'
57 --use_genes_without_cat '$adv.use_genes_without_cat' 59 --use_genes_without_cat '$adv.use_genes_without_cat'
60
61 #if $out.topgo_plot:
62 --top_plot '$out.topgo_plot'
63 #end if
58 64
59 ]]></command> 65 ]]></command>
60 66
61 <!-- Input Files--> 67 <!-- Input Files-->
62 <inputs> 68 <inputs>
98 <param name="repcnt" type="integer" size="3" min="0" max="10000" value="0" label="Sampling number" help="Number of random samples to be calculated when sampling is used. Set to 0 to not do sampling. Larger values take a long time. Default: 0" /> 104 <param name="repcnt" type="integer" size="3" min="0" max="10000" value="0" label="Sampling number" help="Number of random samples to be calculated when sampling is used. Set to 0 to not do sampling. Larger values take a long time. Default: 0" />
99 </section> 105 </section>
100 106
101 <!-- Output Options --> 107 <!-- Output Options -->
102 <section name="out" title="Output Options"> 108 <section name="out" title="Output Options">
109 <param name="topgo_plot" type="boolean" checked="false" label="Output Top GO terms plot?" help="Output a PDF plot of the Top 10 over-represented GO terms. Default: No" />
103 <param name="make_plots" type="boolean" checked="false" label="Produce diagnostic plots?" help="This will produce the length bias (PWF) plot. If both sampling and wallenius methods are selected, it will also produce a plot comparing their p-values. These plots may help you compare the different p-value estimation methods that goseq can use. Default: No" /> 110 <param name="make_plots" type="boolean" checked="false" label="Produce diagnostic plots?" help="This will produce the length bias (PWF) plot. If both sampling and wallenius methods are selected, it will also produce a plot comparing their p-values. These plots may help you compare the different p-value estimation methods that goseq can use. Default: No" />
104 <param name="rdata_out" type="boolean" checked="false" label="Output RData file?" help="Output all the data used by R to construct the tables and plots, can be loaded into R. Default: No" /> 111 <param name="rdata_out" type="boolean" checked="false" label="Output RData file?" help="Output all the data used by R to construct the tables and plots, can be loaded into R. Default: No" />
105 </section> 112 </section>
106 113
107 <!-- Advanced Options --> 114 <!-- Advanced Options -->
118 </section> 125 </section>
119 </inputs> 126 </inputs>
120 127
121 <outputs> 128 <outputs>
122 <data name="wallenius_tab" format="tabular" label="${tool.name} on ${on_string}: Ranked category list - Wallenius method"> 129 <data name="wallenius_tab" format="tabular" label="${tool.name} on ${on_string}: Ranked category list - Wallenius method">
123 <filter>methods['wallenius]'</filter> 130 <filter>methods['wallenius']</filter>
124 </data> 131 </data>
125 <data name="sampling_tab" format="tabular" label="${tool.name} on ${on_string}: Ranked category list - Sampling method"> 132 <data name="sampling_tab" format="tabular" label="${tool.name} on ${on_string}: Ranked category list - Sampling method">
126 <filter>methods['repcnt'] != 0</filter> 133 <filter>methods['repcnt'] != 0</filter>
127 </data> 134 </data>
128 <data name="nobias_tab" format="tabular" label="${tool.name} on ${on_string}: Ranked category list - Hypergeometric method"> 135 <data name="nobias_tab" format="tabular" label="${tool.name} on ${on_string}: Ranked category list - Hypergeometric method">
137 <filter>out['make_plots']</filter> 144 <filter>out['make_plots']</filter>
138 </data> 145 </data>
139 <data name="rdata" format="rdata" from_work_dir="goseq_analysis.RData" label="${tool.name} on ${on_string}: RData file"> 146 <data name="rdata" format="rdata" from_work_dir="goseq_analysis.RData" label="${tool.name} on ${on_string}: RData file">
140 <filter>out['rdata_out']</filter> 147 <filter>out['rdata_out']</filter>
141 </data> 148 </data>
149 <data name="top_plot" format="pdf" from_work_dir="top10.pdf" label="${tool.name} on ${on_string}: Top over-represented GO terms plot">
150 <filter>methods['wallenius']</filter>
151 <filter>out['topgo_plot']</filter>
152 </data>
142 </outputs> 153 </outputs>
143 154
144 <tests> 155 <tests>
156 <!-- Ensure top plot is output -->
157 <test expect_num_outputs="2">
158 <param name="dge_file" value="dge_list.tab" ftype="tabular" />
159 <param name="length_file" value="gene_length.tab" ftype="tabular" />
160 <param name="catSource" value="history" />
161 <param name="category_file" value="category.tab" ftype="tabular" />
162 <param name="use_genes_without_cat" value="true" />
163 <param name="topgo_plot" value="true" />
164 <output name="top_plot" ftype="pdf" file="topgo.pdf" compare="sim_size"/>
165 </test>
145 <!-- Ensure Wallenius table is output --> 166 <!-- Ensure Wallenius table is output -->
146 <test expect_num_outputs="1"> 167 <test expect_num_outputs="1">
147 <param name="dge_file" value="dge_list.tab" ftype="tabular" /> 168 <param name="dge_file" value="dge_list.tab" ftype="tabular" />
148 <param name="length_file" value="gene_length.tab" ftype="tabular" /> 169 <param name="length_file" value="gene_length.tab" ftype="tabular" />
149 <param name="catSource" value="history" /> 170 <param name="catSource" value="history" />
150 <param name="category_file" value="category.tab" ftype="tabular" /> 171 <param name="category_file" value="category.tab" ftype="tabular" />
151 <param name="use_genes_without_cat" value="true" /> 172 <param name="use_genes_without_cat" value="true" />
152 <output name="wallenius_tab" file="wal.tab" compare="contains" /> 173 <output name="wallenius_tab">
174 <assert_contents>
175 <has_text_matching expression="category.*over_represented_pvalue.*under_represented_pvalue.*numDEInCat.*numInCat.*term.*ontology.*p.adjust.over_represented.*p.adjust.under_represented" />
176 <has_text_matching expression="GO:0000278.*0.01" />
177 </assert_contents>
178 </output>
153 </test> 179 </test>
154 <!-- Ensure getting GO categories works --> 180 <!-- Ensure getting GO categories works -->
155 <test expect_num_outputs="1"> 181 <test expect_num_outputs="1">
156 <param name="dge_file" value="dge_list.tab" ftype="tabular"/> 182 <param name="dge_file" value="dge_list.tab" ftype="tabular"/>
157 <param name="length_file" value="gene_length.tab" ftype="tabular"/> 183 <param name="length_file" value="gene_length.tab" ftype="tabular"/>
158 <param name="catSource" value="getgo" /> 184 <param name="catSource" value="getgo" />
159 <param name="genome" value="hg38" /> 185 <param name="genome" value="hg38" />
160 <param name="gene_id" value="ensGene" /> 186 <param name="gene_id" value="ensGene" />
161 <param name="use_genes_without_cat" value="true" /> 187 <param name="use_genes_without_cat" value="true" />
162 <output name="wallenius_tab" ftype="tabular" file="getgo.hg38.tab" compare="contains"/> 188 <output name="wallenius_tab">
189 <assert_contents>
190 <has_text_matching expression="category.*over_represented_pvalue.*under_represented_pvalue.*numDEInCat.*numInCat.*term.*ontology.*p.adjust.over_represented.*p.adjust.under_represented" />
191 <has_text_matching expression="GO:0005576.*5.2" />
192 </assert_contents>
193 </output>
163 </test> 194 </test>
164 <!-- Ensure getting GO categories for another genome (zebrafish) works --> 195 <!-- Ensure getting GO categories for another genome (zebrafish) works -->
165 <test expect_num_outputs="1"> 196 <test expect_num_outputs="1">
166 <param name="dge_file" value="dge_list_zf.tab" ftype="tabular"/> 197 <param name="dge_file" value="dge_list_zf.tab" ftype="tabular"/>
167 <param name="length_file" value="gene_length_zf.tab" ftype="tabular"/> 198 <param name="length_file" value="gene_length_zf.tab" ftype="tabular"/>
168 <param name="catSource" value="getgo" /> 199 <param name="catSource" value="getgo" />
169 <param name="genome" value="danRer10"/> 200 <param name="genome" value="danRer10"/>
170 <param name="gene_id" value="ensGene" /> 201 <param name="gene_id" value="ensGene" />
171 <param name="use_genes_without_cat" value="true" /> 202 <param name="use_genes_without_cat" value="true" />
172 <output name="wallenius_tab" ftype="tabular" file="getgo.danRer10.tab" compare="contains"/> 203 <output name="wallenius_tab">
204 <assert_contents>
205 <has_text_matching expression="category.*over_represented_pvalue.*under_represented_pvalue.*numDEInCat.*numInCat.*term.*ontology.*p.adjust.over_represented.*p.adjust.under_represented" />
206 <has_text_matching expression="GO:0031324.*0.08" />
207 </assert_contents>
208 </output>
173 </test> 209 </test>
174 <!-- Ensure length bias plot works --> 210 <!-- Ensure length bias plot works -->
175 <test expect_num_outputs="2"> 211 <test expect_num_outputs="2">
176 <param name="dge_file" value="dge_list.tab" ftype="tabular" /> 212 <param name="dge_file" value="dge_list.tab" ftype="tabular" />
177 <param name="length_file" value="gene_length.tab" ftype="tabular" /> 213 <param name="length_file" value="gene_length.tab" ftype="tabular" />
275 ----- 311 -----
276 312
277 **Outputs** 313 **Outputs**
278 314
279 * This tool outputs a tabular file containing a ranked list of gene categories, similar to below. The default output is the Wallenius method table. If the Sampling and/or Hypergeometric methods are also selected, additional tables are produced. 315 * This tool outputs a tabular file containing a ranked list of gene categories, similar to below. The default output is the Wallenius method table. If the Sampling and/or Hypergeometric methods are also selected, additional tables are produced.
280 * Optionally, this tool can also output some diagnostic plots and an RData file, see **Output Options** above. 316 * Optionally, this tool can also output a plot of the top 10 over-represented categories, some diagnostic plots and an RData file, see **Output Options** above.
281 317
282 Example: 318 Example:
283 319
284 =========== =============== ================ ============ ========== ======================================== ========== =================== ==================== 320 =========== =============== ================ ============ ========== ======================================== ========== =================== ====================
285 *category* *over_rep_pval* *under_rep_pval* *numDEInCat* *numInCat* *term* *ontology* *p.adjust.over_rep* *p.adjust.under_rep* 321 *category* *over_rep_pval* *under_rep_pval* *numDEInCat* *numInCat* *term* *ontology* *p.adjust.over_rep* *p.adjust.under_rep*