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