annotate DESeq_visualization.xml @ 9:2633469383fe draft

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