annotate DESeq_results.xml @ 10:ec09fb119c67 draft

Uploaded
author mingchen0919
date Mon, 07 Aug 2017 18:26:39 -0400
parents 2633469383fe
children 143a71fa7fdb
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
ab57855151b1 Uploaded
mingchen0919
parents:
diff changeset
35 Rscript '${__tool_directory__}/DESeq_results_render.R'
ab57855151b1 Uploaded
mingchen0919
parents:
diff changeset
36
ab57855151b1 Uploaded
mingchen0919
parents:
diff changeset
37 ## 1. input data
ab57855151b1 Uploaded
mingchen0919
parents:
diff changeset
38 -e $echo
ab57855151b1 Uploaded
mingchen0919
parents:
diff changeset
39 -w $deseq_workspace
ab57855151b1 Uploaded
mingchen0919
parents:
diff changeset
40 -c "$contrast_group"
ab57855151b1 Uploaded
mingchen0919
parents:
diff changeset
41 -t $treatment
ab57855151b1 Uploaded
mingchen0919
parents:
diff changeset
42 -k $condition
ab57855151b1 Uploaded
mingchen0919
parents:
diff changeset
43
ab57855151b1 Uploaded
mingchen0919
parents:
diff changeset
44 #set $groups = []
ab57855151b1 Uploaded
mingchen0919
parents:
diff changeset
45 #for $c_group in $clustering_groups
ab57855151b1 Uploaded
mingchen0919
parents:
diff changeset
46 #if str($c_group.group)
ab57855151b1 Uploaded
mingchen0919
parents:
diff changeset
47 #set $groups = $groups + [str($c_group.group)]
ab57855151b1 Uploaded
mingchen0919
parents:
diff changeset
48 #end if
ab57855151b1 Uploaded
mingchen0919
parents:
diff changeset
49 #end for
ab57855151b1 Uploaded
mingchen0919
parents:
diff changeset
50 #set $groups = ','.join($groups)
ab57855151b1 Uploaded
mingchen0919
parents:
diff changeset
51 -m "$groups"
ab57855151b1 Uploaded
mingchen0919
parents:
diff changeset
52
ab57855151b1 Uploaded
mingchen0919
parents:
diff changeset
53 ## 2. output report and report site directory
ab57855151b1 Uploaded
mingchen0919
parents:
diff changeset
54 -o $deseq_results
ab57855151b1 Uploaded
mingchen0919
parents:
diff changeset
55 -d $deseq_results.files_path
ab57855151b1 Uploaded
mingchen0919
parents:
diff changeset
56
ab57855151b1 Uploaded
mingchen0919
parents:
diff changeset
57 ## 3. Rmd templates sitting in the tool directory
ab57855151b1 Uploaded
mingchen0919
parents:
diff changeset
58
ab57855151b1 Uploaded
mingchen0919
parents:
diff changeset
59 ## _site.yml and index.Rmd template files
ab57855151b1 Uploaded
mingchen0919
parents:
diff changeset
60 -D '${__tool_directory__}/DESeq_results.Rmd'
ab57855151b1 Uploaded
mingchen0919
parents:
diff changeset
61
ab57855151b1 Uploaded
mingchen0919
parents:
diff changeset
62
ab57855151b1 Uploaded
mingchen0919
parents:
diff changeset
63
ab57855151b1 Uploaded
mingchen0919
parents:
diff changeset
64 ]]>
ab57855151b1 Uploaded
mingchen0919
parents:
diff changeset
65 </command>
ab57855151b1 Uploaded
mingchen0919
parents:
diff changeset
66 <inputs>
ab57855151b1 Uploaded
mingchen0919
parents:
diff changeset
67 <param type="data" name="deseq_workspace" format="rdata" multiple="false" label="Workspace from tool DESeq2: DESeq" />
ab57855151b1 Uploaded
mingchen0919
parents:
diff changeset
68 <param type="data" name="sample_table" format="tabular" multiple="false" label="Sample table file" />
ab57855151b1 Uploaded
mingchen0919
parents:
diff changeset
69 <param type="data_column" name="contrast_group" data_ref="sample_table" use_header_names="true"
ab57855151b1 Uploaded
mingchen0919
parents:
diff changeset
70 optional="false"
ab57855151b1 Uploaded
mingchen0919
parents:
diff changeset
71 label="Group for result contrast"
ab57855151b1 Uploaded
mingchen0919
parents:
diff changeset
72 help=""/>
ab57855151b1 Uploaded
mingchen0919
parents:
diff changeset
73 <param type="text" name="treatment" label="Treatment level" />
ab57855151b1 Uploaded
mingchen0919
parents:
diff changeset
74 <param type="text" name="condition" label="Condition level" />
ab57855151b1 Uploaded
mingchen0919
parents:
diff changeset
75
ab57855151b1 Uploaded
mingchen0919
parents:
diff changeset
76 <repeat name="clustering_groups" title="Gene clustering groups" min="1">
ab57855151b1 Uploaded
mingchen0919
parents:
diff changeset
77 <param type="data_column" name="group" data_ref="sample_table" use_header_names="true"
ab57855151b1 Uploaded
mingchen0919
parents:
diff changeset
78 optional="false"
ab57855151b1 Uploaded
mingchen0919
parents:
diff changeset
79 label="A phenotype column from the sample table" />
ab57855151b1 Uploaded
mingchen0919
parents:
diff changeset
80 </repeat>
ab57855151b1 Uploaded
mingchen0919
parents:
diff changeset
81
ab57855151b1 Uploaded
mingchen0919
parents:
diff changeset
82 <param type="boolean" name="echo" truevalue="TRUE" falsevalue="FALSE" checked="false" label="Display analysis code in report?" />
ab57855151b1 Uploaded
mingchen0919
parents:
diff changeset
83 </inputs>
ab57855151b1 Uploaded
mingchen0919
parents:
diff changeset
84 <outputs>
ab57855151b1 Uploaded
mingchen0919
parents:
diff changeset
85 <data name="deseq_results" format="html" label="DESeq Results" />
ab57855151b1 Uploaded
mingchen0919
parents:
diff changeset
86 </outputs>
ab57855151b1 Uploaded
mingchen0919
parents:
diff changeset
87 </tool>