annotate cummerbund_wrapper.xml @ 0:da7241f92ecf

Uploaded
author jjohnson
date Mon, 04 Feb 2013 19:50:25 -0500
parents
children fdf01b3c1841
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
1 <tool id="cummerbund" name="cummeRbund" version="0.0.6">
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
2
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
3 <description>R package designed to aid and simplify the task of analyzing Cufflinks RNA-Seq output</description>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
4
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
5 <command interpreter="python">
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
6 cummerbund_wrapper.py
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
7 --r-script ${script_file}
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
8 --html-report-from-directory "${output_html}" "${output_html.files_path}"
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
9 </command>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
10
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
11 <inputs>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
12 <conditional name="backend_database_source">
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
13 <param name="backend_database_selector" type="select" label="Will you select a backend database file from the history or do you want to build a new one using cuffdiff output?">
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
14 <option value="history" selected="true">Use backend database from the history</option>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
15 <option value="cuffdiff_output">Build backend database using cuffdiff output</option>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
16 </param>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
17 <when value="cuffdiff_output">
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
18 <param format="tabular" name="isoforms_fpkm_tracking" type="data" label="Transcript FPKM tracking"/>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
19 <param format="tabular" name="isoforms_exp" type="data" label="Transcript differential expression testing"/>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
20 <param format="tabular" name="genes_fpkm_tracking" type="data" label="Gene FPKM tracking"/>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
21 <param format="tabular" name="genes_exp" type="data" label="Gene differential expression testing"/>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
22 <param format="tabular" name="tss_groups_fpkm_tracking" type="data" label="TSS groups FPKM tracking"/>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
23 <param format="tabular" name="tss_groups_exp" type="data" label="TSS groups differential expression testing"/>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
24 <param format="tabular" name="cds_fpkm_tracking" type="data" label="CDS FPKM tracking"/>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
25 <param format="tabular" name="cds_exp_diff" type="data" label="CDS FPKM differential expression testing"/>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
26 <param format="tabular" name="cds_diff" type="data" label="CDS overloading diffential expression testing"/>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
27 <param format="tabular" name="promoters_diff" type="data" label="Promoters differential expression testing"/>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
28 <param format="tabular" name="splicing_diff" type="data" label="Splicing differential expression testing"/>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
29 <param name="rebuild" type="hidden" value="TRUE"/>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
30 </when>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
31 <when value="history">
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
32 <param name="input_database" type="data" format="cuffdatadb" label="Select backend database (sqlite)"/>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
33 </when>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
34 </conditional>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
35 <repeat name="plots" title="Plots">
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
36 <param name="width" type="text" value="1280" label="The width of the image"/>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
37 <param name="height" type="text" value="960" label="The height of the image"/>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
38 <conditional name="plot">
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
39 <param name="type" type="select" label="Plot type">
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
40 <option value="density" selected="true">Density</option>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
41 <option value="dispersion">Dispersion</option>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
42 <option value="fpkmSCV">Squared Coefficient of Variation</option>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
43 <option value="scatterMatrix">Scatter Matrix</option>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
44 <option value="boxplot">Boxplot</option>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
45 <option value="scatter">Scatter</option>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
46 <option value="volcano">Volcano</option>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
47 <option value="heatmap">Heatmap</option>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
48 <option value="cluster">Cluster</option>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
49 <option value="expressionplot">Expression Plot</option>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
50 <option value="expressionbarplot">Expression Bar Plot</option>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
51 <option value="mds">MultiDimentional Scaling (MDS) Plot</option>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
52 <option value="pca">Principal Component Analysis (PCA) Plot</option>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
53 <option value="maplot">Intensity vs Fold-change (MvaA) Plot</option>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
54 <option value="dendrogram">Dendrogram</option>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
55 </param>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
56 <when value="density">
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
57 <param name="log_mode" type="boolean" truevalue="T" falsevalue="F" checked="True" label="Apply log10 transformation on FPKM values?"/>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
58 <param name="replicates" type="boolean" truevalue="T" falsevalue="F" checked="False" label="Replicates?"/>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
59 </when>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
60 <when value="mds">
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
61 <param name="replicates" type="boolean" truevalue="T" falsevalue="F" checked="True" label="Replicates?"/>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
62 </when>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
63 <when value="pca">
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
64 <param name="replicates" type="boolean" truevalue="T" falsevalue="F" checked="True" label="Replicates?"/>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
65 </when>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
66 <when value="maplot">
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
67 <param name="x" type="text" label="Sample name 1"/>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
68 <param name="y" type="text" label="Sample name 2"/>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
69 <param name="use_count" type="boolean" truevalue="T" falsevalue="F" checked="False" label="Use Count?"/>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
70 </when>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
71 <when value="dendrogram">
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
72 <param name="replicates" type="boolean" truevalue="T" falsevalue="F" checked="True" label="Replicates?"/>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
73 </when>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
74 <when value="dispersion">
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
75 </when>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
76 <when value="fpkmSCV">
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
77 </when>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
78 <when value="scatterMatrix">
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
79 </when>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
80 <when value="boxplot">
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
81 <param name="log_mode" type="boolean" truevalue="T" falsevalue="F" checked="True" label="Apply log10 transformation on FPKM values?"/>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
82 </when>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
83 <when value="scatter">
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
84 <param name="x" type="text" label="Sample name for x axis"/>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
85 <param name="y" type="text" label="Sample name for y axis"/>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
86 <param name="log_mode" type="boolean" truevalue="T" falsevalue="F" checked="True" label="Apply log10 transformation on FPKM values?"/>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
87 <param name="smooth" type="boolean" truevalue="T" falsevalue="F" checked="True" label="Add a smooth-fit regression line"/>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
88 <conditional name="multiple_genes">
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
89 <param name="multiple_genes_selector" type="boolean" truevalue="T" falsevalue="F" checked="False" label="Limit plot to a group of genes?"/>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
90 <when value="T">
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
91 <param name="features" type="select" label="Expression levels to plot?">
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
92 <option value="gene" selected="true">Genes</option>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
93 <option value="isoforms">Isoforms</option>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
94 <option value="tss">TSS</option>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
95 <option value="cds">CDS</option>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
96 </param>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
97 <repeat name="genes" title="Genes">
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
98 <param name="gene_id" type="text" label="Gene ID"/>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
99 </repeat>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
100 </when>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
101 <when value="F"/>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
102 </conditional>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
103 </when>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
104 <when value="volcano">
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
105 <param name="x" type="text" label="First sample name for comparison"/>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
106 <param name="y" type="text" label="Second sample name for comparison"/>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
107 <conditional name="multiple_genes">
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
108 <param name="multiple_genes_selector" type="boolean" truevalue="T" falsevalue="F" checked="False" label="Limit plot to a group of genes?"/>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
109 <when value="T">
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
110 <param name="features" type="select" label="Expression levels to plot?">
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
111 <option value="gene" selected="true">Genes</option>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
112 <option value="isoforms">Isoforms</option>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
113 <option value="tss">TSS</option>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
114 <option value="cds">CDS</option>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
115 </param>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
116 <repeat name="genes" title="Genes">
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
117 <param name="gene_id" type="text" label="Gene ID"/>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
118 </repeat>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
119 </when>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
120 <when value="F"/>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
121 </conditional>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
122 </when>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
123 <when value="heatmap">
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
124 <param name="features" type="select" label="Expression levels to plot?">
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
125 <option value="gene" selected="true">Genes</option>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
126 <option value="isoforms">Isoforms</option>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
127 <option value="tss">TSS</option>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
128 <option value="cds">CDS</option>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
129 </param>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
130 <repeat name="genes" title="Genes">
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
131 <param name="gene_id" type="text" label="Gene ID"/>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
132 </repeat>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
133 <param name="clustering" type="select" label="Cluster by">
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
134 <option value="row">Row</option>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
135 <option value="column">Column</option>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
136 <option value="both" selected="true">Both</option>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
137 <option value="none">None</option>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
138 </param>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
139 <param name="labcol" type="boolean" truevalue="TRUE" falsevalue="FALSE" checked="True" label="Display column labels?"/>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
140 <param name="labrow" type="boolean" truevalue="TRUE" falsevalue="FALSE" checked="True" label="Display column labels?"/>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
141 <param name="log_mode" type="boolean" truevalue="T" falsevalue="F" checked="True" label="Apply log10 transformation on FPKM values?"/>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
142 <param name="border" type="boolean" truevalue="TRUE" falsevalue="FALSE" checked="False" label="Draw border around plot?"/>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
143 </when>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
144 <when value="cluster">
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
145 <param name="features" type="select" label="Expression levels to plot?">
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
146 <option value="gene" selected="true">Genes</option>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
147 <option value="isoforms">Isoforms</option>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
148 <option value="tss">TSS</option>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
149 <option value="cds">CDS</option>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
150 </param>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
151 <repeat name="genes" title="Genes">
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
152 <param name="gene_id" type="text" label="Gene ID"/>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
153 </repeat>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
154 <param name="k" type="text" label="Number of pre-defined clusters to attempt to find."/>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
155 <param name="iter_max" type="text" value="100" label="Max iterations"/>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
156 </when>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
157 <when value="expressionplot">
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
158 <param name="features" type="select" label="Expression levels to plot?">
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
159 <option value="gene" selected="true">Genes</option>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
160 <option value="isoforms">Isoforms</option>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
161 <option value="tss">TSS</option>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
162 <option value="cds">CDS</option>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
163 </param>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
164 <param name="gene_id" type="text" label="Gene ID"/>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
165 <param name="log_mode" type="boolean" truevalue="T" falsevalue="F" checked="True" label="Apply log10 transformation on FPKM values?"/>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
166 <param name="draw_summary" type="boolean" truevalue="TRUE" falsevalue="FALSE" checked="False" label="Draw a 'summary' line with mean FPKM
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
167 values for each condition?"/>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
168 <param name="show_error_bars" type="boolean" truevalue="TRUE" falsevalue="FALSE" checked="True" label="Draw error bars?"/>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
169 </when>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
170 <when value="expressionbarplot">
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
171 <param name="features" type="select" label="Expression levels to plot?">
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
172 <option value="gene" selected="true">Genes</option>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
173 <option value="isoforms">Isoforms</option>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
174 <option value="tss">TSS</option>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
175 <option value="cds">CDS</option>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
176 </param>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
177 <param name="gene_id" type="text" label="Gene ID"/>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
178 <param name="log_mode" type="boolean" truevalue="T" falsevalue="F" checked="True" label="Apply log10 transformation on FPKM values?"/>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
179 <param name="show_error_bars" type="boolean" truevalue="TRUE" falsevalue="FALSE" checked="True" label="Draw error bars?"/>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
180 </when>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
181 </conditional>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
182 </repeat>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
183 </inputs>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
184 <stdio>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
185 <exit_code range="1:" level="fatal" description="CummerBund Error" />
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
186 </stdio>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
187 <outputs>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
188 <data format="data" name="output_database" label="${tool.name} on ${on_string}: Database File (sqlite)">
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
189 <filter>backend_database_source['backend_database_selector'] == "cuffdiff_output"</filter>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
190 </data>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
191 <data format="html" name="output_html" label="${tool.name} on ${on_string} (HTML)"/>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
192 </outputs>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
193
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
194 <requirements>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
195 <requirement type="binary">R</requirement>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
196 </requirements>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
197
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
198 <!-->
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
199 <tests>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
200 <test>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
201 <param name="" value=""/>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
202 <output name="" file=""/>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
203 </test>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
204 </tests>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
205 -->
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
206 <configfiles>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
207 <configfile name="script_file">
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
208
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
209 ## Feature Selection ##
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
210 get_features &lt;- function(myGenes, f="gene") {
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
211 if (f == "isoforms")
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
212 return(isoforms(myGenes))
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
213 else if (f == "tss")
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
214 return(TSS(myGenes))
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
215 else if (f == "cds")
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
216 return(CDS(myGenes))
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
217 else
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
218 return(myGenes)
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
219 }
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
220
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
221 ## Main Function ##
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
222
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
223 ## Load cummeRbund library
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
224 library("cummeRbund")
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
225
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
226 ## Initialize cuff object
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
227 cuff &lt;- readCufflinks(dir = "",
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
228 #if $backend_database_source.backend_database_selector == "cuffdiff_output":
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
229 dbFile = "${output_database}",
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
230 geneFPKM = "${genes_fpkm_tracking}",
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
231 geneDiff = "${genes_exp}",
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
232 isoformFPKM = "${isoforms_fpkm_tracking}",
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
233 isoformDiff = "${isoforms_exp}",
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
234 TSSFPKM = "${tss_groups_fpkm_tracking}",
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
235 TSSDiff = "${tss_groups_exp}",
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
236 CDSFPKM = "${cds_fpkm_tracking}",
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
237 CDSExpDiff = "${cds_exp_diff}",
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
238 CDSDiff = "${cds_diff}",
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
239 promoterFile = "${promoters_diff}",
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
240 splicingFile = "${splicing_diff}",
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
241 rebuild = T)
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
242 #else:
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
243 dbFile = "${backend_database_source.input_database}",
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
244 rebuild = F)
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
245 #end if
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
246
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
247 #for $i, $p in enumerate($plots, start=1):
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
248 #set $filename = "plot%02d-%s.png" % ($i, $p.plot['type'])
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
249 png(filename = "${filename}", width = ${p.width}, height = ${p.height})
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
250 tryCatch({
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
251 ## Density plot ##
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
252 #if $p.plot['type'] == "density":
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
253 csDensity(genes(cuff),replicates=$p.plot.replicates)
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
254
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
255 ## Dispersion plot ##
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
256 #elif $p.plot['type'] == "dispersion":
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
257 dispersionPlot(genes(cuff))
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
258
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
259 ## Squared Coefficient of Variation plot ##
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
260 #elif $p.plot['type'] == "fpkmSCV":
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
261 fpkmSCVPlot(genes(cuff))
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
262
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
263 ## Scatter Matrix ##
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
264 #elif $p.plot['type'] == "scatterMatrix":
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
265 csScatterMatrix(genes(cuff))
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
266
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
267 ## Boxplot ##
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
268 #elif $p.plot['type'] == "boxplot":
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
269 csBoxplot(genes(cuff))
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
270
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
271 ## Scatter ##
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
272 #elif $p.plot['type'] == "scatter":
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
273 #if $p.plot.multiple_genes['multiple_genes_selector']:
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
274 myGeneIds &lt;- c()
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
275 #for $g in $p.plot.multiple_genes['genes']:
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
276 myGeneIds &lt;- c(myGeneIds, "$g['gene_id']")
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
277 #end for
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
278 myGenes &lt;- getGenes(cuff, myGeneIds)
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
279 csScatter(get_features(myGenes, "$p.plot.multiple_genes['features']"), "${p.plot.x}", "${p.plot.y}", smooth=${p.plot.smooth})
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
280 #else
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
281 csScatter(genes(cuff), "${p.plot.x}", "${p.plot.y}", smooth=${p.plot.smooth})
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
282 #end if
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
283
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
284 ## Volcano ##
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
285 #elif $p.plot['type'] == "volcano":
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
286 #if $p.plot.multiple_genes['multiple_genes_selector']:
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
287 myGeneIds &lt;- c()
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
288 #for $g in $p.plot.multiple_genes['genes']:
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
289 myGeneIds &lt;- c(myGeneIds, "$g['gene_id']")
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
290 #end for
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
291 myGenes &lt;- getGenes(cuff, myGeneIds)
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
292 csVolcano(get_features(myGenes, "$p.plot.multiple_genes['features']"), "${p.plot.x}", "${p.plot.y}")
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
293 #else
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
294 csVolcano(genes(cuff), "${p.plot.x}", "${p.plot.y}")
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
295 #end if
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
296
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
297 ## Heatmap ##
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
298 #elif $p.plot['type'] == "heatmap":
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
299 myGeneIds &lt;- c()
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
300 #for $g in $p.plot.genes:
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
301 myGeneIds &lt;- c(myGeneIds, "$g['gene_id']")
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
302 #end for
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
303 myGenes &lt;- getGenes(cuff, myGeneIds)
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
304 csHeatmap(get_features(myGenes, "${p.plot.features}"), clustering="${p.plot.clustering}", labCol="${p.plot.labcol}", labRow="${p.plot.labrow}", border="${p.plot.border}")
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
305
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
306 ## Cluster ##
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
307 #elif $p.plot['type'] == "cluster":
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
308 myGeneIds &lt;- c()
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
309 #for $g in $p.plot.genes:
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
310 myGeneIds &lt;- c(myGeneIds, "$g['gene_id']")
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
311 #end for
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
312 myGenes &lt;- getGenes(cuff, myGeneIds)
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
313 csCluster(get_features(myGenes, "${p.plot.features}"), k=${p.plot.k}, iter.max="${p.plot.iter_max}")
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
314
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
315 ## Expression Plot ##
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
316 #elif $p.plot['type'] == "expressionplot":
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
317 myGeneId &lt;- "$p.plot.gene_id"
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
318 myGenes &lt;- getGenes(cuff, myGeneId)
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
319 expressionPlot(get_features(myGenes, "${p.plot.features}"), drawSummary=${p.plot.draw_summary}, iter.max="${p.plot.show_error_bars}")
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
320
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
321 ## Expression Bar Plot ##
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
322 #elif $p.plot['type'] == "expressionbarplot":
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
323 myGeneId &lt;- "$p.plot.gene_id"
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
324 myGenes &lt;- getGenes(cuff, myGeneId)
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
325 expressionBarplot(get_features(myGenes, "${p.plot.features}"), iter.max="${p.plot.show_error_bars}")
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
326
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
327 ## MDS plot ##
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
328 #elif $p.plot['type'] == "mds":
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
329 MDSplot(genes(cuff),replicates=$p.plot.replicates)
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
330
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
331 ## PCA plot ##
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
332 #elif $p.plot['type'] == "pca":
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
333 PCAplot(genes(cuff),"PC1","PC2",replicates=$p.plot.replicates)
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
334
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
335 ## MAplot plot ##
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
336 #elif $p.plot['type'] == "maplot":
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
337 MAplot(genes(cuff), "${p.plot.x}", "${p.plot.y}", useCount=${p.plot.use_count})
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
338
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
339 ## Dendogram plot ##
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
340 #elif $p.plot['type'] == "dendrogram":
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
341 csDendro(genes(cuff),replicates=$p.plot.replicates)
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
342 #end if
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
343
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
344 },error = function(e) {paste("$p.plot['type'] failed: ", e)})
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
345 devname = dev.off()
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
346
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
347 #end for
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
348 </configfile>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
349 </configfiles>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
350
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
351 <help>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
352 This tool allows for persistent storage, access, exploration, and manipulation of Cufflinks high-throughput sequencing data. In addition, provides numerous plotting functions for commonly used visualizations.
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
353 </help>
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
354
da7241f92ecf Uploaded
jjohnson
parents:
diff changeset
355 </tool>