annotate cummerbund_wrapper.xml @ 8:3b1b365c7931

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