comparison minimap2.xml @ 23:6945cd53bd2d draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/minimap2 commit 86015f8e82d839cce8c23e864aea32bd0db9e44e
author iuc
date Wed, 06 Aug 2025 12:12:12 +0000
parents 66367287b4e6
children
comparison
equal deleted inserted replaced
22:66367287b4e6 23:6945cd53bd2d
1 <?xml version="1.0"?> 1 <tool id="minimap2" name="Map with minimap2" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
2 <tool id="minimap2" name="Map with minimap2" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="20.01">
3 <description>A fast pairwise aligner for genomic and spliced nucleotide sequences</description> 2 <description>A fast pairwise aligner for genomic and spliced nucleotide sequences</description>
4 <macros> 3 <macros>
5 <import>macros.xml</import> 4 <import>macros.xml</import>
6 </macros> 5 </macros>
7 <expand macro="edam_ontology"/> 6 <expand macro="edam_ontology"/>
144 #if $io_options.eqx: 143 #if $io_options.eqx:
145 --eqx 144 --eqx
146 #end if 145 #end if
147 -t \${GALAXY_SLOTS:-4} 146 -t \${GALAXY_SLOTS:-4}
148 reference.fa 147 reference.fa
149 #if $fastq_input.fastq_input_selector in ['single', 'paired_iv']: 148 #if $fastq_input.fastq_input_selector == 'single':
150 '$fastq_input.fastq_input1' 149 '$fastq_input.fastq_input1'
151 #else if $fastq_input.fastq_input_selector == 'paired':
152 '$fastq_input.fastq_input1' '$fastq_input.fastq_input2'
153 #else if $fastq_input.fastq_input_selector == 'paired_collection': 150 #else if $fastq_input.fastq_input_selector == 'paired_collection':
154 '$fastq_input.fastq_input1.forward' '$fastq_input.fastq_input1.reverse' 151 '$fastq_input.fastq_input1.forward' '$fastq_input.fastq_input1.reverse'
155 #end if 152 #end if
156 #if str($io_options.output_format) in ('BAM', 'CRAM'): 153 #if str($io_options.output_format) in ('BAM', 'CRAM'):
157 -a | samtools view --no-PG -hT reference.fa 154 -a | samtools view --no-PG -hT reference.fa
196 </conditional> 193 </conditional>
197 <!-- start unchanged copy from bwa-mem --> 194 <!-- start unchanged copy from bwa-mem -->
198 <conditional name="fastq_input"> 195 <conditional name="fastq_input">
199 <param name="fastq_input_selector" type="select" label="Single or Paired-end reads" help="Select between paired and single end data"> 196 <param name="fastq_input_selector" type="select" label="Single or Paired-end reads" help="Select between paired and single end data">
200 <option value="single">Single</option> 197 <option value="single">Single</option>
201 <option value="paired">Paired</option>
202 <option value="paired_collection">Paired Collection</option> 198 <option value="paired_collection">Paired Collection</option>
203 <option value="paired_iv">Paired Interleaved</option>
204 </param> 199 </param>
205 <!-- below, preset options are only offered for single-end input 200 <!-- below, preset options are only offered for single-end input
206 because paired-end alignment in minimap2 is only enabled with -x sr 201 because paired-end alignment in minimap2 is only enabled with -x sr
207 (see https://github.com/lh3/minimap2/issues/190) --> 202 (see https://github.com/lh3/minimap2/issues/190) -->
208 <when value="single"> 203 <when value="single">
222 <option value="splice:hq">Long-read splice alignment for PacBio CCS reads (same as `splice` but with -C5 -O6,24 -B4) (splice:hq)</option> 217 <option value="splice:hq">Long-read splice alignment for PacBio CCS reads (same as `splice` but with -C5 -O6,24 -B4) (splice:hq)</option>
223 <option value="sr">Short single-end reads without splicing (-k21 -w11 --sr -A2 -B8 -O12,32 -E2,1 -r50 -p.5 -N20 -f1000,5000 -n2 -m20 -s40 -g200 -2K50m --heap-sort=yes --secondary=no) (sr)</option> 218 <option value="sr">Short single-end reads without splicing (-k21 -w11 --sr -A2 -B8 -O12,32 -E2,1 -r50 -p.5 -N20 -f1000,5000 -n2 -m20 -s40 -g200 -2K50m --heap-sort=yes --secondary=no) (sr)</option>
224 <option value="self-homology">Construct a self-homology map - use same genome as query and reference (-DP -k19 -w19 -m200) (self-homology)</option> 219 <option value="self-homology">Construct a self-homology map - use same genome as query and reference (-DP -k19 -w19 -m200) (self-homology)</option>
225 </param> 220 </param>
226 </when> 221 </when>
227 <when value="paired">
228 <param name="fastq_input1" type="data" format="fastqsanger,fastqsanger.gz,fasta" label="Select first set of reads" help="Specify dataset with forward reads"/>
229 <param name="fastq_input2" type="data" format="fastqsanger,fastqsanger.gz,fasta" label="Select second set of reads" help="Specify dataset with reverse reads"/>
230 <expand macro="pe_anaylsis_fixed_selector" />
231 </when>
232 <when value="paired_collection"> 222 <when value="paired_collection">
233 <param name="fastq_input1" format="fastqsanger,fastqsanger.gz,fasta" type="data_collection" collection_type="paired" label="Select a paired collection" help="See help section for an explanation of dataset collections"/> 223 <param name="fastq_input1" format="fastqsanger,fastqsanger.gz,fasta" type="data_collection" collection_type="paired" label="Select a paired collection" help="See help section for an explanation of dataset collections"/>
234 <expand macro="pe_anaylsis_fixed_selector" />
235 </when>
236 <when value="paired_iv">
237 <param name="fastq_input1" type="data" format="fastqsanger,fastqsanger.gz,fasta" label="Select fastq dataset" help="Specify dataset with interleaved reads"/>
238 <expand macro="pe_anaylsis_fixed_selector" /> 224 <expand macro="pe_anaylsis_fixed_selector" />
239 </when> 225 </when>
240 </conditional> 226 </conditional>
241 <section name="indexing_options" title="Indexing options"> 227 <section name="indexing_options" title="Indexing options">
242 <param argument="-H" type="boolean" optional="true" truevalue="-H" falsevalue="" label="Use homopolymer-compressed k-mer ?"/> 228 <param argument="-H" type="boolean" optional="true" truevalue="-H" falsevalue="" label="Use homopolymer-compressed k-mer ?"/>
399 </data> 385 </data>
400 </outputs> 386 </outputs>
401 <tests> 387 <tests>
402 <test expect_num_outputs="1"> 388 <test expect_num_outputs="1">
403 <!-- test single input --> 389 <!-- test single input -->
404 <param name="reference_source_selector" value="history" /> 390 <conditional name="reference_source">
405 <param name="ref_file" ftype="fasta" value="bwa-mem-mt-genome.fa"/> 391 <param name="reference_source_selector" value="history" />
406 <param name="fastq_input_selector" value="single"/> 392 <param name="ref_file" ftype="fasta" value="bwa-mem-mt-genome.fa"/>
407 <param name="fastq_input1" ftype="fastqsanger" value="bwa-mem-fasta1.fa"/> 393 </conditional>
408 <param name="analysis_type_selector" value="sr"/> 394 <conditional name="fastq_input">
395 <param name="fastq_input_selector" value="single"/>
396 <param name="fastq_input1" ftype="fastqsanger" value="bwa-mem-fasta1.fa"/>
397 <param name="analysis_type_selector" value="sr"/>
398 </conditional>
409 <output name="alignment_output" ftype="bam" file="minimap2-test1-fasta.bam" lines_diff="4" /> 399 <output name="alignment_output" ftype="bam" file="minimap2-test1-fasta.bam" lines_diff="4" />
410 </test> 400 </test>
411 <test expect_num_outputs="1"> 401 <test expect_num_outputs="1">
412 <!-- test cram output --> 402 <!-- test cram output -->
413 <param name="reference_source_selector" value="history" /> 403 <conditional name="reference_source">
414 <param name="ref_file" ftype="fasta" value="bwa-mem-mt-genome.fa"/> 404 <param name="reference_source_selector" value="history" />
415 <param name="fastq_input_selector" value="single"/> 405 <param name="ref_file" ftype="fasta" value="bwa-mem-mt-genome.fa"/>
416 <param name="fastq_input1" ftype="fastqsanger" value="bwa-mem-fasta1.fa"/> 406 </conditional>
417 <param name="analysis_type_selector" value="sr"/> 407 <conditional name="fastq_input">
418 <param name="output_format" value="CRAM"/> 408 <param name="fastq_input_selector" value="single"/>
409 <param name="fastq_input1" ftype="fastqsanger" value="bwa-mem-fasta1.fa"/>
410 <param name="analysis_type_selector" value="sr"/>
411 </conditional>
412 <section name="io_options">
413 <param name="output_format" value="CRAM"/>
414 </section>
419 <output name="alignment_output" ftype="cram" file="minimap2-test1-fasta.cram" compare="sim_size" /> 415 <output name="alignment_output" ftype="cram" file="minimap2-test1-fasta.cram" compare="sim_size" />
420 </test> 416 </test>
421 <test expect_num_outputs="1"> 417 <test expect_num_outputs="1">
422 <!-- test paired input --> 418 <!-- test paired input -->
423 <param name="reference_source_selector" value="history" /> 419 <conditional name="reference_source">
424 <param name="ref_file" ftype="fasta" value="bwa-mem-mt-genome.fa"/> 420 <param name="reference_source_selector" value="history" />
425 <param name="fastq_input_selector" value="paired"/> 421 <param name="ref_file" ftype="fasta" value="bwa-mem-mt-genome.fa"/>
426 <param name="fastq_input1" ftype="fastqsanger" value="bwa-mem-fastq1.fq"/> 422 </conditional>
427 <param name="fastq_input2" ftype="fastqsanger" value="bwa-mem-fastq2.fq"/> 423 <conditional name="fastq_input">
424 <param name="fastq_input_selector" value="paired_collection"/>
425 <param name="fastq_input1">
426 <collection type="paired">
427 <element name="forward" value="bwa-mem-fastq1.fq" />
428 <element name="reverse" value="bwa-mem-fastq2.fq" />
429 </collection>
430 </param>
431 </conditional>
428 <output name="alignment_output" ftype="bam" file="minimap2-test1.bam" lines_diff="4" /> 432 <output name="alignment_output" ftype="bam" file="minimap2-test1.bam" lines_diff="4" />
429 </test> 433 </test>
430 <test expect_num_outputs="1"> 434 <test expect_num_outputs="1">
431 <!-- test paired input with one pair compressed --> 435 <!-- test paired input with one pair compressed -->
432 <param name="reference_source_selector" value="history" /> 436 <conditional name="reference_source">
433 <param name="ref_file" ftype="fasta" value="bwa-mem-mt-genome.fa"/> 437 <param name="reference_source_selector" value="history" />
434 <param name="fastq_input_selector" value="paired"/> 438 <param name="ref_file" ftype="fasta" value="bwa-mem-mt-genome.fa"/>
435 <param name="fastq_input1" ftype="fastqsanger.gz" value="bwa-mem-fastq1.fq.gz"/> 439 </conditional>
436 <param name="fastq_input2" ftype="fastqsanger" value="bwa-mem-fastq2.fq"/> 440 <conditional name="fastq_input">
441 <param name="fastq_input_selector" value="paired_collection"/>
442 <param name="fastq_input1">
443 <collection type="paired">
444 <element name="forward" value="bwa-mem-fastq1.fq.gz" />
445 <element name="reverse" value="bwa-mem-fastq2.fq" />
446 </collection>
447 </param>
448 </conditional>
437 <output name="alignment_output" ftype="bam" file="minimap2-test1.bam" lines_diff="4" /> 449 <output name="alignment_output" ftype="bam" file="minimap2-test1.bam" lines_diff="4" />
438 </test> 450 </test>
439 <test expect_num_outputs="1"> 451 <test expect_num_outputs="1">
440 <!-- test collection input -->
441 <param name="reference_source_selector" value="history" />
442 <param name="ref_file" ftype="fasta" value="bwa-mem-mt-genome.fa"/>
443 <param name="fastq_input_selector" value="paired_collection"/>
444 <param name="fastq_input1">
445 <collection type="paired">
446 <element name="forward" value="bwa-mem-fastq1.fq" />
447 <element name="reverse" value="bwa-mem-fastq2.fq" />
448 </collection>
449 </param>
450 <output name="alignment_output" ftype="bam" file="minimap2-test2.bam" lines_diff="4" />
451 </test>
452 <test expect_num_outputs="1">
453 <!-- test data table reference --> 452 <!-- test data table reference -->
454 <param name="reference_source_selector" value="cached" /> 453 <conditional name="reference_source">
455 <param name="ref_file" value="bwa-mem-mt-genome"/> 454 <param name="reference_source_selector" value="cached" />
456 <param name="fastq_input_selector" value="single"/> 455 <param name="ref_file" value="bwa-mem-mt-genome"/>
457 <param name="fastq_input1" ftype="fastqsanger" value="bwa-mem-fasta1.fa"/> 456 </conditional>
458 <param name="analysis_type_selector" value="sr"/> 457 <conditional name="fastq_input">
458 <param name="fastq_input_selector" value="single"/>
459 <param name="fastq_input1" ftype="fastqsanger" value="bwa-mem-fasta1.fa"/>
460 <param name="analysis_type_selector" value="sr"/>
461 </conditional>
459 <output name="alignment_output" ftype="bam" file="minimap2-test1-fasta.bam" lines_diff="4" /> 462 <output name="alignment_output" ftype="bam" file="minimap2-test1-fasta.bam" lines_diff="4" />
460 </test> 463 </test>
461 <test expect_num_outputs="1"> 464 <test expect_num_outputs="1">
462 <!-- test alignment options --> 465 <!-- test alignment options -->
463 <param name="reference_source_selector" value="cached" /> 466 <conditional name="reference_source">
464 <param name="min_occ_floor" value="1000"/> 467 <param name="reference_source_selector" value="cached" />
465 <param name="ref_file" value="bwa-mem-mt-genome"/> 468 <param name="ref_file" value="bwa-mem-mt-genome"/>
466 <param name="fastq_input_selector" value="single"/> 469 </conditional>
467 <param name="fastq_input1" ftype="fastqsanger" value="bwa-mem-fasta1.fa"/> 470 <section name="mapping_options">
468 <param name="analysis_type_selector" value="sr"/> 471 <param name="min_occ_floor" value="1000"/>
472 </section>
473 <conditional name="fastq_input">
474 <param name="fastq_input_selector" value="single"/>
475 <param name="fastq_input1" ftype="fastqsanger" value="bwa-mem-fasta1.fa"/>
476 <param name="analysis_type_selector" value="sr"/>
477 </conditional>
469 <section name="alignment_options"> 478 <section name="alignment_options">
470 <!-- the folowing settings correspond to the defaults for "sr" 479 <!-- the folowing settings correspond to the defaults for "sr"
471 mode. The purpose is to check that all alignment params get 480 mode. The purpose is to check that all alignment params get
472 parsed correctly. --> 481 parsed correctly. -->
473 <param name="A" value="2" /> 482 <param name="A" value="2" />
486 </section> 495 </section>
487 <output name="alignment_output" ftype="bam" file="minimap2-test1-fasta.bam" lines_diff="4" /> 496 <output name="alignment_output" ftype="bam" file="minimap2-test1-fasta.bam" lines_diff="4" />
488 </test> 497 </test>
489 <test expect_num_outputs="1"> 498 <test expect_num_outputs="1">
490 <!-- test paf output --> 499 <!-- test paf output -->
491 <param name="reference_source_selector" value="history" /> 500 <conditional name="reference_source">
492 <param name="ref_file" ftype="fastqsanger" value="mini_reads.fq" /> 501 <param name="reference_source_selector" value="history" />
493 <param name="fastq_input_selector" value="single"/> 502 <param name="ref_file" ftype="fastqsanger" value="mini_reads.fq" />
494 <param name="fastq_input1" ftype="fastqsanger" value="mini_reads.fq" /> 503 </conditional>
495 <param name="analysis_type_selector" value="ava-ont"/> 504 <conditional name="fastq_input">
496 <param name="output_format" value="paf"/> 505 <param name="fastq_input_selector" value="single"/>
506 <param name="fastq_input1" ftype="fastqsanger" value="mini_reads.fq" />
507 <param name="analysis_type_selector" value="ava-ont"/>
508 </conditional>
509 <section name="io_options">
510 <param name="output_format" value="paf"/>
511 </section>
497 <output name="alignment_output" ftype="paf" file="mini_reads.paf" /> 512 <output name="alignment_output" ftype="paf" file="mini_reads.paf" />
498 </test> 513 </test>
499 <test expect_num_outputs="1"> 514 <test expect_num_outputs="1">
500 <!-- test self-homology mode --> 515 <!-- test self-homology mode -->
501 <param name="reference_source_selector" value="history" /> 516 <conditional name="reference_source">
502 <param name="ref_file" ftype="fasta" value="minimap2-self-homology.fasta" /> 517 <param name="reference_source_selector" value="history" />
503 <param name="fastq_input_selector" value="single" /> 518 <param name="ref_file" ftype="fasta" value="minimap2-self-homology.fasta" />
504 <param name="fastq_input1" ftype="fasta" value="minimap2-self-homology.fasta" /> 519 </conditional>
505 <param name="analysis_type_selector" value="self-homology" /> 520 <conditional name="fastq_input">
521 <param name="fastq_input_selector" value="single" />
522 <param name="fastq_input1" ftype="fasta" value="minimap2-self-homology.fasta" />
523 <param name="analysis_type_selector" value="self-homology" />
524 </conditional>
506 <output name="alignment_output" ftype="bam" file="minimap2-self-homology.bam" lines_diff="4" /> 525 <output name="alignment_output" ftype="bam" file="minimap2-self-homology.bam" lines_diff="4" />
507 </test> 526 </test>
508 <test expect_num_outputs="1"> 527 <test expect_num_outputs="1">
509 <!-- test mask-len option --> 528 <!-- test mask-len option -->
510 <param name="reference_source_selector" value="history" /> 529 <conditional name="reference_source">
511 <param name="ref_file" ftype="fasta" value="bwa-mem-mt-genome.fa"/> 530 <param name="reference_source_selector" value="history" />
512 <param name="fastq_input_selector" value="single"/> 531 <param name="ref_file" ftype="fasta" value="bwa-mem-mt-genome.fa"/>
513 <param name="fastq_input1" ftype="fastqsanger" value="bwa-mem-fasta1.fa"/> 532 </conditional>
514 <param name="analysis_type_selector" value="sr"/> 533 <conditional name="fastq_input">
534 <param name="fastq_input_selector" value="single"/>
535 <param name="fastq_input1" ftype="fastqsanger" value="bwa-mem-fasta1.fa"/>
536 <param name="analysis_type_selector" value="sr"/>
537 </conditional>
515 <section name="mapping_options"> 538 <section name="mapping_options">
516 <param name="mask_len" value="100"/> 539 <param name="mask_len" value="100"/>
517 </section> 540 </section>
518 <output name="alignment_output" ftype="bam" file="minimap2-test-mask_len.bam" lines_diff="4" /> 541 <output name="alignment_output" ftype="bam" file="minimap2-test-mask_len.bam" lines_diff="4" />
519 </test> 542 </test>
520 <test expect_num_outputs="1"> 543 <test expect_num_outputs="1">
521 <!-- test map-hifi --> 544 <!-- test map-hifi -->
522 <param name="reference_source_selector" value="history" /> 545 <conditional name="reference_source">
523 <param name="ref_file" ftype="fasta" value="pacbio_hifi_assembly.fa.gz"/> 546 <param name="reference_source_selector" value="history" />
524 <param name="fastq_input_selector" value="single"/> 547 <param name="ref_file" ftype="fasta" value="pacbio_hifi_assembly.fa.gz"/>
525 <param name="fastq_input1" ftype="fastqsanger" value="pacbio_hifi_reads.fasta.gz"/> 548 </conditional>
526 <param name="analysis_type_selector" value="map-hifi"/> 549 <conditional name="fastq_input">
550 <param name="fastq_input_selector" value="single"/>
551 <param name="fastq_input1" ftype="fastqsanger" value="pacbio_hifi_reads.fasta.gz"/>
552 <param name="analysis_type_selector" value="map-hifi"/>
553 </conditional>
527 <output name="alignment_output" ftype="bam" file="minimap2-test_hifi-fasta.bam" lines_diff="4" /> 554 <output name="alignment_output" ftype="bam" file="minimap2-test_hifi-fasta.bam" lines_diff="4" />
528 </test> 555 </test>
529 <test expect_num_outputs="1"> 556 <test expect_num_outputs="1">
530 <!-- test map-hifi uncompressed reference--> 557 <!-- test map-hifi uncompressed reference-->
531 <param name="reference_source_selector" value="history" /> 558 <conditional name="reference_source">
532 <param name="ref_file" ftype="fasta" value="pacbio_hifi_assembly.fa"/> 559 <param name="reference_source_selector" value="history" />
533 <param name="fastq_input_selector" value="single"/> 560 <param name="ref_file" ftype="fasta" value="pacbio_hifi_assembly.fa"/>
534 <param name="fastq_input1" ftype="fastqsanger" value="pacbio_hifi_reads.fasta.gz"/> 561 </conditional>
535 <param name="analysis_type_selector" value="map-hifi"/> 562 <conditional name="fastq_input">
563 <param name="fastq_input_selector" value="single"/>
564 <param name="fastq_input1" ftype="fastqsanger" value="pacbio_hifi_reads.fasta.gz"/>
565 <param name="analysis_type_selector" value="map-hifi"/>
566 </conditional>
536 <output name="alignment_output" ftype="bam" file="minimap2-test_hifi-2-fasta.bam" lines_diff="4" /> 567 <output name="alignment_output" ftype="bam" file="minimap2-test_hifi-2-fasta.bam" lines_diff="4" />
537 </test> 568 </test>
538 <test expect_num_outputs="1"> 569 <test expect_num_outputs="1">
539 <!-- test kmer ocurrence interval option --> 570 <!-- test kmer ocurrence interval option -->
540 <param name="reference_source_selector" value="history" /> 571 <conditional name="reference_source">
541 <param name="ref_file" ftype="fasta" value="bwa-mem-mt-genome.fa"/> 572 <param name="reference_source_selector" value="history" />
542 <param name="fastq_input_selector" value="single"/> 573 <param name="ref_file" ftype="fasta" value="bwa-mem-mt-genome.fa"/>
543 <param name="fastq_input1" ftype="fastqsanger" value="bwa-mem-fasta1.fa"/> 574 </conditional>
544 <param name="analysis_type_selector" value="sr"/> 575 <conditional name="fastq_input">
545 <conditional name="kmer_ocurrence_interval"> 576 <param name="fastq_input_selector" value="single"/>
546 <param name="interval" value="enabled"/> 577 <param name="fastq_input1" ftype="fastqsanger" value="bwa-mem-fasta1.fa"/>
547 <param name="lower_limit" value="10"/> 578 <param name="analysis_type_selector" value="sr"/>
548 <param name="upper_limit" value="30"/> 579 </conditional>
549 </conditional> 580 <section name="mapping_options">
581 <conditional name="kmer_ocurrence_interval">
582 <param name="interval" value="enabled"/>
583 <param name="lower_limit" value="10"/>
584 <param name="upper_limit" value="30"/>
585 </conditional>
586 </section>
550 <output name="alignment_output" ftype="bam" file="minimap2-test-kmer_ocurrence.bam" lines_diff="4" /> 587 <output name="alignment_output" ftype="bam" file="minimap2-test-kmer_ocurrence.bam" lines_diff="4" />
551 </test> 588 </test>
552 </tests> 589 </tests>
553 <help> 590 <help>
554 591
555 Users’ Guide 592 Users' Guide
556 ------------ 593 ------------
557 594
558 Minimap2 is a versatile sequence alignment program that aligns DNA or 595 Minimap2 is a versatile sequence alignment program that aligns DNA or
559 mRNA sequences against a large reference database. Typical use cases 596 mRNA sequences against a large reference database. Typical use cases
560 include: (1) mapping PacBio or Oxford Nanopore genomic reads to the 597 include: (1) mapping PacBio or Oxford Nanopore genomic reads to the