annotate DESeq_results.xml @ 3:ab57855151b1 draft

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