diff hisat2.xml @ 9:2dbb7f0ea66f draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hisat2 commit 1baf0d1eb5d9cb012e4ce1385431461f26f7bc05
author iuc
date Tue, 04 Apr 2017 08:15:43 -0400
parents 4d0a3173cde0
children da8d655e2154
line wrap: on
line diff
--- a/hisat2.xml	Thu Feb 16 08:50:24 2017 -0500
+++ b/hisat2.xml	Tue Apr 04 08:15:43 2017 -0400
@@ -1,13 +1,13 @@
 <?xml version="1.0"?>
-<tool id="hisat2" name="HISAT2" version="2.0.3.3">
+<tool id="hisat2" name="HISAT2" version="2.0.5">
     <description>A fast and sensitive alignment program</description>
     <macros>
         <import>hisat2_macros.xml</import>
     </macros>
     <requirements>
         <!-- Conda dependency -->
-        <requirement type="package" version="2.0.3">hisat2</requirement>
-        <requirement type="package" version="1.2">samtools</requirement>
+        <requirement type="package" version="2.0.5">hisat2</requirement>
+        <requirement type="package" version="1.4">samtools</requirement>
     </requirements>
     <stdio>
         <regex match="hisat2-align exited with value 1" source="both" level="fatal"/>
@@ -17,25 +17,25 @@
     <version_command>hisat2 --version</version_command>
     <command><![CDATA[
         #if str($spliced_options.spliced_options_selector) == "advanced" and str($spliced_options.known_splice_gtf) != 'None':
-            ln -s "${spliced_options.known_splice_gtf}" splice_sites.gtf &&
+            ln -s '${spliced_options.known_splice_gtf}' splice_sites.gtf &&
             hisat2_extract_splice_sites.py splice_sites.gtf > splice_sites.txt &&
         #end if
         #if $reference_genome.reference_genome_source == "history":
-            ln -s "$reference_genome.history_item" genome.fa &&
-            hisat2-build genome.fa genome && 
+            ln -s '$reference_genome.history_item' genome.fa &&
+            hisat2-build -p \${GALAXY_SLOTS:-1} genome.fa genome &&
             #set index_path = 'genome'
         #else:
             #set index_path = $reference_genome.index.fields.path
         #end if
-        hisat2 -p \${GALAXY_SLOTS:-1} -x "${index_path}"
+        hisat2 -p \${GALAXY_SLOTS:-1} -x '${index_path}'
         #if str($input_format.paired.paired_selector) == 'paired':
-            -1 "${input_format.paired.reads_f}" -2 "${input_format.paired.reads_r}"
+            -1 '${input_format.paired.reads_f}' -2 '${input_format.paired.reads_r}'
             @paired_end_options@
         #else if str($input_format.paired.paired_selector) == 'paired_collection':
-            -1 "${input_format.paired.reads.forward}" -2 "${input_format.paired.reads.reverse}"
+            -1 '${input_format.paired.reads.forward}' -2 '${input_format.paired.reads.reverse}'
             @paired_end_options@
         #else:
-            -U "${input_format.paired.reads}"
+            -U '${input_format.paired.reads}'
             #if str( $input_format.paired.unaligned_file ) == "true":
                 --un '$output_unaligned_reads_l'
             #end if
@@ -46,9 +46,13 @@
         #if $input_format.input_format_selector == 'fasta':
             -f
         #end if
-        #if $max_primary:
+        #if str($max_primary)
             -k ${max_primary}
         #end if
+        #if str($max_seeds)
+            --max-seeds $max_seeds
+        #end if
+        $secondary
         #if str($input_options.input_options_selector) == "advanced":
             #if int( $input_options.skip ) > 0:
                 -s ${input_options.skip}
@@ -59,8 +63,10 @@
             -5 ${input_options.trim_five} -3 ${input_options.trim_three}
         #end if
         #if str($scoring_options.scoring_options_selector) == "advanced":
-            --ma ${scoring_options.match_bonus} --np ${scoring_options.ambiguous_penalty}
+            --ma ${scoring_options.match_bonus}
             --mp ${scoring_options.max_mismatch},${scoring_options.min_mismatch}
+            ${scoring_options.no_softclip}
+            --np ${scoring_options.ambiguous_penalty}
             --rdg ${scoring_options.read_open_penalty},${scoring_options.read_extend_penalty}
             --rfg ${scoring_options.ref_open_penalty},${scoring_options.ref_extend_penalty}
             --sp ${scoring_options.soft_clip_penalty_max},${scoring_options.soft_clip_penalty_min}
@@ -77,7 +83,11 @@
             #if str($spliced_options.known_splice_gtf) != 'None':
                 --known-splicesite-infile splice_sites.txt
             #end if
-            ${spliced_options.no_spliced_alignment}
+            ${spliced_options.no_spliced_alignment_options.no_spliced_alignment}
+            #if $spliced_options.no_spliced_alignment_options.no_spliced_alignment == '--no-spliced-alignment'
+                -I ${spliced_options.no_spliced_alignment_options.minins}
+                -X ${spliced_options.no_spliced_alignment_options.maxins}
+            #end if
             --min-intronlen ${spliced_options.min_intron}
             --max-intronlen ${spliced_options.max_intron}
             ${spliced_options.tma}
@@ -87,7 +97,7 @@
             --minins ${paired_options.minins} --maxins ${paired_options.maxins} ${paired_options.no_mixed} ${paired_options.no_discordant}
             ${paired_options.dovetail} ${paired_options.contain} ${paired_options.overlap}
         #end if
-        | samtools sort - -@ \${GALAXY_SLOTS:-2} -l 6 -o hsbam > "${output_alignments}"
+        | samtools sort - -@ \${GALAXY_SLOTS:-1} -l 6 -o '${output_alignments}'
 
         ## Rename any output fastq files
         #if str($input_format.paired.paired_selector) == 'paired' or str($input_format.paired.paired_selector) == 'paired_collection':
@@ -107,35 +117,37 @@
     ]]></command>
     <inputs>
         <conditional name="input_format">
-            <param label="Input data format" name="input_format_selector" type="select">
-                <option selected="true" value="fastq">FASTQ</option>
+            <param name="input_format_selector" type="select" label="Input data format">
+                <option value="fastq" selected="true">FASTQ</option>
                 <option value="fasta">FASTA</option>
             </param>
             <when value="fasta">
-                <expand ftype="fasta" macro="paired_input_conditional" />
+                <expand macro="paired_input_conditional" ftype="fasta" />
             </when>
             <when value="fastq">
-                <expand ftype="fastq" macro="paired_input_conditional" />
+                <expand macro="paired_input_conditional" ftype="fastq" />
             </when>
         </conditional>
         <conditional name="reference_genome">
-            <param help="Built-in references were created using default options" label="Source for the reference genome to align against" name="reference_genome_source" type="select">
-                <option selected="True" value="indexed">Use a built-in genome</option>
+            <param name="reference_genome_source" type="select" label="Source for the reference genome to align against" help="Built-in references were created using default options">
+                <option value="indexed" selected="True">Use a built-in genome</option>
                 <option value="history">Use a genome from history</option>
             </param>
             <when value="indexed">
-                <param help="If your genome of interest is not listed, contact the Galaxy team" label="Select a reference genome" name="index" type="select">
+                <param name="index" type="select" label="Select a reference genome" help="If your genome of interest is not listed, contact the Galaxy team">
                     <options from_data_table="hisat2_indexes">
-                        <filter column="2" type="sort_by" />
-                        <validator message="No genomes are available for the selected input dataset" type="no_options" />
+                        <filter type="sort_by" column="2" />
+                        <validator type="no_options" message="No genomes are available for the selected input dataset" />
                     </options>
                 </param>
             </when>
             <when value="history">
-                <param format="fasta" label="Select the reference genome" name="history_item" type="data" />
+                <param name="history_item" type="data" format="fasta" label="Select the reference genome" />
             </when>
         </conditional>
-        <param argument="-k" name="max_primary" optional="True" type="integer" value="5" help="Search for at most K distinct, primary alignments for each read. Primary alignments mean alignments whose alignment score is equal or higher than any other alignments. The search terminates when it can't find more distinct valid alignments, or when it finds K, whichever happens first." label="Primary alignments" />
+        <param argument="-k" name="max_primary" type="integer" value="" optional="true" label="Primary alignments" help="Search for at most K distinct, primary alignments for each read. Primary alignments mean alignments whose alignment score is equal or higher than any other alignments. The search terminates when it can't find more distinct valid alignments, or when it finds K, whichever happens first. The alignment score for a paired-end alignment equals the sum of the alignment scores of the individual mates. Each reported read or pair alignment beyond the first has the SAM 'secondary' bit (which equals 256) set in its FLAGS field. For reads that have more than K distinct, valid alignments, hisat2 does not guarantee that the K alignments reported are the best possible in terms of alignment score. HISAT2 is not designed with large values for -k in mind, so when aligning reads to long repetitive genomes, a large K can be very, very slow. Default: 5 (HFM) or 10 (HGFM)" />
+        <param argument="--max-seeds" name="max_seeds" type="integer" value="" optional="true" label="Maximum number of seeds that will be extended" help="HISAT2, like other aligners, uses seed-and-extend approaches. HISAT2 tries to extend seeds to full-length alignments. HISAT2 extends up to these many seeds and skips the rest of the seeds. Large values for --max-seeds may improve alignment sensitivity, but HISAT2 is not designed with large values for --max-seeds in mind, and when aligning reads to long repetitive genomes, a large --max-seeds can be very, very slow. Default: 5 (HFM) or 10 (HGFM)" />
+        <param argument="--secondary" type="boolean" truevalue="--secondary" falsevalue="" label="Report secondary alignments" />
         <conditional name="alignment_options">
             <param label="Alignment options" name="alignment_options_selector" type="select">
                 <option value="defaults">Use default values</option>
@@ -144,80 +156,91 @@
             <when value="defaults" />
             <when value="advanced">
                 <expand macro="function" helptext="Sets a function governing the maximum number of ambiguous characters" />
-                <param argument="--ignore-quals" falsevalue="" help="When calculating a mismatch penalty, always consider the quality value at the mismatched position to be the highest possible, regardless of the actual value. I.e. input is treated as though all quality values are high. This is also the default behavior when the input doesn't specify quality values." label="Ignore quality values" name="ignore_quals" truevalue="--ignore-quals" type="boolean" />
-                <param argument="--nofw" falsevalue="" help="If --nofw is specified, hisat will not attempt to align unpaired reads to the forward (Watson) reference strand. In paired-end mode, --nofw and --norc pertain to the fragments; i.e. specifying --nofw causes hisat to explore only those paired-end configurations corresponding to fragments from the reverse-complement (Crick) strand." label="Skip forward strand of reference" name="skip_forward" truevalue="--nofw" type="boolean" />
-                <param argument="--norc" falsevalue="" help="If --norc is specified, hisat will not attempt to align unpaired reads against the reverse-complement (Crick) reference strand. In paired-end mode, --nofw and --norc pertain to the fragments; i.e. specifying --nofw causes hisat to explore only those paired-end configurations corresponding to fragments from the reverse-complement (Crick) strand." label="Skip reference strand of reference" name="skip_reverse" truevalue="--norc" type="boolean" />
+                <param argument="--ignore-quals" name="ignore_quals" type="boolean" truevalue="--ignore-quals" falsevalue="" label="Ignore quality values" help="When calculating a mismatch penalty, always consider the quality value at the mismatched position to be the highest possible, regardless of the actual value. I.e. input is treated as though all quality values are high. This is also the default behavior when the input doesn't specify quality values" />
+                <param argument="--nofw" name="skip_forward" type="boolean" truevalue="--nofw" falsevalue="" label="Skip forward strand of reference" help="If --nofw is specified, hisat2 will not attempt to align unpaired reads to the forward (Watson) reference strand. In paired-end mode, --nofw and --norc pertain to the fragments; i.e. specifying --nofw causes hisat2 to explore only those paired-end configurations corresponding to fragments from the reverse-complement (Crick) strand" />
+                <param argument="--norc" name="skip_reverse" type="boolean" truevalue="--norc" falsevalue="" label="Skip reverse strand of reference" help="If --norc is specified, hisat2 will not attempt to align unpaired reads against the reverse-complement (Crick) reference strand. In paired-end mode, --nofw and --norc pertain to the fragments; i.e. specifying --norc causes hisat2 to explore only those paired-end configurations corresponding to fragments from the forward-complement (Watson) strand" />
             </when>
         </conditional>
         <conditional name="input_options">
-            <param label="Input options" name="input_options_selector" type="select">
+            <param name="input_options_selector" type="select" label="Input options">
                 <option value="defaults">Use default values</option>
                 <option value="advanced">Specify input parameters</option>
             </param>
             <when value="defaults" />
             <when value="advanced">
-                <param argument="-s" min="0" label="Skip the first N reads or pairs in the input" name="skip" type="integer" value="0" />
-                <param argument="-u" min="0" help="Align the first N reads or read pairs from the input (after the first N reads or pairs have been skipped), then stop." label="Stop after aligning N reads" name="stop_after" type="integer" value="0" />
-                <param name="trim_five" argument="-5" min="0" help="Trim N bases from 5' (left) end of each read before alignment" label="Trim 5' end" type="integer" value="0" />
-                <param name="trim_three" argument="-3" min="0" help="Trim N bases from 3' (right) end of each read before alignment" label="Trim 3' end" type="integer" value="0" />
+                <param argument="-s" name="skip" type="integer" min="0" value="0" label="Skip the first N reads or pairs in the input" />
+                <param argument="-u" name="stop_after" type="integer" min="0" value="0" label="Stop after aligning N reads" help="Align the first N reads or read pairs from the input (after the first N reads or pairs have been skipped), then stop" />
+                <param argument="-5" name="trim_five" type="integer" min="0" value="0" label="Trim 5' end" help="Trim N bases from 5' (left) end of each read before alignment" />
+                <param argument="-3" name="trim_three" type="integer" min="0" value="0" label="Trim 3' end" help="Trim N bases from 3' (right) end of each read before alignment" />
             </when>
         </conditional>
         <conditional name="scoring_options">
-            <param label="Scoring options" name="scoring_options_selector" type="select">
+            <param name="scoring_options_selector" type="select" label="Scoring options">
                 <option value="defaults">Use default values</option>
                 <option value="advanced">Specify scoring parameters</option>
             </param>
             <when value="defaults" />
             <when value="advanced">
-                <expand macro="function" helptext="Sets a function governing the minimum alignment score needed for an alignment to be considered &quot;valid&quot; (i.e. good enough to report)." />
-                <param argument="--ma" help="In local mode N is added to the alignment score for each position where a read character aligns to a reference character and the characters match. Not used in end-to-end mode" label="Set match bonus" name="match_bonus" type="integer" value="2" />
-                <param argument="--mp" help="Sets the maximum mismatch penalty. A number less than or equal to MX and greater than or equal to MN is subtracted from the alignment score for each position where a read character aligns to a reference character, the characters do not match, and neither is an N. If --ignore-quals is specified, the number subtracted quals MX. Otherwise, the number subtracted is MN + floor( (MX-MN)(MIN(Q, 40.0)/40.0) ) where Q is the Phred quality value." label="Maximum mismatch penalty" name="max_mismatch" type="integer" value="6" />
-                <param argument="--mp" help="Sets the minimum mismatch penalty. A number less than or equal to MX and greater than or equal to MN is subtracted from the alignment score for each position where a read character aligns to a reference character, the characters do not match, and neither is an N. If --ignore-quals is specified, the number subtracted quals MX. Otherwise, the number subtracted is MN + floor( (MX-MN)(MIN(Q, 40.0)/40.0) ) where Q is the Phred quality value." label="Minimum mismatch penalty" name="min_mismatch" type="integer" value="2" />
-                <param argument="--np" help="Sets penalty for positions where the read, reference, or both, contain an ambiguous character such as N" label="Ambiguous read penalty" name="ambiguous_penalty" type="integer" value="1" />
-                <param argument="--sp" help="Sets the maximum (MX) penalty for soft-clipping per base. A number less than or equal to MX and greater than or equal to MN is subtracted from the alignment score for each position. The number subtracted is MN + floor( (MX-MN)(MIN(Q, 40.0)/40.0) ) where Q is the Phred quality value." label="Maximum soft-clipping penalty" name="soft_clip_penalty_max" type="integer" value="2" />
-                <param argument="--sp" help="Sets the minimum (MN) penalty for soft-clipping per base. A number less than or equal to MX and greater than or equal to MN is subtracted from the alignment score for each position. The number subtracted is MN + floor( (MX-MN)(MIN(Q, 40.0)/40.0) ) where Q is the Phred quality value." label="Minimum soft-clipping penalty" name="soft_clip_penalty_min" type="integer" value="1" />
-                <param argument="--rdg" help="A read gap of length N gets a penalty of [open_penalty] + N * [extend_penalty]" label="Read gap open penalty." name="read_open_penalty" type="integer" value="5" />
-                <param argument="--rdg" help="A read gap of length N gets a penalty of [open_penalty] + N * [extend_penalty]" label="Read gap extend penalty." name="read_extend_penalty" type="integer" value="3" />
-                <param argument="--rfg" help="A reference gap of length N gets a penalty of [open_penalty] + N * [extend_penalty]" label="Reference gap open penalty." name="ref_open_penalty" type="integer" value="5" />
-                <param argument="--rfg" help="A reference gap of length N gets a penalty of [open_penalty] + N * [extend_penalty]" label="Reference gap extend penalty." name="ref_extend_penalty" type="integer" value="3" />
+                <expand macro="function" helptext="Sets a function governing the minimum alignment score needed for an alignment to be considered &quot;valid&quot; (i.e. good enough to report)" />
+                <param argument="--ma" name="match_bonus" type="integer" value="2" label="Set match bonus" help="In local mode N is added to the alignment score for each position where a read character aligns to a reference character and the characters match. Not used in end-to-end mode" />
+                <param argument="--mp" name="max_mismatch" type="integer" value="6" label="Maximum mismatch penalty" help="Sets the maximum mismatch penalty. A number less than or equal to MX and greater than or equal to MN is subtracted from the alignment score for each position where a read character aligns to a reference character, the characters do not match, and neither is an N. If --ignore-quals is specified, the number subtracted quals MX. Otherwise, the number subtracted is MN + floor( (MX-MN)(MIN(Q, 40.0)/40.0) ) where Q is the Phred quality value" />
+                <param argument="--mp" name="min_mismatch" type="integer" value="2" label="Minimum mismatch penalty" help="Sets the minimum mismatch penalty. A number less than or equal to MX and greater than or equal to MN is subtracted from the alignment score for each position where a read character aligns to a reference character, the characters do not match, and neither is an N. If --ignore-quals is specified, the number subtracted quals MX. Otherwise, the number subtracted is MN + floor( (MX-MN)(MIN(Q, 40.0)/40.0) ) where Q is the Phred quality value" />
+                <param argument="--no-softclip" name="no_softclip" type="boolean" truevalue="--no-softclip" falsevalue="" label="Disallow soft-clipping" />
+                <param argument="--np" name="ambiguous_penalty" type="integer" value="1" label="Ambiguous read penalty" help="Sets penalty for positions where the read, reference, or both, contain an ambiguous character such as N" />
+                <param argument="--sp" name="soft_clip_penalty_max" type="integer" value="2" label="Maximum soft-clipping penalty" help="Sets the maximum (MX) penalty for soft-clipping per base. A number less than or equal to MX and greater than or equal to MN is subtracted from the alignment score for each position. The number subtracted is MN + floor( (MX-MN)(MIN(Q, 40.0)/40.0) ) where Q is the Phred quality value" />
+                <param argument="--sp" name="soft_clip_penalty_min" type="integer" value="1" label="Minimum soft-clipping penalty" help="Sets the minimum (MN) penalty for soft-clipping per base. A number less than or equal to MX and greater than or equal to MN is subtracted from the alignment score for each position. The number subtracted is MN + floor( (MX-MN)(MIN(Q, 40.0)/40.0) ) where Q is the Phred quality value" />
+                <param argument="--rdg" name="read_open_penalty" type="integer" value="5" label="Read gap open penalty" help="A read gap of length N gets a penalty of [open_penalty] + N * [extend_penalty]" />
+                <param argument="--rdg" name="read_extend_penalty" type="integer" value="3" label="Read gap extend penalty" help="A read gap of length N gets a penalty of [open_penalty] + N * [extend_penalty]" />
+                <param argument="--rfg" name="ref_open_penalty" type="integer" value="5" label="Reference gap open penalty" help="A reference gap of length N gets a penalty of [open_penalty] + N * [extend_penalty]" />
+                <param argument="--rfg" name="ref_extend_penalty" type="integer" value="3" label="Reference gap extend penalty" help="A reference gap of length N gets a penalty of [open_penalty] + N * [extend_penalty]" />
             </when>
         </conditional>
         <conditional name="spliced_options">
-            <param label="Spliced alignment parameters" name="spliced_options_selector" type="select">
+            <param name="spliced_options_selector" type="select" label="Spliced alignment parameters">
                 <option value="defaults">Use default values</option>
                 <option value="advanced">Specify spliced alignment parameters</option>
             </param>
             <when value="defaults" />
             <when value="advanced">
-                <param label="Penalty for canonical splice sites" name="canonical_penalty" type="integer" value="0" />
-                <param label="Penalty for non-canonical splice sites" name="noncanonical_penalty" type="integer" value="3" />
-                <param display="radio" label="Penalty for long introns with canonical splice sites" name="function_type" type="select">
+                <param name="canonical_penalty" type="integer" value="0" label="Penalty for canonical splice sites" />
+                <param name="noncanonical_penalty" type="integer" value="3" label="Penalty for non-canonical splice sites" />
+                <param name="function_type" type="select" display="radio" label="Penalty for long introns with canonical splice sites">
                     <option value="C">Constant</option>
                     <option value="L">Linear [f(x) = y + z * x]</option>
                     <option value="S">Square root [f(x) = y + z * x&#178;]</option>
                     <option value="G">Natural logarithm [f(x) = y + z * log(x)]</option>
                 </param>
-                <param help="Constant term for long canonical introns" label="Constant term (y)" name="constant_term" type="integer" value="0" />
-                <param help="Coefficient for long canonical introns" label="Coefficient (z)" name="coefficient" type="integer" value="0" />
-                <param display="radio" label="Penalty for long introns with noncanonical splice sites." name="nc_function_type" type="select">
+                <param name="constant_term" type="integer" value="0" label="Constant term (y)" help="Constant term for long canonical introns" />
+                <param name="coefficient" type="integer" value="0" label="Coefficient (z)" help="Coefficient for long canonical introns" />
+                <param name="nc_function_type" type="select" display="radio" label="Penalty for long introns with noncanonical splice sites">
                     <option value="C">Constant</option>
                     <option value="L">Linear [f(x) = y + z * x]</option>
                     <option value="S">Square root [f(x) = y + z * x&#178;]</option>
-                    <option selected="True" value="G">Natural logarithm [f(x) = y + z * log(x)]</option>
+                    <option value="G" selected="True">Natural logarithm [f(x) = y + z * log(x)]</option>
                 </param>
-                <param help="Constant term for long non-canonical introns" label="Constant term (y)" name="nc_constant_term" type="integer" value="-8" />
-                <param help="Coefficient for long non-canonical introns" label="Coefficient (z)" name="nc_coefficient" type="integer" value="1" />
-                <param label="Minimum intron length" name="min_intron" type="integer" value="20" />
-                <param label="Maximum intron length" name="max_intron" type="integer" value="500000" />
+                <param name="nc_constant_term" type="integer" value="-8" label="Constant term (y)" help="Constant term for long non-canonical introns" />
+                <param name="nc_coefficient" type="integer" value="1" label="Coefficient (z)" help="Coefficient for long non-canonical introns" />
+                <param name="min_intron" type="integer" value="20" label="Minimum intron length" />
+                <param name="max_intron" type="integer" value="500000" label="Maximum intron length" />
                 <param argument="--rna-strandness" name="rna_strandness" type="select" label="Specify strand-specific information"
-                    help="'F' means a read corresponds to a transcript. 'R' means a read corresponds to the reverse complemented counterpart of a transcript.">
+                    help="'F' means a read corresponds to a transcript. 'R' means a read corresponds to the reverse complemented counterpart of a transcript">
                     <option value="">FR Unstranded</option>
                     <option value="R">First Strand (R/RF)</option>
                     <option value="F">Second Strand (F/FR)</option>
                 </param>
-                <param argument="--no-spliced-alignment" name="no_spliced_alignment" type="boolean" truevalue="--no-spliced-alignment" falsevalue="" label="Disable spliced alignment" />
-                <param format="gtf" label="GTF file with known splice sites" name="known_splice_gtf" optional="True" type="data" />
-                <param display="radio" label="Transcriptome assembly reporting" name="tma" type="select">
+                <conditional name="no_spliced_alignment_options">
+                    <param argument="--no-spliced-alignment" name="no_spliced_alignment" type="select" label="Disable spliced alignment">
+                        <option value="--no-spliced-alignment">True</option>
+                        <option value="">False</option>
+                    </param>
+                    <when value="--no-spliced-alignment">
+                        <param argument="-I" name="minins" type="integer" value="0" label="Minimum fragment length for valid paired-end alignments" help="E.g. if -I 60 is specified and a paired-end alignment consists of two 20-bp alignments in the appropriate orientation with a 20-bp gap between them, that alignment is considered valid (as long as -X is also satisfied). A 19-bp gap would not be valid in that case. If trimming options -3 or -5 are also used, the -I constraint is applied with respect to the untrimmed mates. The larger the difference between -I and -X, the slower HISAT2 will run. This is because larger differences between -I and -X require that HISAT2 scan a larger window to determine if a concordant alignment exists. For typical fragment length ranges (200 to 400 nucleotides), HISAT2 is very efficient" />
+                        <param argument="-X" name="maxins" type="integer" value="500" label="Maximum fragment length for valid paired-end alignments" help="E.g. if -X 100 is specified and a paired-end alignment consists of two 20-bp alignments in the proper orientation with a 60-bp gap between them, that alignment is considered valid (as long as -I is also satisfied). A 61-bp gap would not be valid in that case. If trimming options -3 or -5 are also used, the -X constraint is applied with respect to the untrimmed mates, not the trimmed mates. The larger the difference between -I and -X, the slower HISAT2 will run. This is because larger differences between -I and -X require that HISAT2 scan a larger window to determine if a concordant alignment exists. For typical fragment length ranges (200 to 400 nucleotides), HISAT2 is very efficient" />
+                    </when>
+                    <when value="" />
+                </conditional>
+                <param name="known_splice_gtf" type="data" format="gtf" optional="true" label="GTF file with known splice sites" />
+                <param name="tma" type="select" display="radio" label="Transcriptome assembly reporting">
                     <option value="">Use default reporting.</option>
                     <option value="--tmo">Report only those alignments within known transcripts.</option>
                     <option value="--dta">Report alignments tailored for transcript assemblers including StringTie.</option>
@@ -226,43 +249,43 @@
             </when>
         </conditional>
         <conditional name="paired_options">
-            <param label="Paired alignment parameters" name="paired_options_selector" type="select">
+            <param name="paired_options_selector" type="select" label="Paired alignment parameters">
                 <option value="defaults">Use default values</option>
                 <option value="advanced">Specify paired alignment parameters</option>
             </param>
             <when value="defaults" />
             <when value="advanced">
-                <param argument="--minins" help="The minimum fragment length for valid paired-end alignments. 0 sets no minimum." label="Minimum fragment length" name="minins" type="integer" value="0" />
-                <param argument="--maxins" help="The maximum fragment length for valid paired-end alignments" label="Maximum fragment length" name="maxins" type="integer" value="500" />
-                <param argument="--no-mixed" falsevalue="" help="By default, when hisat2 cannot find a concordant or discordant alignment for a pair, it then tries to find alignments for the individual mates" label="Disable finding alignments for individual mates." name="no_mixed" truevalue="--no-mixed" type="boolean" />
-                <param argument="--no-discordant" falsevalue="" help="By default, hisat2 looks for discordant alignments if it cannot find any concordant alignments. A discordant alignment is an alignment where both mates align uniquely, but that does not satisfy the paired-end constraints" label="Disable looking for discordant alignments." name="no_discordant" truevalue="--no-discordant" type="boolean" />
-                <param argument="--dovetail" falsevalue="" help="If the mates &quot;dovetail&quot;, that is if one mate alignment extends past the beginning of the other such that the wrong mate begins upstream, consider that to be concordant." label="Mates not dovetail" name="dovetail" truevalue="--dovetail" type="boolean" />
-                <param argument="--no-contain" falsevalue="" help="If one mate alignment contains the other, consider that to be non-concordant." label="Mates cannot contain others" name="contain" truevalue="--no-contain" type="boolean" />
-                <param argument="--no-overlap" falsevalue="" help="If one mate alignment overlaps the other at all, consider that to be non-concordant." label="Mates cannot overlap" name="overlap" truevalue="--no-overlap" type="boolean" />
+                <param argument="--minins" name="minins" type="integer" value="0" label="Minimum fragment length" help="The minimum fragment length for valid paired-end alignments. 0 sets no minimum" />
+                <param argument="--maxins" name="maxins" type="integer" value="500" label="Maximum fragment length" help="The maximum fragment length for valid paired-end alignments" />
+                <param argument="--no-mixed" name="no_mixed" type="boolean" truevalue="--no-mixed" falsevalue="" label="Disable finding alignments for individual mates" help="By default, when hisat2 cannot find a concordant or discordant alignment for a pair, it then tries to find alignments for the individual mates" />
+                <param argument="--no-discordant" name="no_discordant" type="boolean" truevalue="--no-discordant" falsevalue="" label="Disable looking for discordant alignments" help="By default, hisat2 looks for discordant alignments if it cannot find any concordant alignments. A discordant alignment is an alignment where both mates align uniquely, but that does not satisfy the paired-end constraints" />
+                <param argument="--dovetail" name="dovetail" type="boolean" truevalue="--dovetail" falsevalue="" label="Mates not dovetail" help="If the mates &quot;dovetail&quot;, that is if one mate alignment extends past the beginning of the other such that the wrong mate begins upstream, consider that to be concordant" />
+                <param argument="--no-contain" name="contain" type="boolean" truevalue="--no-contain" falsevalue="" label="Mates cannot contain others" help="If one mate alignment contains the other, consider that to be non-concordant" />
+                <param argument="--no-overlap" name="overlap" type="boolean" truevalue="--no-overlap" falsevalue="" label="Mates cannot overlap" help="If one mate alignment overlaps the other at all, consider that to be non-concordant" />
             </when>
         </conditional>
     </inputs>
     <outputs>
-        <data format="bam" name="output_alignments">
+        <data name="output_alignments" format="bam">
             <actions>
-              <conditional name="reference_genome.reference_genome_source">
-                <when value="indexed">
-                  <action type="metadata" name="dbkey">
-                    <option type="from_data_table" name="hisat2_indexes" column="1" offset="0">
-                      <filter type="param_value" column="0" value="#" compare="startswith" keep="False"/>
-                      <filter type="param_value" ref="reference_genome.index" column="0"/>
-                    </option>
-                  </action>
-                </when>
-                <when value="history">
-                  <action type="metadata" name="dbkey">
-                    <option type="from_param" name="reference_genome.history_item" param_attribute="dbkey" />
-                  </action>
-                </when>
-              </conditional>
+                <conditional name="reference_genome.reference_genome_source">
+                    <when value="indexed">
+                        <action type="metadata" name="dbkey">
+                            <option type="from_data_table" name="hisat2_indexes" column="1" offset="0">
+                                <filter type="param_value" column="0" value="#" compare="startswith" keep="False"/>
+                                <filter type="param_value" ref="reference_genome.index" column="0"/>
+                            </option>
+                        </action>
+                    </when>
+                    <when value="history">
+                        <action type="metadata" name="dbkey">
+                            <option type="from_param" name="reference_genome.history_item" param_attribute="dbkey" />
+                        </action>
+                    </when>
+                </conditional>
             </actions>
         </data>
-        <data format="fastqsanger" name="output_unaligned_reads_l" label="${tool.name} on ${on_string}: unaligned reads (L)" >
+        <data name="output_unaligned_reads_l" format="fastqsanger" label="${tool.name} on ${on_string}: unaligned reads (L)" >
             <filter>input_format['paired']['unaligned_file'] is True</filter>
             <actions>
                 <conditional name="input_format.paired.paired_selector">
@@ -284,7 +307,7 @@
                 </conditional>
             </actions>
         </data>
-        <data format="fastqsanger" name="output_unaligned_reads_r" label="${tool.name} on ${on_string}: unaligned reads (R)" >
+        <data name="output_unaligned_reads_r" format="fastqsanger" label="${tool.name} on ${on_string}: unaligned reads (R)" >
             <filter>input_format['paired']['unaligned_file'] is True and input_format['paired']['paired_selector'] != 'single'</filter>
             <actions>
                 <conditional name="input_format.paired.paired_selector">
@@ -301,7 +324,7 @@
                 </conditional>
             </actions>
         </data>
-        <data format="fastqsanger" name="output_aligned_reads_l" label="${tool.name} on ${on_string}: aligned reads${' (L)' if str($input_format.paired.paired_selector) != 'single' else ''}" >
+        <data name="output_aligned_reads_l" format="fastqsanger" label="${tool.name} on ${on_string}: aligned reads${' (L)' if str($input_format.paired.paired_selector) != 'single' else ''}" >
             <filter>input_format['paired']['aligned_file'] is True</filter>
             <actions>
                 <conditional name="input_format.paired.paired_selector">
@@ -323,7 +346,7 @@
                 </conditional>
             </actions>
         </data>
-        <data format="fastqsanger" name="output_aligned_reads_r" label="${tool.name} on ${on_string}: aligned reads (R)" >
+        <data name="output_aligned_reads_r" format="fastqsanger" label="${tool.name} on ${on_string}: aligned reads (R)" >
             <filter>input_format['paired']['aligned_file'] is True and input_format['paired']['paired_selector'] != 'single'</filter>
             <actions>
                 <conditional name="input_format.paired.paired_selector">
@@ -388,10 +411,8 @@
             <param name="reference_genome_source" value="history" />
             <param name="history_item" value="phiX.fa" ftype="fasta" />
             <param name="reads" value="test_unaligned_reads.fasta" ftype="fasta" />
-            
             <output name="output_unaligned_reads_l" file="test_unaligned_reads.fasta" />
         </test>
-        
         <test>
             <param name="input_format_selector" value="fasta" />
             <param name="paired_selector" value="paired" />
@@ -403,7 +424,6 @@
             <param name="history_item" value="phiX.fa" ftype="fasta" />
             <param name="reads_f" value="test_unaligned_reads.fasta" ftype="fasta" />
             <param name="reads_r" value="test_unaligned_reads.fasta" ftype="fasta" />
-            
             <output name="output_unaligned_reads_l" file="test_unaligned_reads.fasta" />
             <output name="output_unaligned_reads_r" file="test_unaligned_reads.fasta" />
         </test>