|
1
|
1 <tool id="QDNAseq" name="QDNAseq" version="0.0.1">
|
|
|
2
|
|
|
3 <requirements>
|
|
24
|
4 <!-- <requirement type="set_environment">QDNASEQ_SCRIPT_PATH</requirement> -->
|
|
|
5 <!-- The R package for v3.1.0 is not ready yet -->
|
|
|
6 <!--<requirement type="package" version="3.1.0">R</requirement>-->
|
|
|
7 <!-- <requirement type="package" version="1.0.5">bioc_qdnaseq</requirement> -->
|
|
1
|
8 </requirements>
|
|
|
9
|
|
|
10 <description>Quantitative copy number abberation detection</description>
|
|
|
11
|
|
35
|
12 <!--
|
|
|
13 if case you want to use a specific R installation use the commented command block and set correct path
|
|
|
14 <command>
|
|
|
15 /ccagc/lib/R/R-3.1.0/bin/Rscript QDNAseq.R
|
|
|
16 $qdnaseq_cfg
|
|
|
17 </command>
|
|
|
18 -->
|
|
|
19
|
|
1
|
20 <command interpreter="Rscript">
|
|
|
21 QDNAseq.R
|
|
|
22 $qdnaseq_cfg <!-- use a tmp config file to pass all params to R by source() -->
|
|
|
23 </command>
|
|
|
24
|
|
|
25 <stdio>
|
|
|
26 <!-- Anything higher than 0 means the R script didnt finish -->
|
|
|
27 <!-- Because different R packages deal with err/warn differently unable to waterproof this -->
|
|
|
28 <exit_code range="1:" level="fatal" description="R script didnt finish correctly, check log" />
|
|
|
29 </stdio>
|
|
|
30
|
|
|
31 <inputs>
|
|
|
32 <!-- ==================== -->
|
|
|
33 <!-- General inputs -->
|
|
|
34 <!-- ==================== -->
|
|
|
35 <param name="jobName" type="text" optional="false" label="Analysis/ouput name" help="Supply a name for the outputs to remind you what they contain" value="TEST">
|
|
|
36 <validator type="empty_field" />
|
|
|
37 <validator type="regex" message="This field should contain some non-whitespace character">.*\S</validator>
|
|
|
38 </param>
|
|
|
39 <param name="binSize" type="select" label="Select bin-size to use (kb)" help="Larger bin sizes provide faster analysis but lower resolution">
|
|
|
40 <option value="1000">1Mb</option>
|
|
|
41 <option value="100">100kb</option>
|
|
|
42 <option value="30">30kb</option>
|
|
|
43 <option value="15">15kb</option>
|
|
|
44 <option value="5">5kb</option>
|
|
|
45 <option value="1">1kb</option>
|
|
|
46 </param>
|
|
|
47 <param name="doCall" type="select" label="Also segment and call with CGHcall" help="This setting will be set to yes if called output is requested (see additional history outputs)">
|
|
|
48 <option value="TRUE">yes</option>
|
|
|
49 <option value="FALSE">no</option>
|
|
|
50 </param>
|
|
|
51 <param name="experimentType" type="select" label="Type of sequencing data" help="Currently only single end reads of lenght 50 are supported within galaxy">
|
|
|
52 <option value="SR50">Single Read 50bp</option>
|
|
|
53 <!-- <option value="PE1000">PairedEnd1000</option> -->
|
|
|
54 </param>
|
|
|
55
|
|
|
56 <!-- ==================== -->
|
|
|
57 <!-- Input BAMs -->
|
|
|
58 <!-- ==================== -->
|
|
|
59 <param name="bams" type="data" multiple="true" optional="false" format="bam" label="Input BAMs" help="Select all BAM files to include in the analysis" />
|
|
|
60
|
|
|
61 <!-- ==================== -->
|
|
|
62 <!-- This section contains galaxy history output settings -->
|
|
|
63 <!-- ==================== -->
|
|
|
64 <conditional name="extra_history_outputs">
|
|
|
65 <param name="show" type="select" label="Show additional history outputs">
|
|
|
66 <option value="NO">Only output Report to history</option>
|
|
|
67 <option value="YES">Select additional history outputs</option>
|
|
|
68 </param>
|
|
|
69 <when value="YES">
|
|
|
70 <param name="readcounts_rds" type="select" label="Also output readcounts RDS (R object) to history">
|
|
|
71 <option value="FALSE">no</option>
|
|
|
72 <option value="TRUE">yes</option>
|
|
|
73 </param>
|
|
|
74 <param name="copynumbers_rds" type="select" label="Also output copynumbers RDS (R object) to history">
|
|
|
75 <option value="FALSE">no</option>
|
|
|
76 <option value="TRUE">yes</option>
|
|
|
77 </param>
|
|
|
78 <param name="calls_rds" type="select" label="Also output called segments RDS (R object) to history">
|
|
|
79 <option value="FALSE">no</option>
|
|
|
80 <option value="TRUE">yes</option>
|
|
|
81 </param>
|
|
|
82 </when>
|
|
|
83 <when value="NO">
|
|
|
84 <param name="readcounts_rds" type="hidden" value="FALSE" />
|
|
|
85 <param name="copynumbers_rds" type="hidden" value="FALSE" />
|
|
|
86 <param name="calls_rds" type="hidden" value="FALSE" />
|
|
|
87 </when>
|
|
|
88 </conditional>
|
|
|
89
|
|
|
90 <!-- ==================== -->
|
|
|
91 <!-- Option to use your own bin annotations -->
|
|
|
92 <!-- ==================== -->
|
|
|
93 <conditional name="use_own_binannotation">
|
|
|
94 <param name="show" type="select" label="Use your own bin annotations from history">
|
|
|
95 <option value="no">no</option>
|
|
|
96 <option value="yes">yes</option>
|
|
|
97 </param>
|
|
|
98 <when value="yes">
|
|
|
99 <param name="binannotation_file" type="data" multiple="false" format="rds" label="R data structure file with bin-annotations" help="If you made your own bin-annotations with the QDNAseq bioconductor package you can upload them to your history and select here" />
|
|
|
100 </when>
|
|
|
101 <when value="no">
|
|
|
102 <param name="binannotation_file" type="hidden" value="" />
|
|
|
103 </when>
|
|
|
104 </conditional>
|
|
|
105 <!-- ==================== -->
|
|
|
106 <!-- Optional advanced options -->
|
|
|
107 <!-- ==================== -->
|
|
|
108 <conditional name="advanced">
|
|
|
109 <param name="show" type="select" label="Show advanced options">
|
|
|
110 <option value="no">no</option>
|
|
|
111 <option value="yes">yes</option>
|
|
|
112 </param>
|
|
|
113 <when value="yes">
|
|
|
114
|
|
|
115 <param name="undo_splits" type="select" label="undoSplits" help="If set to sdundo, see undoSD below">
|
|
|
116 <option value="sdundo">sdundo</option>
|
|
|
117 <option value="prune">prune</option>
|
|
|
118 <option value="none">none</option>
|
|
|
119 </param>
|
|
|
120
|
|
|
121 <param name="undoSD" size="10" type="float" value="1" label="undoSD" help='The number of SDs between means to keep a split if undo.splits="sdundo".' />
|
|
|
122
|
|
|
123 <param name="blacklist" type="select" label="Filter blacklisted bins (blacklist)" help="Will exclude all blacklisted bins in the binannotation if set">
|
|
|
124 <option value="TRUE">yes</option>
|
|
|
125 <option value="FALSE">no</option>
|
|
|
126 </param>
|
|
|
127
|
|
|
128 <param name="mappability" type="integer" value="0" min="0" max="100" label="Filter bins with lower mappability" help="Will exclude all bins will lower mappability than this number (0-100)" />
|
|
|
129
|
|
33
|
130 <param name="debug" type="select" label="DEBUG/TEST" help="Use inbuilt LGG data instead of input BAMs">
|
|
1
|
131 <option value="FALSE">no</option>
|
|
|
132 <option value="TRUE">yes</option>
|
|
|
133 </param>
|
|
|
134 </when>
|
|
|
135 <!-- need to set defaults because params are passed to R anyway -->
|
|
|
136 <when value="no">
|
|
|
137 <param name="undoSD" type="hidden" value="1" />
|
|
|
138 <param name="undo_splits" type="hidden" value="sdundo" />
|
|
|
139 <param name="blacklist" type="hidden" value="TRUE" />
|
|
|
140 <param name="mappability" type="hidden" value="0" />
|
|
|
141 <param name="debug" type="hidden" value="FALSE" />
|
|
|
142 </when>
|
|
|
143 </conditional>
|
|
|
144
|
|
|
145 <!-- ==================== -->
|
|
|
146 <!-- Optional graphical/plotting options -->
|
|
|
147 <!-- ==================== -->
|
|
|
148 <conditional name="plot_options">
|
|
|
149 <param name="show" type="select" label="Show graphical options">
|
|
|
150 <option value="no">no</option>
|
|
|
151 <option value="yes">yes</option>
|
|
|
152 </param>
|
|
|
153 <when value="yes">
|
|
|
154 <param name="plot_width" size="3" type="integer" value="960" label="Plot width" />
|
|
|
155 <param name="plot_height" size="3" type="integer" value="480" label="Plot height" />
|
|
|
156 <param name="exclude_chrs" type="select" multiple="true" label="Hide these chromosomes in plots" help="Currently only standard human chromosomes supported. NOTE: other filters might also exclude chromosomes">
|
|
|
157 <option value="1">1</option>
|
|
|
158 <option value="2">2</option>
|
|
|
159 <option value="3">3</option>
|
|
|
160 <option value="4">4</option>
|
|
|
161 <option value="5">5</option>
|
|
|
162 <option value="6">6</option>
|
|
|
163 <option value="7">7</option>
|
|
|
164 <option value="8">8</option>
|
|
|
165 <option value="9">9</option>
|
|
|
166 <option value="10">10</option>
|
|
|
167 <option value="11">11</option>
|
|
|
168 <option value="12">12</option>
|
|
|
169 <option value="13">13</option>
|
|
|
170 <option value="14">14</option>
|
|
|
171 <option value="15">15</option>
|
|
|
172 <option value="16">16</option>
|
|
|
173 <option value="17">17</option>
|
|
|
174 <option value="18">18</option>
|
|
|
175 <option value="19">19</option>
|
|
|
176 <option value="20">20</option>
|
|
|
177 <option value="21">21</option>
|
|
|
178 <option value="22">22</option>
|
|
|
179 <option value="X" selected="true">X</option>
|
|
|
180 <option value="Y" selected="true">Y</option>
|
|
|
181 </param>
|
|
|
182 </when>
|
|
|
183 <when value="no">
|
|
|
184 <param name="plot_width" type="hidden" value="960" />
|
|
|
185 <param name="plot_height" type="hidden" value="480" />
|
|
|
186 <param name="exclude_chrs" type="hidden" value="X,Y" />
|
|
|
187 </when>
|
|
|
188 </conditional>
|
|
|
189 </inputs>
|
|
|
190 <!-- ==================== -->
|
|
|
191 <!-- This config is sourced in R code -->
|
|
|
192 <!-- ==================== -->
|
|
|
193 <configfiles>
|
|
|
194 <configfile name="qdnaseq_cfg">
|
|
|
195 ## this file was sourced in QDNAseq R wrapper script
|
|
|
196 ## in this way all galaxy params are passes to R
|
|
|
197
|
|
|
198 ## required params
|
|
|
199 as.integer( "${binSize}" ) -> binSize
|
|
|
200 "${experimentType}" -> experimentType
|
|
|
201 "${jobName}" -> outputName
|
|
|
202
|
|
|
203 ## extra params
|
|
|
204 as.logical( "${doCall}" ) -> doCall
|
|
|
205 "${htmlFile}" -> outputHtml
|
|
|
206 "${htmlFile.files_path}" -> outputPath
|
|
|
207 "${use_own_binannotation.binannotation_file}" -> binAnnotations
|
|
|
208
|
|
|
209 ## advanced options
|
|
|
210 as.double( "${advanced.undoSD}" ) -> undoSD
|
|
|
211 as.logical( "${advanced.debug}" ) -> debug
|
|
|
212 as.logical( "${advanced.blacklist}" ) -> filterBlacklistedBins
|
|
|
213 as.integer( "${advanced.mappability}" ) -> mappabilityCutoff
|
|
|
214 "${advanced.undo_splits}" -> undoSplits
|
|
|
215
|
|
|
216 ## history output params
|
|
|
217 as.logical( "${extra_history_outputs.readcounts_rds}" ) -> doOutputReadcountsRds
|
|
|
218 as.logical( "${extra_history_outputs.copynumbers_rds}" ) -> doOutputCopynumbersRds
|
|
|
219 as.logical( "${extra_history_outputs.calls_rds}" ) -> doOutputCallsRds
|
|
|
220 "${rdsReadCounts}" -> readCountsDatasetFile
|
|
|
221 "${rdsCopyNumbers}" -> copyNumbersDatasetFile
|
|
|
222 "${rdsCalls}" -> calledSegmentsDatasetFile
|
|
|
223
|
|
|
224 ## plotting params
|
|
|
225 as.integer( "${plot_options.plot_width}" ) -> PLOT_WIDTH
|
|
|
226 as.integer( "${plot_options.plot_height}" ) -> PLOT_HEIGHT
|
|
|
227 "${plot_options.exclude_chrs}" -> excludeChrsString
|
|
|
228
|
|
|
229 ## input BAMs init
|
|
|
230 c() -> bamsPaths
|
|
|
231 c() -> bamsNames
|
|
|
232
|
|
|
233 #for bam in $bams#
|
|
|
234 c( bamsPaths, "${bam}" ) -> bamsPaths
|
|
|
235 c( bamsNames, "${bam.name}" ) -> bamsNames
|
|
|
236 #end for
|
|
|
237
|
|
|
238 </configfile>
|
|
|
239 </configfiles>
|
|
|
240
|
|
|
241 <!-- ==================== -->
|
|
|
242 <!-- Main output is an html based report, additional on request -->
|
|
|
243 <!-- ==================== -->
|
|
|
244 <outputs>
|
|
|
245
|
|
|
246 <data format="html" name="htmlFile" label="QDNAseq Report ${binSize}kb (${jobName})" />
|
|
|
247
|
|
|
248 <data format="rds" name="rdsReadCounts" label="${jobName}_readCounts_${binSize}kb.rds">
|
|
|
249 <filter> extra_history_outputs['readcounts_rds'] == "TRUE" </filter><!-- <filter>("readcounts_rds" in outputs)</filter> -->
|
|
|
250 </data>
|
|
|
251
|
|
|
252 <data format="rds" name="rdsCopyNumbers" label="${jobName}_copyNumbers_${binSize}kb.rds">
|
|
|
253 <filter> extra_history_outputs['copynumbers_rds'] == "TRUE" </filter>
|
|
|
254 </data>
|
|
|
255
|
|
|
256 <data format="rds" name="rdsCalls" label="${jobName}_calls_${binSize}kb.rds">
|
|
|
257 <filter> extra_history_outputs['calls_rds'] == "TRUE" </filter>
|
|
|
258 </data>
|
|
|
259
|
|
|
260 </outputs>
|
|
|
261
|
|
|
262 <!-- ==================== -->
|
|
|
263 <!-- Tests still to be done -->
|
|
|
264 <!-- ==================== -->
|
|
|
265
|
|
|
266 <!--
|
|
|
267 <tests>
|
|
|
268 <test>
|
|
24
|
269 <param name="input1" value="input1" />
|
|
|
270 <param name="input2" value="input2" />
|
|
1
|
271 </test>
|
|
|
272 </tests>
|
|
|
273 -->
|
|
|
274
|
|
|
275 <help>
|
|
|
276 .. class:: infomark
|
|
|
277
|
|
|
278 **Introduction**
|
|
|
279
|
|
|
280 This tool is a wrapper for the R Bioconductor package QDNAseq_
|
|
|
281
|
|
|
282 .. _QDNAseq: http://www.bioconductor.org/packages/release/bioc/html/QDNAseq.html
|
|
|
283
|
|
|
284 It determines the copy number state of human chromosomes 1 - 22 for (shallow coverage) whole genome sequencing data.
|
|
|
285
|
|
|
286 -----
|
|
|
287
|
|
|
288 .. class:: warningmark
|
|
|
289
|
|
27
|
290 As there is no R 3.1.0 package yet which is required, the **dependencies** need to be installed by hand and available to the galaxy user: R (3.1.0) and bioconductor package QDNAseq (>= 1.0.5)
|
|
|
291
|
|
|
292 .. class:: warningmark
|
|
|
293
|
|
6
|
294 The input BAMs are expected to be **single end reads of 50bp length** mapped to GRCh37/hg19 genome build. Other experiment setups are currently not supported within galaxy. See the documentation of QDNAseq at bioconductor on how to deal with different setups.
|
|
1
|
295
|
|
|
296 .. class:: warningmark
|
|
|
297
|
|
27
|
298 Requires **internet access** for downloading bin-annotations from bitbucket and to show some styling (css) of the final report
|
|
1
|
299
|
|
|
300 -----
|
|
|
301
|
|
|
302 **Citation**
|
|
|
303
|
|
|
304 For the underlying tool please cite: llari Scheinin, Daoud Sie et al. DNA copy number analysis of fresh and formalin-fixed specimens by whole-genome sequencing: improved correction of systematic biases and exclusion of problematic regions, (submitted). See also the bioconductor package_ documentation.
|
|
|
305
|
|
|
306 .. _package: http://www.bioconductor.org/packages/release/bioc/html/QDNAseq.html
|
|
24
|
307
|
|
|
308
|
|
|
309 .. image:: no_image.png
|
|
1
|
310 </help>
|
|
|
311
|
|
24
|
312 </tool>
|