Mercurial > repos > iuc > hisat2
comparison hisat2_macros.xml @ 15:d5fe9aead222 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hisat2 commit 48012d1879395ecf1b4e6cd962f325c372164a33
author | iuc |
---|---|
date | Tue, 26 Sep 2017 17:01:28 -0400 |
parents | 526b91fbde60 |
children | 6ab42baa56e9 |
comparison
equal
deleted
inserted
replaced
14:526b91fbde60 | 15:d5fe9aead222 |
---|---|
1 <?xml version="1.0"?> | |
2 <macros> | 1 <macros> |
3 <xml name="single_paired_selector"> | 2 <xml name="paired_end_options"> |
4 <param name="paired_selector" type="select" label="Single end or paired reads?"> | 3 |
5 <option value="paired">Paired reads</option> | 4 <param name="rna_strandness" argument="--rna-strandness" type="select" label="Specify strand information" |
6 <option value="single">Unpaired reads</option> | 5 help="'FR' means a read corresponds to a transcript. 'RF' means a read corresponds to the reverse complemented counterpart of a transcript. With this option being used, every read alignment will have an XS attribute tag: '+' means a read belongs to a transcript on '+' strand of genome. '-' means a read belongs to a transcript on '-' strand of genome."> |
6 <option value="">Unstranded</option> | |
7 <option value="FR">Forward (FR)</option> | |
8 <option value="RF">Reverse (RF)</option> | |
7 </param> | 9 </param> |
8 </xml> | 10 |
9 <xml name="paired_input_conditional" tokens="ftype"> | 11 <conditional name="paired_options"> |
10 <conditional name="paired"> | 12 <param name="paired_options_selector" type="select" label="Paired-end options" help="See "Alignment Options" section of Help below for information"> |
11 <expand macro="single_paired_selector" /> | |
12 <when value="paired"> | |
13 <conditional name="collection" label="Data structure"> | |
14 <param name="collection_selector" type="select" label="Input is structured as" help="If a list of pairs is selected, HISAT2 will run in batch mode over each pair in the list, producing a list of output bam files"> | |
15 <option value="files">Individual files</option> | |
16 <option value="collection">Pair collection or list of pairs</option> | |
17 </param> | |
18 <when value="collection"> | |
19 <param name="reads" type="data_collection" collection_type="paired" format="@FTYPE@" label="Paired reads" /> | |
20 </when> | |
21 <when value="files"> | |
22 <param name="forward" type="data" format="@FTYPE@" label="Forward reads" /> | |
23 <param name="reverse" type="data" format="@FTYPE@" label="Reverse reads" /> | |
24 </when> | |
25 </conditional> | |
26 <expand macro="paired_end_conditional" /> | |
27 <expand macro="paired_end_output" /> | |
28 </when> | |
29 <when value="single"> | |
30 <param name="reads" type="data" format="@FTYPE@" label="Reads" /> | |
31 <param name="unaligned_file" argument="--un-gz" type="boolean" truevalue="true" falsevalue="false" checked="False" label="Write unaligned reads (in fastq format) to separate file(s)" /> | |
32 <param name="aligned_file" argument="--al-gz" type="boolean" truevalue="true" falsevalue="false" checked="False" label="Write aligned reads (in fastq format) to separate file(s)" /> | |
33 </when> | |
34 </conditional> | |
35 </xml> | |
36 <xml name="paired_end_conditional"> | |
37 <conditional name="paired_end_options"> | |
38 <param name="paired_end_options_selector" type="select" label="Paired-end options"> | |
39 <option value="defaults">Use default values</option> | 13 <option value="defaults">Use default values</option> |
40 <option value="advanced">Specify paired-end parameters</option> | 14 <option value="advanced">Specify paired-end parameters</option> |
41 </param> | 15 </param> |
42 <when value="defaults" /> | 16 <when value="defaults"/> |
43 <when value="advanced"> | 17 <when value="advanced"> |
44 <param name="no_mixed" type="boolean" truevalue="--no-mixed" falsevalue="" label="Disable alignments of individual mates" help="By default, when hisat cannot find a concordant or discordant alignment for a pair, it then tries to find alignments for the individual mates. This option disables that behavior" /> | 18 <param name="fr_rf_ff" argument="--fr/--rf/--ff" type="select" display="radio" label="Select the upstream/downstream mate orientations for a valid paired-end alignment against the forward reference strand" |
45 <param name="no_discordant" type="boolean" truevalue="--no-discordant" falsevalue="" label="Disable alignments of individual mates" help="By default, hisat 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 (--fr/--rf/--ff, -I, -X). This option disables that behavior" /> | 19 help="E.g., if `--fr` is specified and there is a candidate paired-end alignment where mate 1 appears upstream of the reverse complement of mate 2 and the fragment length constraints (`-I` and `-X`) are met, that alignment is valid. Also, if mate 2 appears upstream of the reverse complement of mate 1 and all other constraints are met, that too is valid. `--rf` likewise requires that an upstream mate1 be reverse-complemented and a downstream mate2 be forward-oriented. `--ff` requires both an upstream mate 1 and a downstream mate 2 to be forward-oriented; Default=--fr (appropriate for Illumina's Paired-end Sequencing Assay)"> |
46 <param name="skip_reverse" type="boolean" truevalue="--norc" falsevalue="" label="Skip reference strand of reference" 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" /> | 20 <option value="--fr" selected="True">--fr</option> |
21 <option value="--rf">--rf</option> | |
22 <option value="--ff">--ff</option> | |
23 </param> | |
24 <param argument="--no-mixed" name="no_mixed" type="boolean" truevalue="--no-mixed" falsevalue="" checked="False" label="Disable no-mixed behavior" 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; default: False"/> | |
25 <param argument="--no-discordant" name="no_discordant" type="boolean" truevalue="--no-discordant" falsevalue="" checked="False" label="Disable no-discordant behavior" help="--no-discordant; 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 (`--fr`/`--rf`/`--ff`, `-I`, `-X`); default: False"/> | |
47 </when> | 26 </when> |
48 </conditional> | 27 </conditional> |
28 | |
49 </xml> | 29 </xml> |
50 <xml name="paired_end_output"> | |
51 <param name="unaligned_file" argument="--un-conc-gz" type="boolean" truevalue="true" falsevalue="false" checked="False" label="Write unaligned reads (in fastq format) to separate file(s)" /> | |
52 <param name="aligned_file" argument="--al-conc-gz" type="boolean" truevalue="true" falsevalue="false" checked="False" label="Write aligned reads (in fastq format) to separate file(s)" /> | |
53 </xml> | |
54 <token name="@paired_end_options@"> | |
55 #if str( $input_format.paired.unaligned_file ) == "true": | |
56 #if $compressed == "GZ": | |
57 --un-conc-gz '${output_unaligned_reads_l}' | |
58 #else if $compressed == "BZ2": | |
59 --un-conc-bz2 '${output_unaligned_reads_l}' | |
60 #else: | |
61 --un-conc '${output_unaligned_reads_l}' | |
62 #end if | |
63 #end if | |
64 #if str( $input_format.paired.aligned_file ) == "true": | |
65 #if $compressed == "GZ": | |
66 --al-conc-gz '${output_aligned_reads_l}' | |
67 #else if $compressed == "BZ2" | |
68 --al-conc-bz2 '${output_aligned_reads_l}' | |
69 #else: | |
70 --al-conc '${output_aligned_reads_l}' | |
71 #end if | |
72 #end if | |
73 #if str($input_format.paired.paired_end_options.paired_end_options_selector) == 'advanced': | |
74 ${input_format.paired.paired_end_options.no_mixed} | |
75 ${input_format.paired.paired_end_options.no_discordant} | |
76 #end if | |
77 </token> | |
78 <token name="@strandedness_parameters@"> | |
79 #if str($spliced_options.spliced_options_selector) == "advanced": | |
80 #if str($spliced_options.rna_strandness).strip() != '': | |
81 --rna-strandness $spliced_options.rna_strandness | |
82 #end if | |
83 #end if | |
84 </token> | |
85 <token name="@FASTQGZ_SETUP@"> | |
86 <![CDATA[ | |
87 #set compressed="False" | |
88 #if str($input_format.paired.paired_selector) == 'paired': | |
89 #if str($input_format.paired.collection.collection_selector) == 'collection': | |
90 #if $input_format.paired.collection.reads.forward.is_of_type("fastq.gz", "fastqsanger.gz"): | |
91 #set read1 = "input_f.fastq.gz" | |
92 #set compressed = "GZ" | |
93 #else if $input_format.paired.collection.reads.forward.is_of_type("fastq.bz2", "fastqsanger.bz2"): | |
94 #set read1 = "input_f.fastq.bz2" | |
95 #set compressed = "BZ2" | |
96 #else: | |
97 #set read1 = "input_f.fastq" | |
98 #end if | |
99 ln -f -s '${input_format.paired.collection.reads.forward}' ${read1} && | |
100 | |
101 #if $input_format.paired.collection.reads.reverse.is_of_type("fastq.gz", "fastqsanger.gz"): | |
102 #set read2 = "input_r.fastq.gz" | |
103 #set compressed = "GZ" | |
104 #else if $input_format.paired.collection.reads.reverse.is_of_type("fastq.bz2", "fastqsanger.bz2"): | |
105 #set read2 = "input_r.fastq.bz2" | |
106 #set compressed = "BZ2" | |
107 #else: | |
108 #set read2 = "input_r.fastq" | |
109 #end if | |
110 ln -f -s '${input_format.paired.collection.reads.reverse}' ${read2} && | |
111 #else: | |
112 #if $input_format.paired.collection.forward.is_of_type("fastq.gz", "fastqsanger.gz"): | |
113 #set read1 = "input_f.fastq.gz" | |
114 #set compressed = "GZ" | |
115 #else if $input_format.paired.collection.forward.is_of_type("fastq.bz2", "fastqsanger.bz2"): | |
116 #set read1 = "input_f.fastq.bz2" | |
117 #set compressed = "BZ2" | |
118 #else: | |
119 #set read1 = "input_f.fastq" | |
120 #end if | |
121 ln -f -s '${input_format.paired.collection.forward}' ${read1} && | |
122 | |
123 #if $input_format.paired.collection.reverse.is_of_type("fastq.gz", "fastqsanger.gz"): | |
124 #set read2 = "input_r.fastq.gz" | |
125 #set compressed = "GZ" | |
126 #else if $input_format.paired.collection.reverse.is_of_type("fastq.bz2", "fastqsanger.bz2"): | |
127 #set read2 = "input_r.fastq.bz2" | |
128 #set compressed = "BZ2" | |
129 #else: | |
130 #set read2 = "input_r.fastq" | |
131 #end if | |
132 ln -f -s '${input_format.paired.collection.reverse}' ${read2} && | |
133 #end if | |
134 #else: | |
135 #if $input_format.paired.reads.is_of_type("fastq.gz", "fastqsanger.gz"): | |
136 #set read1 = "input_f.fastq.gz" | |
137 #set compressed = "GZ" | |
138 #else if $input_format.paired.reads.is_of_type("fastq.bz2", "fastqsanger.bz2"): | |
139 #set read1 = "input_f.fastq.bz2" | |
140 #set compressed = "BZ2" | |
141 #else: | |
142 #set read1 = "input_f.fastq" | |
143 #end if | |
144 ln -s '${input_format.paired.reads}' ${read1} && | |
145 #end if | |
146 ]]> | |
147 </token> | |
148 </macros> | 30 </macros> |