comparison nanoplot.xml @ 7:7b379e98b9a9 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/nanoplot/ commit 15a00502ecd67b4908f392660c12988f972b6eab
author iuc
date Thu, 07 Mar 2024 08:46:06 +0000
parents 0f1c34698076
children a02b8b3f5a0c
comparison
equal deleted inserted replaced
6:0f1c34698076 7:7b379e98b9a9
1 <tool id="nanoplot" name="NanoPlot" version="@TOOL_VERSION@+galaxy0" profile="20.05"> 1 <tool id="nanoplot" name="NanoPlot" version="@TOOL_VERSION@+galaxy0" profile="22.05">
2 <description>Plotting suite for Oxford Nanopore sequencing data and alignments</description> 2 <description>Plotting suite for Oxford Nanopore sequencing data and alignments</description>
3 <macros> 3 <macros>
4 <token name="@TOOL_VERSION@">1.41.0</token> 4 <token name="@TOOL_VERSION@">1.42.0</token>
5 </macros> 5 </macros>
6 <xrefs>
7 <xref type="bio.tools">nanoplot</xref>
8 </xrefs>
6 <requirements> 9 <requirements>
7 <requirement type="package" version="@TOOL_VERSION@">nanoplot</requirement> 10 <requirement type="package" version="@TOOL_VERSION@">nanoplot</requirement>
8 </requirements> 11 </requirements>
9 <stdio> 12 <!--stdio>
10 <regex match="kaleido problem" source="stderr" level="fatal" description="No static plots are saved due to some kaleido problem" /> 13 Not needed anymore, because we do not generate the static PNGs anymore.
11 </stdio> 14 I will leave this in, in the case we activate the PNGs at some point again.
15 <regex match="kaleido problem" source="stderr" level="fatal" description="No static plots are saved due to some kaleido problem"/>
16 </stdio-->
12 <version_command>NanoPlot --version</version_command> 17 <version_command>NanoPlot --version</version_command>
13 <command detect_errors="exit_code"><![CDATA[ 18 <command detect_errors="exit_code"><![CDATA[
14 ## set TMPDIR if not already set by admin 19 ## set TMPDIR if not already set by admin
15 ## otherwise kalleido fails with `Less than 64MB of free space in temporary directory for shared memory files: 0` 20 ## otherwise kalleido fails with `Less than 64MB of free space in temporary directory for shared memory files: 0`
16 ## export TMPDIR=\${TMPDIR:-\$_GALAXY_JOB_TMP_DIR}; 21 ## export TMPDIR=\${TMPDIR:-\$_GALAXY_JOB_TMP_DIR};
54 #end if 59 #end if
55 60
56 NanoPlot 61 NanoPlot
57 --threads \${GALAXY_SLOTS:-4} 62 --threads \${GALAXY_SLOTS:-4}
58 --tsv_stats 63 --tsv_stats
64 --no_static
59 --$mode.reads.type ${' '.join($reads_temp)} 65 --$mode.reads.type ${' '.join($reads_temp)}
60 #if $filter.maxlength 66 #if $filter.maxlength
61 --maxlength $filter.maxlength 67 --maxlength $filter.maxlength
62 #end if 68 #end if
63 #if $filter.minlength 69 #if $filter.minlength
164 <param type="data" argument="--cram" name="files" format="cram" multiple="true"/> 170 <param type="data" argument="--cram" name="files" format="cram" multiple="true"/>
165 </when> 171 </when>
166 </conditional> 172 </conditional>
167 </when> 173 </when>
168 </conditional> 174 </conditional>
169 <section 175 <section name="filter" title="Options for filtering or transforming input prior to plotting" expanded="false">
170 name="filter" 176 <param argument="--maxlength" type="integer" optional="true" label="Drop reads longer than length specified."/>
171 title="Options for filtering or transforming input prior to plotting" 177 <param argument="--minlength" type="integer" optional="true" label="Drop reads shorter than length specified."/>
172 expanded="false"> 178 <param argument="--drop_outliers" type="boolean" truevalue="--drop_outliers" falsevalue="" label="Drop outlier reads with extreme long length."/>
173 <param 179 <param argument="--downsample" type="integer" optional="true" label="Reduce dataset to N reads by random sampling."/>
174 type="integer" 180 <param argument="--loglength" type="boolean" truevalue="--loglength" falsevalue="" label="Logarithmic scaling of lengths in plots."/>
175 argument="--maxlength" 181 <param argument="--percentqual" type="boolean" truevalue="--percentqual" falsevalue="" label="Use qualities as theoretical percent identities."/>
176 optional="true" 182 <param argument="--alength" type="boolean" truevalue="--alength" falsevalue="" label="Use aligned read lengths rather than sequenced length (bam mode)."/>
177 label="Drop reads longer than length specified."/> 183 <param argument="--minqual" type="integer" optional="true" label="Drop reads with an average quality lower than specified."/>
178 <param 184 <param argument="--runtime_until" type="integer" optional="true" label="Only take the N first hours of a run"/>
179 type="integer" 185 <param argument="--readtype" type="select" optional="true" label="Which read type to extract information about from summary.">
180 argument="--minlength"
181 optional="true"
182 label="Drop reads shorter than length specified."/>
183 <param
184 type="boolean"
185 argument="--drop_outliers"
186 truevalue="--drop_outliers"
187 falsevalue=""
188 label="Drop outlier reads with extreme long length."/>
189 <param
190 type="integer"
191 argument="--downsample"
192 optional="true"
193 label="Reduce dataset to N reads by random sampling."/>
194 <param
195 type="boolean"
196 argument="--loglength"
197 truevalue="--loglength"
198 falsevalue=""
199 label="Logarithmic scaling of lengths in plots."/>
200 <param
201 type="boolean"
202 argument="--percentqual"
203 truevalue="--percentqual"
204 falsevalue=""
205 label="Use qualities as theoretical percent identities."/>
206 <param
207 type="boolean"
208 argument="--alength"
209 truevalue="--alength"
210 falsevalue=""
211 label="Use aligned read lengths rather than sequenced length (bam mode)."/>
212 <param
213 type="integer"
214 argument="--minqual"
215 optional="true"
216 label="Drop reads with an average quality lower than specified."/>
217 <param
218 type="integer"
219 argument="--runtime_until"
220 optional="true"
221 label="Only take the N first hours of a run"/>
222 <param
223 type="select"
224 argument="--readtype"
225 optional="true"
226 label="Which read type to extract information about from summary.">
227 <option value="1D">1D</option> 186 <option value="1D">1D</option>
228 <option value="2D">2D</option> 187 <option value="2D">2D</option>
229 <option value="1D2">1D2</option> 188 <option value="1D2">1D2</option>
230 </param> 189 </param>
231 <param 190 <param argument="--barcoded" type="boolean" truevalue="--barcoded" falsevalue="" label="Use if you want to split the summary file by barcode."/>
232 type="boolean" 191 <param argument="--no_supplementary" type="boolean" truevalue="--no_supplementary" falsevalue="" label="Use if you want to remove supplementary alignments"/>
233 argument="--barcoded"
234 truevalue="--barcoded"
235 falsevalue=""
236 label="Use if you want to split the summary file by barcode."/>
237 <param
238 type="boolean"
239 argument="--no_supplementary"
240 truevalue="--no_supplementary"
241 falsevalue=""
242 label="Use if you want to remove supplementary alignments"/>
243 </section> 192 </section>
244 <section 193 <section name="customization" title="Options for customizing the plots created" expanded="false">
245 name="customization" 194 <param type="select" argument="--color" optional="true" label="Specify a color for the plots.">
246 title="Options for customizing the plots created"
247 expanded="false">
248 <param
249 type="select"
250 argument="--color"
251 optional="true"
252 label="Specify a color for the plots.">
253 <option value="aliceblue">aliceblue</option> 195 <option value="aliceblue">aliceblue</option>
254 <option value="antiquewhite">antiquewhite</option> 196 <option value="antiquewhite">antiquewhite</option>
255 <option value="aqua">aqua</option> 197 <option value="aqua">aqua</option>
256 <option value="aquamarine">aquamarine</option> 198 <option value="aquamarine">aquamarine</option>
257 <option value="azure">azure</option> 199 <option value="azure">azure</option>
397 <option value="whitesmoke">whitesmoke</option> 339 <option value="whitesmoke">whitesmoke</option>
398 <option value="white">white</option> 340 <option value="white">white</option>
399 <option value="yellowgreen">yellowgreen</option> 341 <option value="yellowgreen">yellowgreen</option>
400 <option value="yellow">yellow</option> 342 <option value="yellow">yellow</option>
401 </param> 343 </param>
402 <param 344 <param type="select" argument="--plots" optional="true" multiple="true" display="checkboxes" label="Specify the bivariate format of the plots.">
403 type="select"
404 argument="--plots"
405 optional="true"
406 multiple="true"
407 display="checkboxes"
408 label="Specify the bivariate format of the plots.">
409 <option value="kde">kernel density estimation (kde)</option> 345 <option value="kde">kernel density estimation (kde)</option>
410 <option value="dot">dots (dot)</option> 346 <option value="dot">dots (dot)</option>
411 </param> 347 </param>
412 <param 348 <param type="boolean" argument="--N50" truevalue="--N50" falsevalue="" label="Show the N50 mark in the read length histogram."/>
413 type="boolean"
414 argument="--N50"
415 truevalue="--N50"
416 falsevalue=""
417 label="Show the N50 mark in the read length histogram."/>
418 </section> 349 </section>
419 </inputs> 350 </inputs>
420 <outputs> 351 <outputs>
421 <data name="output_html" format="html" from_work_dir="NanoPlot-report.html" label="${tool.name} on ${on_string}: HTML report"/> 352 <data name="output_html" format="html" from_work_dir="NanoPlot-report.html" label="${tool.name} on ${on_string}: HTML report"/>
422 <data name="nanostats" format="tabular" from_work_dir="NanoStats.txt" label="${tool.name} on ${on_string}: NanoStats"/> 353 <data name="nanostats" format="tabular" from_work_dir="NanoStats.txt" label="${tool.name} on ${on_string}: NanoStats"/>
423 <data name="nanostats_post_filtering" format="tabular" from_work_dir="NanoStats_post_filtering.txt" label="${tool.name} on ${on_string}: NanoStats post filtering" /> 354 <data name="nanostats_post_filtering" format="tabular" from_work_dir="NanoStats_post_filtering.txt" label="${tool.name} on ${on_string}: NanoStats post filtering"/>
424 <data name="read_length" format="png" from_work_dir="Non_weightedHistogramReadlength.png" label="${tool.name} on ${on_string}: Histogram Read Length"/> 355 <!-- https://github.com/wdecoster/NanoPlot/issues/352 generating PNGs can take much much longer to process. Not sure if this output is relevant at all -->
425 <data name="log_read_length" format="png" from_work_dir="Non_weightedLogTransformed_HistogramReadlength.png" label="${tool.name} on ${on_string}: Log Transformed Histogram Read Length"/> 356 <!--data name="read_length" format="png" from_work_dir="Non_weightedHistogramReadlength.png" label="${tool.name} on ${on_string}: Histogram Read Length"/>
357 <data name="log_read_length" format="png" from_work_dir="Non_weightedLogTransformed_HistogramReadlength.png" label="${tool.name} on ${on_string}: Log Transformed Histogram Read Length"/-->
426 </outputs> 358 </outputs>
427 <tests> 359 <tests>
428 <test> 360 <test>
429 <conditional name="mode"> 361 <conditional name="mode">
430 <param name="choice" value="batch"/> 362 <param name="choice" value="batch"/>
445 <has_text text="mean_qual"/> 377 <has_text text="mean_qual"/>
446 </assert_contents> 378 </assert_contents>
447 </output> 379 </output>
448 <output name="nanostats" file="NanoStats.txt" ftype="tabular"/> 380 <output name="nanostats" file="NanoStats.txt" ftype="tabular"/>
449 <output name="nanostats_post_filtering" file="NanoStats_post_filtering.txt" ftype="tabular"/> 381 <output name="nanostats_post_filtering" file="NanoStats_post_filtering.txt" ftype="tabular"/>
450 <output name="read_length" ftype="png" file="HistogramReadlength.png" compare="sim_size">
451 </output>
452 <output name="log_read_length" ftype="png">
453 <assert_contents>
454 <has_text text="PNG"/>
455 </assert_contents>
456 </output>
457 </test> 382 </test>
458 <test> 383 <test>
459 <conditional name="mode"> 384 <conditional name="mode">
460 <param name="choice" value="combined"/> 385 <param name="choice" value="combined"/>
461 <conditional name="reads"> 386 <conditional name="reads">
471 <param name="color" value="yellow"/> 396 <param name="color" value="yellow"/>
472 </section> 397 </section>
473 <output name="output_html" ftype="html"> 398 <output name="output_html" ftype="html">
474 <assert_contents> 399 <assert_contents>
475 <has_text text="html"/> 400 <has_text text="html"/>
476 <has_text text="Aligned read length vs Percent identity plot using dots"/> <!-- bam report specific --> 401 <has_text text="Aligned read length vs Percent identity plot using dots"/>
477 </assert_contents> 402 <!-- bam report specific -->
478 </output>
479 <output name="read_length" ftype="png">
480 <assert_contents>
481 <has_text text="PNG"/>
482 </assert_contents> 403 </assert_contents>
483 </output> 404 </output>
484 </test> 405 </test>
485 <test><!-- test with multiple input files --> 406 <test>
486 <conditional name="mode"> 407 <!-- test with multiple input files -->
408 <conditional name="mode">
487 <param name="choice" value="combined"/> 409 <param name="choice" value="combined"/>
488 <conditional name="reads"> 410 <conditional name="reads">
489 <param name="type" value="fasta"/> 411 <param name="type" value="fasta"/>
490 <param name="files" ftype="fasta" value="reads1.fasta,reads2.fasta" /> 412 <param name="files" ftype="fasta" value="reads1.fasta,reads2.fasta"/>
491 </conditional> 413 </conditional>
492 </conditional> 414 </conditional>
493 <output name="output_html" ftype="html"> 415 <output name="output_html" ftype="html">
494 <assert_contents> 416 <assert_contents>
495 <has_text text="html"/> 417 <has_text text="html"/>
496 <not_has_text text="Aligned read length vs Percent identity plot using dots"/> 418 <not_has_text text="Aligned read length vs Percent identity plot using dots"/>
497 <has_text text="&lt;td&gt;9&lt;/td&gt;"/> <!--check both files were used 4+5 reads --> 419 <has_text text="&lt;td&gt;9&lt;/td&gt;"/>
420 <!--check both files were used 4+5 reads -->
498 </assert_contents> 421 </assert_contents>
499 </output> 422 </output>
500 </test> 423 </test>
501 </tests> 424 </tests>
502 <help> 425 <help>