comparison hisat2.xml @ 29:26371a1df031 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hisat2 commit f18e8826ecb395a40fc321b5f3b66ab6d7f51625"
author iuc
date Mon, 25 Jan 2021 17:29:15 +0000
parents d4b55e2beb12
children 6c19daec423d
comparison
equal deleted inserted replaced
28:d4b55e2beb12 29:26371a1df031
1 <tool id="hisat2" name="HISAT2" version="2.1.0+galaxy6" profile="17.01"> 1 <tool id="hisat2" name="HISAT2" version="2.1.0+galaxy7" profile="17.01">
2 <description>A fast and sensitive alignment program</description> 2 <description>A fast and sensitive alignment program</description>
3 <macros> 3 <macros>
4 <import>hisat2_macros.xml</import> 4 <import>hisat2_macros.xml</import>
5 </macros> 5 </macros>
6 <requirements> 6 <requirements>
7 <requirement type="package" version="2.1.0">hisat2</requirement> 7 <requirement type="package" version="2.1.0">hisat2</requirement>
8 <requirement type="package" version="1.9">samtools</requirement> 8 <requirement type="package" version="1.11">samtools</requirement>
9 <requirement type="package" version="1.3">seqtk</requirement> 9 <requirement type="package" version="1.3">seqtk</requirement>
10 </requirements> 10 </requirements>
11 <stdio> 11 <stdio>
12 <regex level="fatal" match="hisat2-align exited with value 1" source="both" /> 12 <regex level="fatal" match="hisat2-align exited with value 1" source="both" />
13 <regex level="fatal" match="hisat2: not found" source="both" /> 13 <regex level="fatal" match="hisat2: not found" source="both" />
297 #if str($adv.reporting_options.max_primary) != '': 297 #if str($adv.reporting_options.max_primary) != '':
298 -k ${adv.reporting_options.max_primary} 298 -k ${adv.reporting_options.max_primary}
299 #end if 299 #end if
300 #end if 300 #end if
301 301
302
303 ## SAM options
304
305 #if str($adv.sam_options.sam_options_selector) == "advanced":
306 #if $adv.sam_options.no_unal:
307 --no-unal
308 #end if
309 #if str($adv.sam_options.read_groups.rg_labels) == "Yes":
310 --rg-id '$adv.sam_options.read_groups.rg_id'
311 #if len('$adv.sam_options.read_groups.read_groups'):
312 #for $i, $id in enumerate($adv.sam_options.read_groups.read_groups):
313 --rg '$id.rg'
314 #end for
315 #end if
316 #end if
317 $adv.sam_options.chr_text
318 #if $adv.sam_options.omit_sec_seq:
319 --omit-sec-seq
320 #end if
321 #end if
302 322
303 ## Other options 323 ## Other options
304 324
305 #if str( $adv.other_options.other_options_selector ) == "advanced": 325 #if str( $adv.other_options.other_options_selector ) == "advanced":
306 ${adv.other_options.non_deterministic} 326 ${adv.other_options.non_deterministic}
404 </when> 424 </when>
405 </conditional> 425 </conditional>
406 426
407 <!-- Summary Options --> 427 <!-- Summary Options -->
408 <section name="sum" title="Summary Options" expanded="False"> 428 <section name="sum" title="Summary Options" expanded="False">
409 <param name="new_summary" argument="--new-summary" type="boolean" checked="False" label="Output alignment summary in a more machine-friendly style." help="Select this option for compatibility with MultiQC" /> 429 <param name="new_summary" argument="--new-summary" type="boolean" checked="false" label="Output alignment summary in a more machine-friendly style." help="Select this option for compatibility with MultiQC" />
410 <param name="summary_file" argument="--summary-file" type="boolean" checked="False" label="Print alignment summary to a file." help="Output alignment summary to a file in addition to stderr." /> 430 <param name="summary_file" argument="--summary-file" type="boolean" checked="false" label="Print alignment summary to a file." help="Output alignment summary to a file in addition to stderr." />
411 </section> 431 </section>
412 432
413 <!-- Advanced Options --> 433 <!-- Advanced Options -->
414 <section name="adv" title="Advanced Options" expanded="False"> 434 <section name="adv" title="Advanced Options" expanded="False">
415 <conditional name="input_options"> 435 <conditional name="input_options">
425 <param name="trim3" argument="-3" type="integer" min="0" value="0" label="Trim 3' end" help="Trim N bases from 3' (right) end of each read before alignment, default: 0"/> 445 <param name="trim3" argument="-3" type="integer" min="0" value="0" label="Trim 3' end" help="Trim N bases from 3' (right) end of each read before alignment, default: 0"/>
426 <param name="qv_encoding" type="select" display="radio" label="Select quality score encoding" help="See help below for more details"> 446 <param name="qv_encoding" type="select" display="radio" label="Select quality score encoding" help="See help below for more details">
427 <option value="--phred33" selected="True">Input qualities are ASCII chars equal to the Phred quality plus 33. This is also called the "Phred+33" encoding, which is used by the very latest Illumina pipelines (--phred33)</option> 447 <option value="--phred33" selected="True">Input qualities are ASCII chars equal to the Phred quality plus 33. This is also called the "Phred+33" encoding, which is used by the very latest Illumina pipelines (--phred33)</option>
428 <option value="--phred64">Input qualities are ASCII chars equal to the Phred quality plus 64. This is also called the "Phred+64" encoding (--phred64)</option> 448 <option value="--phred64">Input qualities are ASCII chars equal to the Phred quality plus 64. This is also called the "Phred+64" encoding (--phred64)</option>
429 </param> 449 </param>
430 <param name="solexa_quals" argument="--solexa-quals" type="boolean" truevalue="--solexa-quals" falsevalue="" checked="False" label="Convert input qualities from Solexa (which can be negative) to Phred (which can't). This scheme was used in older Illumina GA Pipeline versions (prior to 1.3)" help="--solexa-quals; default: False"/> 450 <param name="solexa_quals" argument="--solexa-quals" type="boolean" truevalue="--solexa-quals" falsevalue="" checked="false" label="Convert input qualities from Solexa (which can be negative) to Phred (which can't). This scheme was used in older Illumina GA Pipeline versions (prior to 1.3)" help="--solexa-quals; default: False"/>
431 <param name="int_quals" argument="--int-quals" type="boolean" truevalue="--int-quals" falsevalue="" checked="False" label="Are quality values provided as space separated integers?" help="Quality values are represented in the read input file as space-separated ASCII integers, e.g., 40 40 30 40..., rather than ASCII characters, e.g., II?I.... Integers are treated as being on the Phred quality scale unless --solexa-quals is also specified [default: False]"/> 451 <param name="int_quals" argument="--int-quals" type="boolean" truevalue="--int-quals" falsevalue="" checked="false" label="Are quality values provided as space separated integers?" help="Quality values are represented in the read input file as space-separated ASCII integers, e.g., 40 40 30 40..., rather than ASCII characters, e.g., II?I.... Integers are treated as being on the Phred quality scale unless --solexa-quals is also specified [default: False]"/>
432 </when> 452 </when>
433 </conditional> 453 </conditional>
434 454
435 <conditional name="alignment_options"> 455 <conditional name="alignment_options">
436 <param name="alignment_options_selector" type="select" label="Alignment options"> 456 <param name="alignment_options_selector" type="select" label="Alignment options">
527 <option value="defaults">Use default values</option> 547 <option value="defaults">Use default values</option>
528 <option value="advanced">Specify output options</option> 548 <option value="advanced">Specify output options</option>
529 </param> 549 </param>
530 <when value="defaults" /> 550 <when value="defaults" />
531 <when value="advanced"> 551 <when value="advanced">
532 <param name="unaligned_file" argument="--un/--un-conc" type="boolean" truevalue="true" falsevalue="false" checked="False" label="Write unaligned reads (in fastq format) to separate file(s)" help="This triggers --un parameter for single reads and --un-conc for paired reads" /> 552 <param name="unaligned_file" argument="--un/--un-conc" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Write unaligned reads (in fastq format) to separate file(s)" help="This triggers --un parameter for single reads and --un-conc for paired reads" />
533 <param name="aligned_file" argument="--al/--al-conc" type="boolean" truevalue="true" falsevalue="false" checked="False" label="Write aligned reads (in fastq format) to separate file(s)" help="This triggers --al parameter for single reads and --al-conc for paired reads" /> 553 <param name="aligned_file" argument="--al/--al-conc" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Write aligned reads (in fastq format) to separate file(s)" help="This triggers --al parameter for single reads and --al-conc for paired reads" />
534 </when> 554 </when>
555 </conditional>
556
557 <conditional name="sam_options">
558 <param name="sam_options_selector" type="select" label="SAM options">
559 <option value="defaults">Use default values</option>
560 <option value="advanced">Specify output options</option>
561 </param>
562 <when value="defaults" />
563 <when value="advanced">
564 <param name="no_unal" argument="--no-unal" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Suppress SAM records for reads that failed to align." help="Default: false"/>
565 <conditional name="read_groups">
566 <param name="rg_labels" type="select" label="Edit Read Group IDs">
567 <option value="No" />
568 <option value="Yes" />
569 </param>
570 <when value="No"/>
571 <when value="Yes">
572 <param name="rg_id" argument="--rg-id" type="text" value="read_group" label="Read Group ID" help="Set the read group ID to the value set here. This causes the SAM @RG header line to be printed, with this input value as the value associated with the ID: tag. It also causes the RG:Z: extra field to be attached to each SAM output record, with value set to the value set here." />
573 <repeat name="read_groups" title="Read Groups text">
574 <param name="rg" argument="--rg" type="text" optional="true" label="Read Group text" help="Add specified text (usually of the form TAG:VAL, e.g. SM:Pool1) as a field on the @RG header line. Note: in order for the @RG line to appear, Read Group ID must also be specified. This is because the ID tag is required by the SAM Spec. Specify --rg multiple times to set multiple fields. See the SAM Spec for details about what fields are legal." />
575 </repeat>
576 </when>
577 </conditional>
578 <param name="chr_text" type="select" label="Add/remove 'chr' from reference names in alignment files">
579 <option value="" selected="true">Use default values</option>
580 <option value="--remove-chrname">Remove ‘chr’ from reference names in alignment (e.g., chr18 to 18)</option>
581 <option value="--add-chrname">Add ‘chr’ to reference names in alignment (e.g., 18 to chr18)</option>
582 </param>
583 <param name="omit_sec_seq" argument="--omit-sec-seq" type="boolean" truevalue="true" falsevalue="false" checked="false" label="When printing secondary alignments, HISAT2 by default will write out the SEQ and QUAL strings. Specifying this option causes HISAT2 to print an asterisk in those fields instead." help="Default: false"/>
584 </when>
535 </conditional> 585 </conditional>
536 586
537 <conditional name="other_options"> 587 <conditional name="other_options">
538 <param name="other_options_selector" type="select" label="Other options"> 588 <param name="other_options_selector" type="select" label="Other options">
539 <option value="defaults">Use default values</option> 589 <option value="defaults">Use default values</option>
874 <param name="rna_strandness" value="R" /> 924 <param name="rna_strandness" value="R" />
875 <param name="adv|spliced_options|spliced_options_selector" value="advanced"/> 925 <param name="adv|spliced_options|spliced_options_selector" value="advanced"/>
876 <param name="adv|spliced_options|novel_splicesite_outfile" value="true" /> 926 <param name="adv|spliced_options|novel_splicesite_outfile" value="true" />
877 <output name="output_alignments" file="hisat_output_spliced_1.bam" ftype="bam" lines_diff="2" /> 927 <output name="output_alignments" file="hisat_output_spliced_1.bam" ftype="bam" lines_diff="2" />
878 <output name="novel_splicesite_output" file="novel_splicesite_out.tab" ftype="tabular" /> 928 <output name="novel_splicesite_output" file="novel_splicesite_out.tab" ftype="tabular" />
929 </test>
930 <!-- Ensure SAM output settings work -->
931 <test expect_num_outputs="1" >
932 <param name="type" value="paired_interleaved" />
933 <param name="source" value="history" />
934 <param name="history_item" ftype="fasta" value="phiX.fa" />
935 <param name="input_1" ftype="fastqsanger.bz2" value="hisat_input_1_interleaved.fastq.bz2" />
936 <param name="adv|sam_options|sam_options_selector" value="advanced"/>
937 <param name="adv|sam_options|no_unal" value="true"/>
938 <param name="adv|sam_options|read_groups|rg_labels" value="Yes"/>
939 <repeat name="adv|sam_options|read_groups|read_groups">
940 <param name="rg" value="BC:test1"/>
941 </repeat>
942 <repeat name="adv|sam_options|read_groups|read_groups">
943 <param name="rg" value="CN:test2"/>
944 </repeat>
945 <param name="adv|sam_options|chr_text" value="--add-chrname"/>
946 <param name="adv|sam_options|omit_sec_seq" value="True"/>
947 <output name="output_alignments" file="hisat_output_5.bam" ftype="bam" lines_diff="2" />
879 </test> 948 </test>
880 </tests> 949 </tests>
881 950
882 <help><![CDATA[ 951 <help><![CDATA[
883 Introduction 952 Introduction
1216 By default, `hisat2` looks for discordant alignments if it cannot find any 1285 By default, `hisat2` looks for discordant alignments if it cannot find any
1217 concordant alignments. A discordant alignment is an alignment where both mates 1286 concordant alignments. A discordant alignment is an alignment where both mates
1218 align uniquely, but that does not satisfy the paired-end constraints 1287 align uniquely, but that does not satisfy the paired-end constraints
1219 (`--fr`/`--rf`/`--ff`, `-I`, `-X`). This option disables that behavior. 1288 (`--fr`/`--rf`/`--ff`, `-I`, `-X`). This option disables that behavior.
1220 1289
1290 -----
1291
1292 ** SAM options
1293
1294 --no-unal
1295 Suppress SAM records for reads that failed to align.
1296 --rg-id <text>
1297
1298 Set the read group ID to <text>. This causes the SAM @RG header line to be printed, with <text> as the value associated with the ID: tag. It also causes the RG:Z: extra field to be attached to each SAM output record, with value set to <text>.
1299 --rg <text>
1300 Add <text> (usually of the form TAG:VAL, e.g. SM:Pool1) as a field on the @RG header line. Note: in order for the @RG line to appear, --rg-id must also be specified. This is because the ID tag is required by the SAM Spec. Specify --rg multiple times to set multiple fields. See the SAM Spec for details about what fields are legal.
1301
1302 --remove-chrname
1303 Remove ‘chr’ from reference names in alignment (e.g., chr18 to 18)
1304
1305 --add-chrname
1306 Add ‘chr’ to reference names in alignment (e.g., 18 to chr18)
1307
1308 --omit-sec-seq
1309 When printing secondary alignments, HISAT2 by default will write out the SEQ and QUAL strings. Specifying this option causes HISAT2 to print an asterisk in those fields instead.
1310
1311 -----
1221 1312
1222 **Output options**:: 1313 **Output options**::
1223 1314
1224 --un/--un-gz/--un-bz2 1315 --un/--un-gz/--un-bz2
1225 Write unpaired reads that fail to align to file at `<path>`. These reads correspond to the SAM records with the FLAGS `0x4` bit set and neither the `0x40` nor `0x80` bits set. If `--un-gz` is specified, output will be gzip compressed. If `--un-bz2` is specified, output will be bzip2 compressed. Reads written in this way will appear exactly as they did in the input file, without any modification (same sequence, same name, same quality string, same quality encoding). Reads will not necessarily appear in the same order as they did in the input. 1316 Write unpaired reads that fail to align to file at `<path>`. These reads correspond to the SAM records with the FLAGS `0x4` bit set and neither the `0x40` nor `0x80` bits set. If `--un-gz` is specified, output will be gzip compressed. If `--un-bz2` is specified, output will be bzip2 compressed. Reads written in this way will appear exactly as they did in the input file, without any modification (same sequence, same name, same quality string, same quality encoding). Reads will not necessarily appear in the same order as they did in the input.