Mercurial > repos > devteam > hisat
comparison hisat.xml @ 0:faed168e996f draft default tip
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/hisat commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
author | devteam |
---|---|
date | Mon, 09 Nov 2015 11:39:20 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:faed168e996f |
---|---|
1 <tool id="hisat" name="HISAT" version="1.0.3"> | |
2 <description>spliced aligner</description> | |
3 <macros> | |
4 <import>hisat_macros.xml</import> | |
5 </macros> | |
6 <requirements> | |
7 <requirement type="package" version="0.1.6">hisat</requirement> | |
8 <requirement type="package" version="1.2">samtools</requirement> | |
9 </requirements> | |
10 <stdio> | |
11 <exit_code range="1:" /> | |
12 </stdio> | |
13 <version_command>hisat --version</version_command> | |
14 <command><![CDATA[ | |
15 #if str($spliced_options.spliced_options_selector) == "advanced" and str($spliced_options.known_splice_gtf) != 'None': | |
16 ln -s "${spliced_options.known_splice_gtf}" splice_sites.gtf && | |
17 extract_splice_sites.py splice_sites.gtf > splice_sites.txt && | |
18 #end if | |
19 #if $reference_genome.reference_genome_source == "history": | |
20 ln -s "$reference_genome.history_item" genome.fa && | |
21 hisat-build genome.fa genome && | |
22 #set index_path = 'genome' | |
23 #else: | |
24 #set index_path = $reference_genome.index.fields.path | |
25 #end if | |
26 hisat -p \${GALAXY_SLOTS:-1} -x "${index_path}" | |
27 #if str($input_format.paired.paired_selector) == 'paired': | |
28 -1 "${reads_f}" -2 "${reads_r}" | |
29 #else if str($input_format.paired.paired_selector) == 'paired_collection': | |
30 -1 "${input_format.paired.reads.forward}" -2 "${input_format.paired.reads.reverse}" | |
31 #else: | |
32 -U "${reads}" | |
33 #end if | |
34 #if $input_format.input_format_selector == 'fasta': | |
35 -f | |
36 #end if | |
37 #if str($input_options.input_options_selector) == "advanced": | |
38 -s ${input_options.skip} -u ${input_options.stop_after} -5 ${input_options.trim_five} -3 ${input_options.trim_three} | |
39 #end if | |
40 #if str($scoring_options.scoring_options_selector) == "advanced": | |
41 --ma ${scoring_options.match_bonus} --mp ${scoring_options.max_mismatch},${scoring_options.min_mismatch} | |
42 --np ${scoring_options.ambiguous_penalty} --rdg ${scoring_options.read_open_penalty},${scoring_options.read_extend_penalty} | |
43 --rfg ${scoring_options.ref_open_penalty},${scoring_options.ref_extend_penalty} | |
44 #end if | |
45 #if str($alignment_options.alignment_options_selector) == "advanced": | |
46 --n-ceil ${alignment_options.function_type},${alignment_options.constant_term},${alignment_options.coefficient_term} | |
47 ${alignment_options.skip_forward} ${alignment_options.skip_reverse} | |
48 #end if | |
49 #if str($spliced_options.spliced_options_selector) == "advanced": | |
50 --pen-cansplice ${spliced_options.canonical_penalty} --pen-noncansplice ${spliced_options.noncanonical_penalty} | |
51 --pen-intronlen ${spliced_options.function_type},${spliced_options.constant_term},${spliced_options.coefficient_term} | |
52 #if str($spliced_options.known_splice_gtf) != 'None': | |
53 --known-splicesite-infile splice_sites.txt | |
54 #end if | |
55 #end if | |
56 | samtools view -bS - | samtools sort - -o hsbam > "${output_alignments}" | |
57 ]]></command> | |
58 <inputs> | |
59 <conditional name="input_format"> | |
60 <param name="input_format_selector" label="Input data format" type="select"> | |
61 <option value="fastq" selected="selected">FASTQ</option> | |
62 <option value="fasta">FASTA</option> | |
63 </param> | |
64 <when value="fasta"> | |
65 <conditional name="paired"> | |
66 <expand macro="single_paired_selector" /> | |
67 <when value="paired_collection"> | |
68 <param format="fasta" name="reads" type="data_collection" collection_type="paired" label="Paired reads" /> | |
69 </when> | |
70 <when value="paired_list"> | |
71 <param format="fasta" name="reads" type="data_collection" collection_type="list:paired" label="Paired reads" /> | |
72 </when> | |
73 <when value="paired"> | |
74 <param label="Forward reads" type="data" name="reads_f" multiple="true" format="fasta" /> | |
75 <param label="Reverse reads" type="data" name="reads_r" multiple="true" format="fasta" /> | |
76 </when> | |
77 <when value="single"> | |
78 <param label="Reads" type="data" name="reads" multiple="true" format="fasta" /> | |
79 </when> | |
80 </conditional> | |
81 </when> | |
82 <when value="fastq"> | |
83 <conditional name="paired"> | |
84 <expand macro="single_paired_selector" /> | |
85 <when value="paired_collection"> | |
86 <param format="fastq" name="reads" type="data_collection" collection_type="paired" label="Paired reads" /> | |
87 </when> | |
88 <when value="paired"> | |
89 <param label="Forward reads" type="data" name="reads_f" multiple="true" format="fastq" /> | |
90 <param label="Reverse reads" type="data" name="reads_r" multiple="true" format="fastq" /> | |
91 </when> | |
92 <when value="single"> | |
93 <param label="Reads" type="data" name="reads" multiple="true" format="fastq" /> | |
94 </when> | |
95 </conditional> | |
96 </when> | |
97 </conditional> | |
98 <conditional name="reference_genome"> | |
99 <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"> | |
100 <option value="indexed" selected="True">Use a built-in genome</option> | |
101 <option value="history">Use a genome from history</option> | |
102 </param> | |
103 <when value="indexed"> | |
104 <param name="index" type="select" label="Select a reference genome" help="If your genome of interest is not listed, contact the Galaxy team"> | |
105 <options from_data_table="hisat_indexes"> | |
106 <filter type="sort_by" column="2"/> | |
107 <validator type="no_options" message="No genomes are available for the selected input dataset"/> | |
108 </options> | |
109 </param> | |
110 </when> | |
111 <when value="history"> | |
112 <param name="history_item" type="data" format="fasta" metadata_name="dbkey" label="Select the reference genome" /> | |
113 </when> | |
114 </conditional> | |
115 <conditional name="alignment_options"> | |
116 <param label="Alignment options" name="alignment_options_selector" type="select"> | |
117 <option value="defaults">Use default values</option> | |
118 <option value="advanced">Specify alignment parameters</option> | |
119 </param> | |
120 <when value="defaults" /> | |
121 <when value="advanced"> | |
122 <expand macro="function"> | |
123 <label>Sets a function governing the maximum number of ambiguous characters</label> | |
124 </expand> | |
125 <param name="ignore_quals" label="Ignore quality values" type="boolean" truevalue="--ignore-quals" falsevalue="" help="(--ignore-quals) 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." /> | |
126 <param name="skip_forward" label="Skip forward strand of reference" type="boolean" truevalue="--nofw" falsevalue="" help="(--nofw) 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." /> | |
127 <param name="skip_reverse" label="Skip reference strand of reference" type="boolean" truevalue="--norc" falsevalue="" help="(--norc) 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." /> | |
128 </when> | |
129 </conditional> | |
130 <conditional name="input_options"> | |
131 <param label="Input options" name="input_options_selector" type="select"> | |
132 <option value="defaults">Use default values</option> | |
133 <option value="advanced">Specify input parameters</option> | |
134 </param> | |
135 <when value="defaults" /> | |
136 <when value="advanced"> | |
137 <param name="skip" label="Skip the first N reads or pairs in the input" help="-s" type="integer" value="0" default="0" /> | |
138 <param name="stop_after" label="Stop after aligning N reads" help="(-u) Align the first N reads or read pairs from the input (after the first N reads or pairs have been skipped), then stop." type="integer" value="0" default="0" /> | |
139 <param name="trim_five" label="Trim 5' end" help="(-5) Trim N bases from 5' (left) end of each read before alignment" type="integer" value="0" default="0" /> | |
140 <param name="trim_three" label="Trim 3' end" help="(-3) Trim N bases from 3' (right) end of each read before alignment" type="integer" value="0" default="0" /> | |
141 </when> | |
142 </conditional> | |
143 <conditional name="scoring_options"> | |
144 <param label="Scoring options" name="scoring_options_selector" type="select"> | |
145 <option value="defaults">Use default values</option> | |
146 <option value="advanced">Specify scoring parameters</option> | |
147 </param> | |
148 <when value="defaults" /> | |
149 <when value="advanced"> | |
150 <param name="match_bonus" label="Set match bonus" help="(--ma) 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" type="integer" value="2" default="2" /> | |
151 <param name="max_mismatch" label="Maximum mismatch penalty" help="(--mp) 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." type="integer" value="6" default="6" /> | |
152 <param name="min_mismatch" label="Minimum mismatch penalty" help="(--mp) 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." type="integer" value="2" default="2" /> | |
153 <param name="ambiguous_penalty" label="Ambiguous read penalty" help="(--np) Sets penalty for positions where the read, reference, or both, contain an ambiguous character such as N" type="integer" value="1" default="1" /> | |
154 <param name="read_open_penalty" label="Read gap open penalty." type="integer" help="(--rdg) A read gap of length N gets a penalty of [open_penalty] + N * [extend_penalty]" value="5" default="5" /> | |
155 <param name="read_extend_penalty" label="Read gap extend penalty." type="integer" help="(--rdg) A read gap of length N gets a penalty of [open_penalty] + N * [extend_penalty]" value="3" default="3" /> | |
156 <param name="ref_open_penalty" label="Reference gap open penalty." help="(--rfg) A reference gap of length N gets a penalty of [open_penalty] + N * [extend_penalty]" type="integer" value="5" default="5" /> | |
157 <param name="ref_extend_penalty" label="Reference gap extend penalty." help="(--rfg) A reference gap of length N gets a penalty of [open_penalty] + N * [extend_penalty]" type="integer" value="3" default="3" /> | |
158 </when> | |
159 </conditional> | |
160 <conditional name="spliced_options"> | |
161 <param label="Spliced alignment parameters" name="spliced_options_selector" type="select"> | |
162 <option value="defaults">Use default values</option> | |
163 <option value="advanced">Specify spliced alignment parameters</option> | |
164 </param> | |
165 <when value="defaults" /> | |
166 <when value="advanced"> | |
167 <param name="canonical_penalty" label="Penalty for canonical splice sites" type="integer" value="0" /> | |
168 <param name="noncanonical_penalty" label="Penalty for non-canonical splice sites" type="integer" value="3" /> | |
169 <expand macro="function"> | |
170 <label>Sets the penalty for long introns so that alignments with shorter introns are preferred to those with longer ones.</label> | |
171 </expand> | |
172 <param name="min_intron" label="Minimum intron length" type="integer" value="20" /> | |
173 <param name="max_intron" label="Maximum intron length" type="integer" value="500000" /> | |
174 <param name="known_splice_gtf" label="GTF file with known splice sites" type="data" format="gtf" optional="True" /> | |
175 </when> | |
176 </conditional> | |
177 </inputs> | |
178 <tests> | |
179 <test> | |
180 <param name="input_format_selector" value="fastq" /> | |
181 <param name="paired_selector" value="paired" /> | |
182 <param name="reference_genome_source" value="history" /> | |
183 <param name="history_item" value="phiX.fa" ftype="fasta" /> | |
184 <param name="reads_f" ftype="fastqsanger" value="hisat_input_1_forward.fastq" /> | |
185 <param name="reads_r" ftype="fastqsanger" value="hisat_input_1_reverse.fastq" /> | |
186 <output name="output_alignments" ftype="bam" file="hisat_output_1.bam" /> | |
187 </test> | |
188 <test> | |
189 <param name="input_format_selector" value="fastq" /> | |
190 <param name="paired_selector" value="paired" /> | |
191 <param name="reference_genome_source" value="history" /> | |
192 <param name="history_item" value="phiX.fa" ftype="fasta" /> | |
193 <param name="input_options_selector" value="advanced" /> | |
194 <param name="trim_three" value="15" /> | |
195 <param name="trim_five" value="15" /> | |
196 <param name="reads_f" ftype="fastqsanger" value="hisat_input_2_forward.fastq" /> | |
197 <param name="reads_r" ftype="fastqsanger" value="hisat_input_2_reverse.fastq" /> | |
198 <output name="output_alignments" ftype="bam" file="hisat_output_2.bam" /> | |
199 </test> | |
200 </tests> | |
201 <outputs> | |
202 <data name="output_alignments" format="bam" /> | |
203 </outputs> | |
204 <help><![CDATA[ | |
205 Introduction | |
206 ============ | |
207 | |
208 What is HISAT? | |
209 -------------- | |
210 | |
211 `HISAT <http://ccb.jhu.edu/software/hisat>`__ is a fast and sensitive | |
212 spliced alignment program. As part of HISAT, we have developed a new | |
213 indexing scheme based on the Burrows-Wheeler transform | |
214 (`BWT <http://en.wikipedia.org/wiki/Burrows-Wheeler_transform>`__) and | |
215 the `FM index <http://en.wikipedia.org/wiki/FM-index>`__, called | |
216 hierarchical indexing, that employs two types of indexes: (1) one global | |
217 FM index representing the whole genome, and (2) many separate local FM | |
218 indexes for small regions collectively covering the genome. Our | |
219 hierarchical index for the human genome (about 3 billion bp) includes | |
220 ~48,000 local FM indexes, each representing a genomic region of | |
221 ~64,000bp. As the basis for non-gapped alignment, the FM index is | |
222 extremely fast with a low memory footprint, as demonstrated by | |
223 `Bowtie <http://bowtie-bio.sf.net>`__. In addition, HISAT provides | |
224 several alignment strategies specifically designed for mapping different | |
225 types of RNA-seq reads. All these together, HISAT enables extremely fast | |
226 and sensitive alignment of reads, in particular those spanning two exons | |
227 or more. As a result, HISAT is much faster >50 times than | |
228 `TopHat2 <http://ccb.jhu.edu/software/tophat>`__ with better alignment | |
229 quality. Although it uses a large number of indexes, the memory | |
230 requirement of HISAT is still modest, approximately 4.3 GB for human. | |
231 HISAT uses the `Bowtie2 <http://bowtie-bio.sf.net/bowtie2>`__ | |
232 implementation to handle most of the operations on the FM index. In | |
233 addition to spliced alignment, HISAT handles reads involving indels and | |
234 supports a paired-end alignment mode. Multiple processors can be used | |
235 simultaneously to achieve greater alignment speed. HISAT outputs | |
236 alignments in `SAM <http://samtools.sourceforge.net/SAM1.pdf>`__ format, | |
237 enabling interoperation with a large number of other tools (e.g. | |
238 `SAMtools <http://samtools.sourceforge.net>`__, | |
239 `GATK <http://www.broadinstitute.org/gsa/wiki/index.php/The_Genome_Analysis_Toolkit>`__) | |
240 that use SAM. HISAT is distributed under the `GPLv3 | |
241 license <http://www.gnu.org/licenses/gpl-3.0.html>`__, and it runs on | |
242 the command line under Linux, Mac OS X and Windows. | |
243 | |
244 Running HISAT | |
245 ============= | |
246 | |
247 Reporting | |
248 --------- | |
249 | |
250 The reporting mode governs how many alignments HISAT looks for, and how | |
251 to report them. | |
252 | |
253 In general, when we say that a read has an alignment, we mean that it | |
254 has a `valid | |
255 alignment <#valid-alignments-meet-or-exceed-the-minimum-score-threshold>`__. | |
256 When we say that a read has multiple alignments, we mean that it has | |
257 multiple alignments that are valid and distinct from one another. | |
258 | |
259 Distinct alignments map a read to different places | |
260 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
261 | |
262 Two alignments for the same individual read are "distinct" if they map | |
263 the same read to different places. Specifically, we say that two | |
264 alignments are distinct if there are no alignment positions where a | |
265 particular read offset is aligned opposite a particular reference offset | |
266 in both alignments with the same orientation. E.g. if the first | |
267 alignment is in the forward orientation and aligns the read character at | |
268 read offset 10 to the reference character at chromosome 3, offset | |
269 3,445,245, and the second alignment is also in the forward orientation | |
270 and also aligns the read character at read offset 10 to the reference | |
271 character at chromosome 3, offset 3,445,245, they are not distinct | |
272 alignments. | |
273 | |
274 Two alignments for the same pair are distinct if either the mate 1s in | |
275 the two paired-end alignments are distinct or the mate 2s in the two | |
276 alignments are distinct or both. | |
277 | |
278 Default mode: search for one or more alignments, report each | |
279 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
280 | |
281 HISAT searches for up to N distinct, primary alignments for each read, | |
282 where N equals the integer specified with the ``-k`` parameter. Primary | |
283 alignments mean alignments whose alignment score is equal or higher than | |
284 any other alignments. It is possible that multiple distinct alignments | |
285 whave the same score. That is, if ``-k 2`` is specified, HISAT will | |
286 search for at most 2 distinct alignments. The alignment score for a | |
287 paired-end alignment equals the sum of the alignment scores of the | |
288 individual mates. Each reported read or pair alignment beyond the first | |
289 has the SAM 'secondary' bit (which equals 256) set in its FLAGS field. | |
290 See the `SAM specification <http://samtools.sourceforge.net/SAM1.pdf>`__ | |
291 for details. | |
292 | |
293 HISAT does not "find" alignments in any specific order, so for reads | |
294 that have more than N distinct, valid alignments, HISAT does not | |
295 gaurantee that the N alignments reported are the best possible in terms | |
296 of alignment score. Still, this mode can be effective and fast in | |
297 situations where the user cares more about whether a read aligns (or | |
298 aligns a certain number of times) than where exactly it originated. | |
299 | |
300 Alignment summmary | |
301 ------------------ | |
302 | |
303 When HISAT finishes running, it prints messages summarizing what | |
304 happened. These messages are printed to the "standard error" ("stderr") | |
305 filehandle. For datasets consisting of unpaired reads, the summary might | |
306 look like this: | |
307 | |
308 :: | |
309 | |
310 20000 reads; of these: | |
311 20000 (100.00%) were unpaired; of these: | |
312 1247 (6.24%) aligned 0 times | |
313 18739 (93.69%) aligned exactly 1 time | |
314 14 (0.07%) aligned >1 times | |
315 93.77% overall alignment rate | |
316 | |
317 For datasets consisting of pairs, the summary might look like this: | |
318 | |
319 :: | |
320 | |
321 10000 reads; of these: | |
322 10000 (100.00%) were paired; of these: | |
323 650 (6.50%) aligned concordantly 0 times | |
324 8823 (88.23%) aligned concordantly exactly 1 time | |
325 527 (5.27%) aligned concordantly >1 times | |
326 ---- | |
327 650 pairs aligned concordantly 0 times; of these: | |
328 34 (5.23%) aligned discordantly 1 time | |
329 ---- | |
330 616 pairs aligned 0 times concordantly or discordantly; of these: | |
331 1232 mates make up the pairs; of these: | |
332 660 (53.57%) aligned 0 times | |
333 571 (46.35%) aligned exactly 1 time | |
334 1 (0.08%) aligned >1 times | |
335 96.70% overall alignment rate | |
336 | |
337 The indentation indicates how subtotals relate to totals. | |
338 ]]></help> | |
339 <citations> | |
340 <citation type="doi">10.1038/nmeth.3317</citation> | |
341 </citations> | |
342 </tool> |