# HG changeset patch # User iuc # Date 1511527428 18000 # Node ID e0ca9500999b03222e49b9f4f3f4056f6d0070e9 # Parent 69f044db244586fc9388b5133f21ca18f5ff33e2 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bowtie2 commit a887e11c533af3ed3734c26da2da33aa8acbbce9 diff -r 69f044db2445 -r e0ca9500999b bowtie2_wrapper.xml --- a/bowtie2_wrapper.xml Tue Nov 14 15:02:02 2017 -0500 +++ b/bowtie2_wrapper.xml Fri Nov 24 07:43:48 2017 -0500 @@ -1,324 +1,327 @@ - + - map reads against reference genome bowtie2_macros.xml - bowtie2 - samtools + bowtie2 + samtools bowtie2 --version '$mapping_stats' - #end if +#elif str( $analysis_type.analysis_type_selector ) == "cline": + ${analysis_type.cline} +#end if - ## output file - #if ( str( $analysis_type.analysis_type_selector ) != "full" or str( $analysis_type.sam_opt ) != "true" ): - | samtools sort -O bam -o '$output' - #else - > '$output_sam' - #end if +## mapping stats (i.e. stderr from bowtie2) +#if $save_mapping_stats + 2> '$mapping_stats' +#end if - ## rename unaligned sequence files - #if $library.type == "paired" and $output_unaligned_reads_l and $output_unaligned_reads_r: - #from os.path import splitext - #set _unaligned_root, _unaligned_ext = splitext( str( $output_unaligned_reads_l ) ) - && mv "${ _unaligned_root }.1${_unaligned_ext}" '$output_unaligned_reads_l' - && mv "${ _unaligned_root }.2${_unaligned_ext}" '$output_unaligned_reads_r' - #end if - #if $library.type == "paired" and $output_aligned_reads_l and $output_aligned_reads_r: - #from os.path import splitext - #set _aligned_root, _aligned_ext = splitext( str( $output_aligned_reads_l ) ) - && mv "${ _aligned_root }.1${_aligned_ext}" '$output_aligned_reads_l' - && mv "${ _aligned_root }.2${_aligned_ext}" '$output_aligned_reads_r' - #end if +## output file +#if ( str( $analysis_type.analysis_type_selector ) != "full" or str( $analysis_type.sam_opt ) != "true" ): + | samtools sort -@\${GALAXY_SLOTS:-2} -O bam -o '$output' +#else + > '$output_sam' +#end if + +## rename unaligned sequence files +#if $library.type == "paired" and $output_unaligned_reads_l and $output_unaligned_reads_r: + #from os.path import splitext + #set _unaligned_root, _unaligned_ext = splitext( str( $output_unaligned_reads_l ) ) + && mv '${ _unaligned_root }.1${_unaligned_ext}' '$output_unaligned_reads_l' + && mv '${ _unaligned_root }.2${_unaligned_ext}' '$output_unaligned_reads_r' +#end if +#if $library.type == "paired" and $output_aligned_reads_l and $output_aligned_reads_r: + #from os.path import splitext + #set _aligned_root, _aligned_ext = splitext( str( $output_aligned_reads_l ) ) + && mv '${ _aligned_root }.1${_aligned_ext}' '$output_aligned_reads_l' + && mv '${ _aligned_root }.2${_aligned_ext}' '$output_aligned_reads_r' +#end if ]]> @@ -333,34 +336,25 @@ - - - - - - - - - @@ -379,7 +373,6 @@ - @@ -502,7 +495,6 @@ - @@ -511,6 +503,9 @@ + + + @@ -535,11 +530,8 @@ - - - library['unaligned_file'] is True @@ -618,7 +610,6 @@ - analysis_type['analysis_type_selector'] == "simple" or analysis_type['sam_opt'] is False @@ -639,7 +630,6 @@ - analysis_type['analysis_type_selector'] == "full" and analysis_type['sam_opt'] is True @@ -663,9 +653,7 @@ save_mapping_stats is True - - @@ -779,7 +767,6 @@ -