3
|
1 <tool id="DESeq_results" name="DESeq2: Results" version="1.0.0">
|
|
2 <requirements>
|
|
3 <requirement type="package" version="1.14.1">bioconductor-deseq2</requirement>
|
|
4 <requirement type="package" version="1.20.0">r-getopt</requirement>
|
|
5 <requirement type="package" version="1.2">r-rmarkdown</requirement>
|
|
6 <requirement type="package" version="1.8.4">r-plyr</requirement>
|
|
7 <requirement type="package" version="1.1.0">r-stringr</requirement>
|
|
8 <requirement type="package" version="0.4.0">r-highcharter</requirement>
|
|
9 <requirement type="package" version="0.2">r-dt</requirement>
|
|
10 <requirement type="package" version="1.4.2">r-reshape2</requirement>
|
|
11 <requirement type="package" version="4.5.6">r-plotly</requirement>
|
|
12 <requirement type="package" version="0.2.0.1">r-formattable</requirement>
|
|
13 <requirement type="package" version="0.3.5">r-htmltools</requirement>
|
|
14 </requirements>
|
|
15 <description>
|
|
16 An R Markdown tool to display DESeq analysis.
|
|
17 </description>
|
|
18 <stdio>
|
|
19 <regex match="Execution halted"
|
|
20 source="both"
|
|
21 level="fatal"
|
|
22 description="Execution halted." />
|
|
23 <regex match="Error in"
|
|
24 source="both"
|
|
25 level="fatal"
|
|
26 description="An undefined error occured, please check your intput carefully and contact your administrator." />
|
|
27 <regex match="Fatal error"
|
|
28 source="both"
|
|
29 level="fatal"
|
|
30 description="An undefined error occured, please check your intput carefully and contact your administrator." />
|
|
31 </stdio>
|
|
32 <command>
|
|
33 <![CDATA[
|
|
34
|
|
35 Rscript '${__tool_directory__}/DESeq_results_render.R'
|
|
36
|
|
37 ## 1. input data
|
|
38 -e $echo
|
|
39 -w $deseq_workspace
|
|
40 -c "$contrast_group"
|
|
41 -t $treatment
|
|
42 -k $condition
|
|
43
|
|
44 #set $groups = []
|
|
45 #for $c_group in $clustering_groups
|
|
46 #if str($c_group.group)
|
|
47 #set $groups = $groups + [str($c_group.group)]
|
|
48 #end if
|
|
49 #end for
|
|
50 #set $groups = ','.join($groups)
|
|
51 -m "$groups"
|
|
52
|
|
53 ## 2. output report and report site directory
|
|
54 -o $deseq_results
|
|
55 -d $deseq_results.files_path
|
|
56
|
|
57 ## 3. Rmd templates sitting in the tool directory
|
|
58
|
|
59 ## _site.yml and index.Rmd template files
|
|
60 -D '${__tool_directory__}/DESeq_results.Rmd'
|
|
61
|
|
62
|
|
63
|
|
64 ]]>
|
|
65 </command>
|
|
66 <inputs>
|
|
67 <param type="data" name="deseq_workspace" format="rdata" multiple="false" label="Workspace from tool DESeq2: DESeq" />
|
|
68 <param type="data" name="sample_table" format="tabular" multiple="false" label="Sample table file" />
|
|
69 <param type="data_column" name="contrast_group" data_ref="sample_table" use_header_names="true"
|
|
70 optional="false"
|
|
71 label="Group for result contrast"
|
|
72 help=""/>
|
|
73 <param type="text" name="treatment" label="Treatment level" />
|
|
74 <param type="text" name="condition" label="Condition level" />
|
|
75
|
|
76 <repeat name="clustering_groups" title="Gene clustering groups" min="1">
|
|
77 <param type="data_column" name="group" data_ref="sample_table" use_header_names="true"
|
|
78 optional="false"
|
|
79 label="A phenotype column from the sample table" />
|
|
80 </repeat>
|
|
81
|
|
82 <param type="boolean" name="echo" truevalue="TRUE" falsevalue="FALSE" checked="false" label="Display analysis code in report?" />
|
|
83 </inputs>
|
|
84 <outputs>
|
|
85 <data name="deseq_results" format="html" label="DESeq Results" />
|
|
86 </outputs>
|
|
87 </tool> |