annotate cummerbund_wrapper.xml @ 5:9d25b0fd882b

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