Mercurial > repos > bgruening > blobtoolkit
comparison blobtoolkit.xml @ 3:f6cc3378ec15 draft
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/blobtoolkit commit d4e8bcb01de330e345970d3df6b75392c7fe2275
| author | bgruening |
|---|---|
| date | Fri, 26 Jul 2024 16:15:23 +0000 |
| parents | a4e7a0877d0c |
| children | c079870a0bc3 |
comparison
equal
deleted
inserted
replaced
| 2:a4e7a0877d0c | 3:f6cc3378ec15 |
|---|---|
| 1 <tool id="blobtoolkit" name="BlobToolKit" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="21.05"> | 1 <tool id="blobtoolkit" name="BlobToolKit" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="21.05"> |
| 2 <description>genome assembly QC</description> | 2 <description>Genome Assembly QC</description> |
| 3 <macros> | 3 <macros> |
| 4 <import>macros.xml</import> | 4 <import>macros.xml</import> |
| 5 </macros> | 5 </macros> |
| 6 <expand macro='requirements' /> | 6 <expand macro='requirements' /> |
| 7 <command detect_errors="exit_code"><![CDATA[ | 7 <command detect_errors="exit_code"><![CDATA[ |
| 20 --meta 'assembly.yaml' | 20 --meta 'assembly.yaml' |
| 21 #end if | 21 #end if |
| 22 --taxid $mode_conditional.taxid | 22 --taxid $mode_conditional.taxid |
| 23 --taxdump './taxdump' | 23 --taxdump './taxdump' |
| 24 './Blobdir' | 24 './Blobdir' |
| 25 | |
| 25 && tar -C ./Blobdir -zcvf Blobdir.tgz . | 26 && tar -C ./Blobdir -zcvf Blobdir.tgz . |
| 27 | |
| 28 #else if $mode_conditional.selector == 'plot' | |
| 29 mkdir -p blobtk_files && | |
| 30 tar -xvf '$blobdir_input' -C blobtk_files && | |
| 31 blobtk plot --blobdir blobtk_files --view '$plot_view' | |
| 32 | |
| 26 #else if $mode_conditional.selector == 'add' | 33 #else if $mode_conditional.selector == 'add' |
| 27 mkdir -p './Blobdir' && | 34 mkdir -p './Blobdir' && |
| 28 mkdir -p './taxdump' && | 35 mkdir -p './taxdump' && |
| 29 ln -s '${mode_conditional.taxdump}' 'taxdump.tar' && | 36 ln -s '${mode_conditional.taxdump}' 'taxdump.tar' && |
| 30 tar -xf 'taxdump.tar' -C './taxdump' && | 37 tar -xf 'taxdump.tar' -C './taxdump' && |
| 95 #if $mode_conditional.advanced_options.pileup_args | 102 #if $mode_conditional.advanced_options.pileup_args |
| 96 --pileup-args '${mode_conditional.advanced_options.pileup_args}' | 103 --pileup-args '${mode_conditional.advanced_options.pileup_args}' |
| 97 #end if | 104 #end if |
| 98 $mode_conditional.advanced_options.replace | 105 $mode_conditional.advanced_options.replace |
| 99 './Blobdir' | 106 './Blobdir' |
| 107 | |
| 108 #if $mode_conditional.blobtk_plot_options.blobtk_plot == 'yes' | |
| 109 && blobtk plot --blobdir './Blobdir' --view $blobtk_plot_options.plot_view | |
| 110 #end if | |
| 111 | |
| 100 && tar -C ./Blobdir -zcvf Blobdir.tgz . | 112 && tar -C ./Blobdir -zcvf Blobdir.tgz . |
| 101 | 113 |
| 102 #else if $mode_conditional.selector == 'filter' | 114 #else if $mode_conditional.selector == 'filter' |
| 103 mkdir -p './Blobdir' && | 115 mkdir -p './Blobdir' && |
| 104 #if $mode_conditional.blobdir.is_of_type("tgz") | 116 #if $mode_conditional.blobdir.is_of_type("tgz") |
| 154 #if $mode_conditional.remove_options.field | 166 #if $mode_conditional.remove_options.field |
| 155 --field $mode_conditional.remove_options.field | 167 --field $mode_conditional.remove_options.field |
| 156 #end if | 168 #end if |
| 157 ./Blobdir | 169 ./Blobdir |
| 158 #end if | 170 #end if |
| 171 | |
| 172 #if $mode_conditional.blobtk_plot_options.blobtk_plot == 'yes' | |
| 173 && blobtk plot --blobdir ./Blobdir --view $blobtk_plot_options.plot_view | |
| 174 #end if | |
| 175 | |
| 159 && tar -C ./Blobdir -zcvf Blobdir.tgz . | 176 && tar -C ./Blobdir -zcvf Blobdir.tgz . |
| 160 #end if | 177 #end if |
| 178 | |
| 161 ]]></command> | 179 ]]></command> |
| 162 <inputs> | 180 <inputs> |
| 163 <conditional name="mode_conditional"> | 181 <conditional name="mode_conditional"> |
| 164 <param name="selector" type="select" label="Select mode" help="Select a BlobToolKit module"> | 182 <param name="selector" type="select" label="Select mode" help="Select a BlobToolKit module"> |
| 165 <option value="create">Create a BlobToolKit dataset</option> | 183 <option value="create">Create a BlobToolKit dataset</option> |
| 166 <option value="add">Add data to a BlobToolKit dataset</option> | 184 <option value="add">Add data to a BlobToolKit dataset</option> |
| 167 <option value="filter">Edit a BlobToolKit dataset</option> | 185 <option value="filter">Edit a BlobToolKit dataset</option> |
| 186 <option value="plot">Plot a BlobToolKit dataset</option> | |
| 168 </param> | 187 </param> |
| 169 <when value="create"> | 188 <when value="create"> |
| 170 <param argument="--fasta" type="data" format="fasta" label="Genome assembly file" help="FASTA sequence file" /> | 189 <param argument="--fasta" type="data" format="fasta" label="Genome assembly file" help="FASTA sequence file" /> |
| 171 <param argument="--meta" type="data" format="yaml" label="Metadata file" optional="true" help="Optional metadata dataset"/> | 190 <param argument="--meta" type="data" format="yaml" label="Metadata file" optional="true" help="Optional metadata dataset"/> |
| 172 <param argument="--taxid" type="integer" value="" label="NCBI taxonomy ID" help="Add ranks to metadata for a taxid"/> | 191 <param argument="--taxid" type="integer" value="" label="NCBI taxonomy ID" help="Add ranks to metadata for a taxid"/> |
| 215 <param argument="--trnascan" type="data" format="tsv,tabular" optional="true" label="tRNAscan2-SE" help="tRNAscan-SE is employed for identifying and annotating tRNA genes in genomes"/> | 234 <param argument="--trnascan" type="data" format="tsv,tabular" optional="true" label="tRNAscan2-SE" help="tRNAscan-SE is employed for identifying and annotating tRNA genes in genomes"/> |
| 216 <expand macro="macro_text_input"> | 235 <expand macro="macro_text_input"> |
| 217 <param argument="--text-no-array" type="boolean" truevalue="--text-no-array" falsevalue="" checked="false" label="Prevent duplicated identifiers" | 236 <param argument="--text-no-array" type="boolean" truevalue="--text-no-array" falsevalue="" checked="false" label="Prevent duplicated identifiers" |
| 218 help="Prevent fields in files with duplicate identifiers being loaded as array fields" /> | 237 help="Prevent fields in files with duplicate identifiers being loaded as array fields" /> |
| 219 </expand> | 238 </expand> |
| 239 <expand macro="blobtk_plotting"></expand> | |
| 220 <section name="advanced_options" title="Advanced options"> | 240 <section name="advanced_options" title="Advanced options"> |
| 221 <param argument="--blobdb" type="data" format="json" optional="true" label="Blobtools v1 database" help="This file should have been generated with the previous Blobtools tool version"/> | 241 <param argument="--blobdb" type="data" format="json" optional="true" label="Blobtools v1 database" help="This file should have been generated with the previous Blobtools tool version"/> |
| 222 <param argument="--synonyms" type="data" format="tsv" optional="true" label="Identifier and sinonyms" help="TSV file containing current identifiers and synonyms"/> | 242 <param argument="--synonyms" type="data" format="tsv" optional="true" label="Identifier and sinonyms" help="TSV file containing current identifiers and synonyms"/> |
| 223 <param argument="--update-plot" type="boolean" truevalue="--update-plot" falsevalue="" checked="false" label="Update plot" help="Flag to use new taxrule as default category" /> | 243 <param argument="--update-plot" type="boolean" truevalue="--update-plot" falsevalue="" checked="false" label="Update plot" help="Flag to use new taxrule as default category" /> |
| 224 <param argument="--pileup-args" type="text" value="" optional="true" label="Samtools Pileup" help="Key/value pairs to pass to samtools pileup"> | 244 <param argument="--pileup-args" type="text" value="" optional="true" label="Samtools Pileup" help="Key/value pairs to pass to samtools pileup"> |
| 293 <valid initial="string.letters,string.digits"/> | 313 <valid initial="string.letters,string.digits"/> |
| 294 </sanitizer> | 314 </sanitizer> |
| 295 <validator type="regex">[0-9a-zA-Z]+</validator> | 315 <validator type="regex">[0-9a-zA-Z]+</validator> |
| 296 </param> | 316 </param> |
| 297 </section> | 317 </section> |
| 318 <expand macro="blobtk_plotting"></expand> | |
| 319 </when> | |
| 320 <when value="plot"> | |
| 321 <param name="blobdir_input" type="data" format="tgz" label="Select the blobdir tar.gz file generated from blobtools"/> | |
| 322 <param name="plot_view" type="select" label="Select the view type for the plot"> | |
| 323 <option value="blob" selected="true">Blob view</option> | |
| 324 <option value="cumulative">Cumulative view</option> | |
| 325 <option value="legend">Legend view</option> | |
| 326 <option value="snail">Snail view</option> | |
| 327 </param> | |
| 298 </when> | 328 </when> |
| 299 </conditional> | 329 </conditional> |
| 300 </inputs> | 330 </inputs> |
| 301 <outputs> | 331 <outputs> |
| 302 <data name="blobdir" format="tgz" from_work_dir="./Blobdir.tgz" label="${tool.name} on ${on_string}: Blobdir.tgz"> | 332 <data name="blobdir" format="tgz" from_work_dir="./Blobdir.tgz" label="${tool.name} on ${on_string}: Blobdir.tgz"> |
| 303 <filter>mode_conditional['selector'] == 'create' or mode_conditional['selector'] == 'add' or mode_conditional['selector'] == 'filter'</filter> | 333 <filter>mode_conditional['selector'] == 'create' or mode_conditional['selector'] == 'add' or mode_conditional['selector'] == 'filter'</filter> |
| 304 </data> | 334 </data> |
| 335 <data name="output_svg" format="svg" from_work_dir="output.svg" label="${tool.name} on ${on_string}: Output Plot"> | |
| 336 <filter> | |
| 337 (( | |
| 338 (mode_conditional['selector'] == 'add' and mode_conditional['blobtk_plot_options']['blobtk_plot'] == 'yes') or | |
| 339 (mode_conditional['selector'] == 'filter' and mode_conditional['blobtk_plot_options']['blobtk_plot'] == 'yes') or | |
| 340 (mode_conditional['selector'] == 'plot') | |
| 341 )) | |
| 342 </filter> | |
| 343 </data> | |
| 305 </outputs> | 344 </outputs> |
| 306 <tests> | 345 <tests> |
| 346 <!-- Test 01: Testing blobtoolkit with create with no plotting enabled --> | |
| 307 <test expect_num_outputs="1"> | 347 <test expect_num_outputs="1"> |
| 308 <conditional name="mode_conditional"> | 348 <conditional name="mode_conditional"> |
| 309 <param name="selector" value="create"/> | 349 <param name="selector" value="create"/> |
| 310 <param name="fasta" value="assembly.fasta.gz"/> | 350 <param name="fasta" value="assembly.fasta.gz"/> |
| 311 <param name="meta" value="assembly.yaml"/> | 351 <param name="meta" value="assembly.yaml"/> |
| 312 <param name="taxid" value="801"/> | 352 <param name="taxid" value="801"/> |
| 313 <param name="taxdump" value="small_taxdump.tar.gz"/> | 353 <param name="taxdump" value="small_taxdump.tar.gz"/> |
| 314 </conditional> | 354 </conditional> |
| 315 <output name="blobdir" file="test01_blobdir.tar.gz" compare="sim_size" delta="100"/> | 355 <output name="blobdir" file="test01_blobdir.tar.gz" compare="sim_size" delta="100"/> |
| 316 </test> | 356 </test> |
| 317 <test expect_num_outputs="1"> | 357 <!-- Test 02: Testing blobtoolkit with add with plotting enabled --> |
| 358 <test expect_num_outputs="2"> | |
| 318 <conditional name="mode_conditional"> | 359 <conditional name="mode_conditional"> |
| 319 <param name="selector" value="add"/> | 360 <param name="selector" value="add"/> |
| 320 <param name="blobdir" value="test01_blobdir.tar.gz"/> | 361 <param name="blobdir" value="test01_blobdir.tar.gz"/> |
| 321 <param name="taxdump" value="small_taxdump.tar.gz"/> | 362 <param name="taxdump" value="small_taxdump.tar.gz"/> |
| 322 <param name="busco" value="busco_full_table.tabular"/> | 363 <param name="busco" value="busco_full_table.tabular"/> |
| 332 <param name="evalue" value="1"/> | 373 <param name="evalue" value="1"/> |
| 333 <param name="bitscore" value="1"/> | 374 <param name="bitscore" value="1"/> |
| 334 <param name="hit_count" value="10"/> | 375 <param name="hit_count" value="10"/> |
| 335 <param name="hits_cols" value="1=qseqid,2=staxids,3=bitscore,5=sseqid,10=qstart,11=qend,14=evalue"/> | 376 <param name="hits_cols" value="1=qseqid,2=staxids,3=bitscore,5=sseqid,10=qstart,11=qend,14=evalue"/> |
| 336 </conditional> | 377 </conditional> |
| 378 <conditional name="blobtk_plot_options"> | |
| 379 <param name="blobtk_plot" value="yes"/> | |
| 380 <param name="plot_view" value="blob"/> | |
| 381 </conditional> | |
| 337 </conditional> | 382 </conditional> |
| 338 <output name="blobdir" file="test02_blobdir.tar.gz" compare="sim_size" delta="100"/> | 383 <output name="blobdir" file="test02_blobdir.tar.gz" compare="sim_size" delta="100"/> |
| 339 </test> | 384 <output name="output_svg" file="test02_blob.svg" compare="sim_size" delta="100"/> |
| 385 </test> | |
| 386 <!-- Test 03: Testing blobtoolkit with filtering and plotting disabled --> | |
| 340 <test expect_num_outputs="1"> | 387 <test expect_num_outputs="1"> |
| 341 <conditional name="mode_conditional"> | 388 <conditional name="mode_conditional"> |
| 342 <param name="selector" value="filter"/> | 389 <param name="selector" value="filter"/> |
| 343 <param name="blobdir" value="test02_blobdir.tar.gz"/> | 390 <param name="blobdir" value="test02_blobdir.tar.gz"/> |
| 344 <section name="filter_options"> | 391 <section name="filter_options"> |
| 348 </section> | 395 </section> |
| 349 <section name="remove_options"> | 396 <section name="remove_options"> |
| 350 <param name="remove_selector" value="--all"/> | 397 <param name="remove_selector" value="--all"/> |
| 351 </section> | 398 </section> |
| 352 </conditional> | 399 </conditional> |
| 400 <conditional name="blobtk_plot_options"> | |
| 401 <param name="blobtk_plot" value="no"/> | |
| 402 </conditional> | |
| 353 <output name="blobdir"> | 403 <output name="blobdir"> |
| 354 <assert_contents> | 404 <assert_contents> |
| 355 <has_size value="620" delta="50"/> | 405 <has_size value="620" delta="50"/> |
| 356 </assert_contents> | 406 </assert_contents> |
| 357 </output> | 407 </output> |
| 358 </test> | 408 </test> |
| 409 <!-- Test 04: Testing blobtoolkit with filter with list and fasta filtering --> | |
| 359 <test expect_num_outputs="1"> | 410 <test expect_num_outputs="1"> |
| 360 <conditional name="mode_conditional"> | 411 <conditional name="mode_conditional"> |
| 361 <param name="selector" value="filter"/> | 412 <param name="selector" value="filter"/> |
| 362 <param name="blobdir" value="test02_blobdir.tar.gz"/> | 413 <param name="blobdir" value="test02_blobdir.tar.gz"/> |
| 363 <section name="filter_options"> | 414 <section name="filter_options"> |
| 366 </section> | 417 </section> |
| 367 <section name="remove_options"> | 418 <section name="remove_options"> |
| 368 <param name="remove_selector" value="--all"/> | 419 <param name="remove_selector" value="--all"/> |
| 369 </section> | 420 </section> |
| 370 </conditional> | 421 </conditional> |
| 422 <conditional name="blobtk_plot_options"> | |
| 423 <param name="blobtk_plot" value="no"/> | |
| 424 </conditional> | |
| 371 <output name="blobdir"> | 425 <output name="blobdir"> |
| 372 <assert_contents> | 426 <assert_contents> |
| 373 <has_size value="620" delta="50"/> | 427 <has_size value="620" delta="50"/> |
| 374 </assert_contents> | 428 </assert_contents> |
| 375 </output> | 429 </output> |
| 376 </test> | 430 </test> |
| 431 <!-- Test 05: Testing blobtoolkit blob plot --> | |
| 432 <test expect_num_outputs="1"> | |
| 433 <conditional name="mode_conditional"> | |
| 434 <param name="selector" value="plot"/> | |
| 435 <param name="blobdir_input" value="blobdir.tgz"/> | |
| 436 <param name="plot_view" value="blob"/> | |
| 437 </conditional> | |
| 438 <output name="output_svg" ftype="svg" file="output.svg" compare="sim_size"/> | |
| 439 </test> | |
| 440 <!-- Test 06 :Testing blobtoolkit Snail plot --> | |
| 441 <test expect_num_outputs="1"> | |
| 442 <conditional name="mode_conditional"> | |
| 443 <param name="selector" value="plot"/> | |
| 444 <param name="blobdir_input" value="blobdir.tgz"/> | |
| 445 <param name="plot_view" value="snail"/> | |
| 446 </conditional> | |
| 447 <output name="output_svg" ftype="svg"> | |
| 448 <assert_contents> | |
| 449 <has_text text="Log10 scaffold count (total 242)"/> | |
| 450 </assert_contents> | |
| 451 </output> | |
| 452 </test> | |
| 453 <!-- Test 07: Testing blobtoolkit legend plot --> | |
| 454 <test expect_num_outputs="1"> | |
| 455 <conditional name="mode_conditional"> | |
| 456 <param name="selector" value="plot"/> | |
| 457 <param name="blobdir_input" value="blobdir.tgz"/> | |
| 458 <param name="plot_view" value="legend"/> | |
| 459 </conditional> | |
| 460 <output name="output_svg" ftype="svg" file="output_legend.svg" compare="sim_size"/> | |
| 461 </test> | |
| 462 <!-- Test 08: Testing blobtoolkit Cumulative plot --> | |
| 463 <test expect_num_outputs="1"> | |
| 464 <conditional name="mode_conditional"> | |
| 465 <param name="selector" value="plot"/> | |
| 466 <param name="blobdir_input" value="blobdir.tgz"/> | |
| 467 <param name="plot_view" value="cumulative"/> | |
| 468 </conditional> | |
| 469 <output name="output_svg" ftype="svg" file="output_cumulative.svg" compare="sim_size"/> | |
| 470 </test> | |
| 377 </tests> | 471 </tests> |
| 378 <help><