comparison diamond.xml @ 41:b5a8cc7a993f draft

Uploaded
author p.lucas
date Tue, 04 Jun 2024 12:59:41 +0000
parents ae2a362dd513
children a203fc50858c
comparison
equal deleted inserted replaced
40:ae2a362dd513 41:b5a8cc7a993f
1 <tool id="bg_diamond" name="Diamond" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="19.01"> 1 <tool id="pl_diamond" name="PL_Diamond" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="19.01">
2 <description>alignment tool for short sequences against a protein database</description> 2 <description>alignment tool for short sequences against a protein database</description>
3 <macros> 3 <macros>
4 <import>macros.xml</import> 4 <import>macros.xml</import>
5 </macros> 5 </macros>
6 <xrefs>
7 <xref type="bio.tools">diamond</xref>
8 </xrefs>
9 <expand macro="requirements" />
10 <expand macro="stdio" /> 6 <expand macro="stdio" />
11 <expand macro="version_command" /> 7 <expand macro="version_command" />
12 <command detect_errors="aggressive"> 8 <command detect_errors="aggressive">
13 <![CDATA[ 9 <![CDATA[
14 10
18 ln -s ${ref_db_source.index.fields.db_path} ./database.dmnd 14 ln -s ${ref_db_source.index.fields.db_path} ./database.dmnd
19 #end if 15 #end if
20 16
21 && 17 &&
22 18
23 diamond 19 /usr/bin/diamond
24 $method_cond.method_select 20 $method_cond.method_select
25 --quiet 21 --quiet
26 --threads "\${GALAXY_SLOTS:-12}" 22 --threads "\${GALAXY_SLOTS:-12}"
27 --db ./database 23 --db ./database
28 --query '$query' 24 --query '$query'
176 <option value="indexed">Use a built-in index</option> 172 <option value="indexed">Use a built-in index</option>
177 <option value="history">Use one from the history</option> 173 <option value="history">Use one from the history</option>
178 </param> 174 </param>
179 <when value="indexed"> 175 <when value="indexed">
180 <param name="index" type="select" label="Select a reference database" help="If your database of interest is not listed, contact your Galaxy admin"> 176 <param name="index" type="select" label="Select a reference database" help="If your database of interest is not listed, contact your Galaxy admin">
181 <options from_data_table="diamond_database"> 177 <options from_data_table="pl_diamond_database">
182 <filter type="sort_by" column="2"/> 178 <filter type="sort_by" column="2"/>
183 <validator type="no_options" message="No indexes are available for the selected input dataset"/> 179 <validator type="no_options" message="No indexes are available for the selected input dataset"/>
184 </options> 180 </options>
185 </param> 181 </param>
186 </when> 182 </when>
316 </data> 312 </data>
317 <data format_source="query" name="alqueries" label="${tool.name} on ${on_string}: aligned queries"> 313 <data format_source="query" name="alqueries" label="${tool.name} on ${on_string}: aligned queries">
318 <filter>output_section['output_unal'] and "--un" in output_section['output_unal']</filter> 314 <filter>output_section['output_unal'] and "--un" in output_section['output_unal']</filter>
319 </data> 315 </data>
320 </outputs> 316 </outputs>
321 <tests>
322 <!--Test 01-->
323 <test expect_num_outputs="3">
324 <conditional name="method_cond">
325 <param name="method_select" value="blastp" />
326 </conditional>
327 <param name="query" value="protein.fasta" ftype="fasta"/>
328 <conditional name="ref_db_source">
329 <param name="db_source" value="history"/>
330 <param name="reference_database" value="db-wtax.dmnd"/>
331 </conditional>
332 <section name="output_section">
333 <conditional name="output">
334 <param name="outfmt" value="6"/>
335 <!-- removed ,cigar from test: https://github.com/bbuchfink/diamond/issues/532 -->
336 <param name="fields" value="qseqid,sseqid,pident,length,mismatch,gapopen,qstart,qend,sstart,send,evalue,bitscore,scovhsp,sskingdoms,skingdoms,sphylums"/>
337 <param name="unal" value="true"/>
338 </conditional>
339 </section>
340 <conditional name="sens_cond">
341 <param name="sensitivity" value=""/>
342 </conditional>
343 <param name="matrix" value="BLOSUM62"/>
344 <param name="comp_based_stats" value="1"/>
345 <param name="masking" value="1"/>
346 <conditional name="hit_filter">
347 <param name="hit_filter_select" value="max"/>
348 <param name="max_target_seqs" value="25" />
349 </conditional>
350 <conditional name="filter_score">
351 <param name="filter_score_select" value="evalue"/>
352 <param name="evalue" value="0.001" />
353 </conditional>
354 <param name="id" value="0"/>
355 <param name="query_cover" value="0"/>
356 <conditional name="sens_cond">
357 <param name="block_size" value="2"/>
358 </conditional>
359 <param name="output_unal" value="--al,--un"/>
360 <output name="unalqueries">
361 <assert_contents>
362 <has_line line=">shuffled sequence that should go to unaligned"/>
363 </assert_contents>
364 </output>
365 <output name="alqueries">
366 <assert_contents>
367 <has_line line=">sequence more text"/>
368 </assert_contents>
369 </output>
370 <output name="blast_tabular" file="diamond_results.tabular"/>
371 </test>
372 <!--Test 02-->
373 <test expect_num_outputs="1">
374 <conditional name="method_cond">
375 <param name="method_select" value="blastp" />
376 </conditional>
377 <param name="query" value="protein.fasta" ftype="fasta"/>
378 <conditional name="ref_db_source">
379 <param name="db_source" value="history"/>
380 <param name="reference_database" value="db-wtax.dmnd"/>
381 </conditional>
382 <conditional name="tax_cond">
383 <param name="tax_select" value="list"/>
384 <param name="taxonlist" value="2" />
385 </conditional>
386 <section name="output_section">
387 <conditional name="output">
388 <param name="outfmt" value="6"/>
389 <param name="fields" value="qseqid,sseqid,pident,length,mismatch,gapopen,qstart,qend,sstart,send,evalue,bitscore"/>
390 </conditional>
391 </section>
392 <conditional name="sens_cond">
393 <param name="sensitivity" value=""/>
394 </conditional>
395 <param name="matrix" value="BLOSUM62"/>
396 <param name="comp_based_stats" value="1"/>
397 <param name="masking" value="1"/>
398 <conditional name="hit_filter">
399 <param name="hit_filter_select" value="max"/>
400 <param name="max_target_seqs" value="25" />
401 </conditional>
402 <conditional name="filter_score">
403 <param name="filter_score_select" value="evalue"/>
404 <param name="evalue" value="0.001" />
405 </conditional>
406 <param name="id" value="0"/>
407 <param name="query_cover" value="0"/>
408 <conditional name="sens_cond">
409 <param name="block_size" value="2"/>
410 </conditional>
411 <output name="blast_tabular" file="diamond_results.wtax.tabular"/>
412 </test>
413 <!--Test 03-->
414 <test expect_num_outputs="1">
415 <conditional name="method_cond">
416 <param name="method_select" value="blastx" />
417 <conditional name="frameshift_cond">
418 <param name="frameshift_select" value="yes"/>
419 </conditional>
420 </conditional>
421 <param name="query" value="nucleotide.fasta" ftype="fasta"/>
422 <conditional name="ref_db_source">
423 <param name="db_source" value="history"/>
424 <param name="reference_database" value="db.dmnd"/>
425 </conditional>
426 <section name="output_section">
427 <conditional name="output">
428 <param name="outfmt" value="0"/>
429 </conditional>
430 </section>
431 <conditional name="sens_cond">
432 <param name="sensitivity" value=""/>
433 </conditional>
434 <param name="matrix" value="BLOSUM62"/>
435 <param name="comp_based_stats" value="1"/>
436 <param name="masking" value="1"/>
437 <conditional name="hit_filter">
438 <param name="hit_filter_select" value="top"/>
439 <param name="top" value="10" />
440 </conditional>
441 <conditional name="filter_score">
442 <param name="filter_score_select" value="min-score"/>
443 <param name="min_score" value="1" />
444 </conditional>
445 <param name="id" value="0"/>
446 <param name="query_cover" value="0"/>
447 <conditional name="sens_cond">
448 <param name="block_size" value="2"/>
449 </conditional>
450 <output name="blast_tabular" file="diamond_results.pairwise"/>
451 </test>
452 <!--Test 04-->
453 <test expect_num_outputs="1">
454 <conditional name="method_cond">
455 <param name="method_select" value="blastp" />
456 </conditional>
457 <param name="query" value="protein.fasta" ftype="fasta"/>
458 <conditional name="ref_db_source">
459 <param name="db_source" value="history"/>
460 <param name="reference_database" value="db-wtax.dmnd"/>
461 </conditional>
462 <section name="output_section">
463 <conditional name="output">
464 <param name="outfmt" value="100"/>
465 <param name="salltitles" value="false"/>
466 <param name="sallseqid" value="false"/>
467 </conditional>
468 </section>
469 <output name="daa_output" file="diamond_results.daa" compare="sim_size" delta="10"/>
470 </test>
471 <!--Test 05-->
472 <test expect_num_outputs="1">
473 <conditional name="method_cond">
474 <param name="method_select" value="blastx" />
475 <conditional name="frameshift_cond">
476 <param name="frameshift_select" value="yes"/>
477 </conditional>
478 </conditional>
479 <param name="query" value="nucleotide.fasta" ftype="fasta"/>
480 <conditional name="ref_db_source">
481 <param name="db_source" value="indexed"/>
482 <param name="index" value="testDb"/>
483 </conditional>
484 <section name="output_section">
485 <conditional name="output">
486 <param name="outfmt" value="0"/>
487 </conditional>
488 </section>
489 <conditional name="sens_cond">
490 <param name="sensitivity" value=""/>
491 </conditional>
492 <param name="matrix" value="BLOSUM62"/>
493 <param name="comp_based_stats" value="1"/>
494 <param name="masking" value="1"/>
495 <conditional name="hit_filter">
496 <param name="hit_filter_select" value="top"/>
497 <param name="top" value="10" />
498 </conditional>
499 <conditional name="filter_score">
500 <param name="filter_score_select" value="min-score"/>
501 <param name="min_score" value="1" />
502 </conditional>
503 <param name="id" value="0"/>
504 <param name="query_cover" value="0"/>
505 <conditional name="sens_cond">
506 <param name="block_size" value="2"/>
507 </conditional>
508 <output name="blast_tabular" file="diamond_results.pairwise"/>
509 </test>
510 <!-- Test 06 iterate option-->
511 <test expect_num_outputs="1">
512 <conditional name="method_cond">
513 <param name="method_select" value="blastx" />
514 </conditional>
515 <param name="query" value="nucleotide.fasta" ftype="fasta"/>
516 <conditional name="ref_db_source">
517 <param name="db_source" value="indexed"/>
518 <param name="index" value="testDb"/>
519 </conditional>
520 <param name="iterate" value="true"/>
521 <section name="output_section">
522 <conditional name="output">
523 <param name="outfmt" value="6"/>
524 <param name="fields" value="qseqid,sseqid,pident,length,mismatch,gapopen,qstart,qend,sstart,send,evalue,bitscore"/>
525 </conditional>
526 </section>
527 <output name="blast_tabular" file="diamond_results_iterate.tabular"/>
528 </test>
529 <!--Test 07 algo option-->
530 <test expect_num_outputs="1">
531 <conditional name="method_cond">
532 <param name="method_select" value="blastx" />
533 </conditional>
534 <param name="query" value="nucleotide.fasta" ftype="fasta"/>
535 <conditional name="ref_db_source">
536 <param name="db_source" value="indexed"/>
537 <param name="index" value="testDb"/>
538 </conditional>
539 <param name="algo" value="1"/>
540 <section name="output_section">
541 <conditional name="output">
542 <param name="outfmt" value="6"/>
543 <param name="fields" value="qseqid,sseqid,pident,length,mismatch,gapopen,qstart,qend,sstart,send,evalue,bitscore"/>
544 </conditional>
545 </section>
546 <output name="blast_tabular" file="diamond_results_algorithm.tabular"/>
547 </test>
548 <!--Test 08 global-ranking option-->
549 <test expect_num_outputs="1">
550 <conditional name="method_cond">
551 <param name="method_select" value="blastx" />
552 </conditional>
553 <param name="query" value="nucleotide.fasta" ftype="fasta"/>
554 <conditional name="ref_db_source">
555 <param name="db_source" value="indexed"/>
556 <param name="index" value="testDb"/>
557 </conditional>
558 <param name="global_ranking" value="10"/>
559 <section name="output_section">
560 <conditional name="output">
561 <param name="outfmt" value="6"/>
562 <param name="fields" value="qseqid,sseqid,pident,length,mismatch,gapopen,qstart,qend,sstart,send,evalue,bitscore"/>
563 </conditional>
564 </section>
565 <output name="blast_tabular" file="diamond_results_global_ranking.tabular"/>
566 </test>
567 <!--Test 09 max-hsps option-->
568 <test expect_num_outputs="1">
569 <conditional name="method_cond">
570 <param name="method_select" value="blastx" />
571 </conditional>
572 <param name="query" value="nucleotide.fasta" ftype="fasta"/>
573 <conditional name="ref_db_source">
574 <param name="db_source" value="indexed"/>
575 <param name="index" value="testDb"/>
576 </conditional>
577 <param name="max_hsps" value="10"/>
578 <section name="output_section">
579 <conditional name="output">
580 <param name="outfmt" value="6"/>
581 <param name="fields" value="qseqid,sseqid,pident,length,mismatch,gapopen,qstart,qend,sstart,send,evalue,bitscore"/>
582 </conditional>
583 </section>
584 <output name="blast_tabular" file="diamond_results_max_hsps.tabular"/>
585 </test>
586 <!--Test 10 seed-cut option-->
587 <test expect_num_outputs="1">
588 <conditional name="method_cond">
589 <param name="method_select" value="blastx" />
590 </conditional>
591 <param name="query" value="nucleotide.fasta" ftype="fasta"/>
592 <conditional name="ref_db_source">
593 <param name="db_source" value="indexed"/>
594 <param name="index" value="testDb"/>
595 </conditional>
596 <param name="seed_cut" value="100"/>
597 <section name="output_section">
598 <conditional name="output">
599 <param name="outfmt" value="6"/>
600 <param name="fields" value="qseqid,sseqid,pident,length,mismatch,gapopen,qstart,qend,sstart,send,evalue,bitscore"/>
601 </conditional>
602 </section>
603 <output name="blast_tabular" file="diamond_results_seed_cut.tabular"/>
604 </test>
605 <!--Test 11 freq-masking option-->
606 <test expect_num_outputs="1">
607 <conditional name="method_cond">
608 <param name="method_select" value="blastx" />
609 </conditional>
610 <param name="query" value="nucleotide.fasta" ftype="fasta"/>
611 <conditional name="ref_db_source">
612 <param name="db_source" value="indexed"/>
613 <param name="index" value="testDb"/>
614 </conditional>
615 <param name="freq_masking" value="true"/>
616 <section name="output_section">
617 <conditional name="output">
618 <param name="outfmt" value="6"/>
619 <param name="fields" value="qseqid,sseqid,pident,length,mismatch,gapopen,qstart,qend,sstart,send,evalue,bitscore"/>
620 </conditional>
621 </section>
622 <output name="blast_tabular" file="diamond_results_freq_masking.tabular"/>
623 </test>
624 <!--Test 12 motif-masking option-->
625 <test expect_num_outputs="1">
626 <conditional name="method_cond">
627 <param name="method_select" value="blastx" />
628 </conditional>
629 <param name="query" value="nucleotide.fasta" ftype="fasta"/>
630 <conditional name="ref_db_source">
631 <param name="db_source" value="indexed"/>
632 <param name="index" value="testDb"/>
633 </conditional>
634 <section name="advanced_section">
635 <param name="motif_masking" value="1"/>
636 </section>
637 <section name="output_section">
638 <conditional name="output">
639 <param name="outfmt" value="6"/>
640 <param name="fields" value="qseqid,sseqid,pident,length,mismatch,gapopen,qstart,qend,sstart,send,evalue,bitscore"/>
641 </conditional>
642 </section>
643 <output name="blast_tabular" file="diamond_results_motif_masking.tabular"/>
644 </test>
645 </tests>
646 <help> 317 <help>
647 <![CDATA[ 318 <![CDATA[
648 319
649 **What it does** 320 **What it does**
650 321