Mercurial > repos > iuc > hisat2
comparison hisat2.xml @ 3:b1e25f9b5eab draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hisat2 commit 9a9d44116b21d9a155b5cc274475e78c14915059
author | iuc |
---|---|
date | Tue, 15 Mar 2016 13:04:50 -0400 |
parents | c37b4554f794 |
children | 2d449a1bb5ab |
comparison
equal
deleted
inserted
replaced
2:c37b4554f794 | 3:b1e25f9b5eab |
---|---|
4 <macros> | 4 <macros> |
5 <import>hisat2_macros.xml</import> | 5 <import>hisat2_macros.xml</import> |
6 </macros> | 6 </macros> |
7 <requirements> | 7 <requirements> |
8 <requirement type="package" version="2.0">hisat</requirement> | 8 <requirement type="package" version="2.0">hisat</requirement> |
9 <!-- Conda dependency --> | |
10 <requirement type="package" version="2.0.0beta">hisat2</requirement> | |
9 <requirement type="package" version="1.2">samtools</requirement> | 11 <requirement type="package" version="1.2">samtools</requirement> |
10 </requirements> | 12 </requirements> |
11 <stdio> | 13 <stdio> |
12 <regex match="hisat2-align exited with value 1" source="both" level="fatal"/> | 14 <regex match="hisat2-align exited with value 1" source="both" level="fatal"/> |
15 <regex match="hisat2: not found" source="both" level="fatal"/> | |
13 <exit_code range="1:" /> | 16 <exit_code range="1:" /> |
14 </stdio> | 17 </stdio> |
15 <version_command>hisat2 --version</version_command> | 18 <version_command>hisat2 --version</version_command> |
16 <command> | 19 <command> |
17 <![CDATA[ | 20 <![CDATA[ |
26 #else: | 29 #else: |
27 #set index_path = $reference_genome.index.fields.path | 30 #set index_path = $reference_genome.index.fields.path |
28 #end if | 31 #end if |
29 hisat2 -p \${GALAXY_SLOTS:-1} -x "${index_path}" | 32 hisat2 -p \${GALAXY_SLOTS:-1} -x "${index_path}" |
30 #if str($input_format.paired.paired_selector) == 'paired': | 33 #if str($input_format.paired.paired_selector) == 'paired': |
31 -1 "${reads_f}" -2 "${reads_r}" | 34 -1 "${input_format.paired.reads_f}" -2 "${input_format.paired.reads_r}" |
32 @paired_end_options@ | 35 @paired_end_options@ |
33 #else if str($input_format.paired.paired_selector) == 'paired_collection': | 36 #else if str($input_format.paired.paired_selector) == 'paired_collection': |
34 -1 "${input_format.paired.reads.forward}" -2 "${input_format.paired.reads.reverse}" | 37 -1 "${input_format.paired.reads.forward}" -2 "${input_format.paired.reads.reverse}" |
35 @paired_end_options@ | 38 @paired_end_options@ |
36 #else: | 39 #else: |
78 #end if | 81 #end if |
79 #if str($paired_options.paired_options_selector) == "advanced": | 82 #if str($paired_options.paired_options_selector) == "advanced": |
80 --minins ${paired_options.minins} --maxins ${paired_options.maxins} ${paired_options.no_mixed} ${paired_options.no_discordant} | 83 --minins ${paired_options.minins} --maxins ${paired_options.maxins} ${paired_options.no_mixed} ${paired_options.no_discordant} |
81 ${paired_options.dovetail} ${paired_options.contain} ${paired_options.overlap} | 84 ${paired_options.dovetail} ${paired_options.contain} ${paired_options.overlap} |
82 #end if | 85 #end if |
83 | samtools view -bS - | samtools sort - -o hsbam > "${output_alignments}" | 86 | samtools sort - -@ \${GALAXY_SLOTS:-2} -l 6 -o hsbam > "${output_alignments}" |
84 ]]> | 87 ]]> |
85 </command> | 88 </command> |
86 <inputs> | 89 <inputs> |
87 <conditional name="input_format"> | 90 <conditional name="input_format"> |
88 <param label="Input data format" name="input_format_selector" type="select"> | 91 <param label="Input data format" name="input_format_selector" type="select"> |
219 <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" /> | 222 <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" /> |
220 </when> | 223 </when> |
221 </conditional> | 224 </conditional> |
222 </inputs> | 225 </inputs> |
223 <outputs> | 226 <outputs> |
224 <data format="bam" name="output_alignments" /> | 227 <data format="bam" name="output_alignments"> |
228 <actions> | |
229 <conditional name="reference_genome.reference_genome_source"> | |
230 <when value="indexed"> | |
231 <action type="metadata" name="dbkey"> | |
232 <option type="from_data_table" name="hisat2_indexes" column="1" offset="0"> | |
233 <filter type="param_value" column="0" value="#" compare="startswith" keep="False"/> | |
234 <filter type="param_value" ref="reference_genome.index" column="0"/> | |
235 </option> | |
236 </action> | |
237 </when> | |
238 <when value="history"> | |
239 <action type="metadata" name="dbkey"> | |
240 <option type="from_param" name="reference_genome.history_item" param_attribute="dbkey" /> | |
241 </action> | |
242 </when> | |
243 </conditional> | |
244 </actions> | |
245 </data> | |
225 </outputs> | 246 </outputs> |
226 <tests> | 247 <tests> |
227 <test> | 248 <test> |
228 <param name="input_format_selector" value="fastq" /> | 249 <param name="input_format_selector" value="fastq" /> |
229 <param name="paired_selector" value="paired" /> | 250 <param name="paired_selector" value="paired" /> |