comparison hisat2.xml @ 21:0b1c04a90182 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hisat2 commit dac38d1735c11fe614d0a986a796e33eb7f4a469
author iuc
date Sat, 14 Jul 2018 09:06:59 -0400
parents 6ab42baa56e9
children a26ed87f444c
comparison
equal deleted inserted replaced
20:6ab42baa56e9 21:0b1c04a90182
1 <tool id="hisat2" name="HISAT2" version="2.1.0" profile="17.01"> 1 <tool id="hisat2" name="HISAT2" version="2.1.0+galaxy1" 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.4">samtools</requirement> 8 <requirement type="package" version="1.8">samtools</requirement>
9 </requirements> 9 </requirements>
10 <stdio> 10 <stdio>
11 <regex level="fatal" match="hisat2-align exited with value 1" source="both" /> 11 <regex level="fatal" match="hisat2-align exited with value 1" source="both" />
12 <regex level="fatal" match="hisat2: not found" source="both" /> 12 <regex level="fatal" match="hisat2: not found" source="both" />
13 <exit_code range="1:" /> 13 <exit_code range="1:" />
14 </stdio> 14 </stdio>
15 <version_command>hisat2 --version</version_command> 15 <version_command>hisat2 --version</version_command>
16 <command><![CDATA[ 16 <command><![CDATA[
17 ## Use pipefail if available to quit with first non-zero exit code
18 set -o | grep -q pipefail && set -o pipefail;
19
20 ## Prepare HISAT2 index 17 ## Prepare HISAT2 index
21 18
22 #if $reference_genome.source == "history": 19 #if $reference_genome.source == "history":
23 ln -s '$reference_genome.history_item' genome.fa && 20 ln -s '$reference_genome.history_item' genome.fa &&
24 hisat2-build -p \${GALAXY_SLOTS:-1} genome.fa genome && 21 hisat2-build -p \${GALAXY_SLOTS:-1} genome.fa genome &&
291 #if str($sum.summary_file) == "true": 288 #if str($sum.summary_file) == "true":
292 --summary-file summary.txt 289 --summary-file summary.txt
293 #end if 290 #end if
294 291
295 ## Convert SAM output to sorted BAM 292 ## Convert SAM output to sorted BAM
296 293 ## using the two pipe stages has the following effect
297 | samtools sort - -@ \${GALAXY_SLOTS:-1} -l 6 -o '${output_alignments}' 294 ## - hisat2 and sort run in parallel, during this time sort produces
295 ## presorted temporary files but does not produce output (hence
296 ## view does not run)
297 ## - once hisat is finished sort will start to merge the temporary
298 ## files (which should be fast also on a single thread) gives the
299 ## sorted output to view which only compresses the files (now
300 ## using full parallelism again)
301
302 | samtools sort -l 0 -O bam | samtools view -O bam -@ \${GALAXY_SLOTS:-1} -o '${output_alignments}'
298 303
299 ## Rename any output fastq files 304 ## Rename any output fastq files
300 305
301 #if $output_unaligned_reads_l and $output_unaligned_reads_r: 306 #if $output_unaligned_reads_l and $output_unaligned_reads_r:
302 #from os.path import splitext 307 #from os.path import splitext