# HG changeset patch # User iuc # Date 1758721017 0 # Node ID c3d19e7ee879421e064aad88970c93e37b2d1f1b # Parent 6b4916819621706fa4d44b0301780e5812af7ace planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bowtie2 commit 4508a3878ac8d12306a7521aa55fa286710d947a diff -r 6b4916819621 -r c3d19e7ee879 bowtie2_macros.xml --- a/bowtie2_macros.xml Thu Nov 03 19:37:06 2022 +0000 +++ b/bowtie2_macros.xml Wed Sep 24 13:36:57 2025 +0000 @@ -1,6 +1,7 @@ - 2.5.0 + 2.5.4 0 + 23.0 @@ -59,7 +60,7 @@ #if $use_rg #if $rg_param('read_group_id_conditional') is None #set $rg_id = $rg_auto_name - #elif $rg_param('read_group_id_conditional').do_auto_name + #elif $rg_param('read_group_id_conditional').do_auto_name == "yes" #set $rg_id = $rg_auto_name #else #set $rg_id = str($rg_param('read_group_id_conditional').ID) @@ -67,7 +68,7 @@ #if $rg_param('read_group_sm_conditional') is None #set $rg_sm = '' - #elif $rg_param('read_group_sm_conditional').do_auto_name + #elif $rg_param('read_group_sm_conditional').do_auto_name == "yes" #set $rg_sm = $rg_auto_name #else #set $rg_sm = str($rg_param('read_group_sm_conditional').SM) @@ -81,7 +82,7 @@ #if $rg_param('read_group_lb_conditional') is None #set $rg_lb = '' - #elif $rg_param('read_group_lb_conditional').do_auto_name + #elif $rg_param('read_group_lb_conditional').do_auto_name == "yes" #set $rg_lb = $rg_auto_name #else #set $rg_lb = str($rg_param('read_group_lb_conditional').LB) @@ -140,15 +141,17 @@ #set $use_rg = str($rg.rg_selector) != "do_not_set" - - - - + + + + + + - + @@ -173,7 +176,7 @@ as per Picard. --> - + @@ -196,7 +199,7 @@ - + @@ -206,7 +209,7 @@ - + @@ -227,8 +230,8 @@ - - \*|[ACMGRSVTWYHKDBN]+$ + + |\*|[ACMGRSVTWYHKDBN]+$ @@ -241,10 +244,10 @@ - + - + @@ -287,10 +290,8 @@ - - - - + + @@ -310,11 +311,11 @@ - - - - - + + + + + diff -r 6b4916819621 -r c3d19e7ee879 bowtie2_wrapper.xml --- a/bowtie2_wrapper.xml Thu Nov 03 19:37:06 2022 +0000 +++ b/bowtie2_wrapper.xml Wed Sep 24 13:36:57 2025 +0000 @@ -1,4 +1,4 @@ - + - map reads against reference genome bowtie2_macros.xml @@ -8,7 +8,7 @@ bowtie2 - samtools + samtools bowtie2 --version '$mapping_stats' + 2> >(tee '$mapping_stats' >&2) #end if ## output file #if str( $sam_options.sam_options_selector ) == "no" or (str( $sam_options.sam_opt ) == "false" and str($sam_options.reorder) == ''): - | samtools sort --no-PG -@\${GALAXY_SLOTS:-2} -T "\${TMPDIR:-.}" -O bam -o '$output' + ## Convert SAM output to sorted BAM + ## using the two pipe stages has the following effect + ## - mapping and sorting run in parallel, during this time sort produces + ## presorted temporary files but does not produce output (hence + ## view does not run) + ## - once mapping is finished sort will start to merge the temporary + ## files (which should be fast also on a single thread) gives the + ## sorted output to view which only compresses the files (now + ## using full parallelism again) + | samtools sort -l 0 -T "\${TMPDIR:-.}" -O bam | samtools view --no-PG -O bam -@ \${GALAXY_SLOTS:-1} -o '$output' #else if $sam_options.reorder: - | samtools view --no-PG -bS - -o '$output' + | samtools view --no-PG -b -o '$output' #else: > '$output' #end if - -## rename unaligned sequence files -#if ($library.type == "paired" or $library.type == "paired_collection") 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" or $library.type == "paired_collection") 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 - ]]> - - - + - - - - - - - - - - - - @@ -523,12 +449,12 @@ - - - + + + - - + @@ -538,89 +464,47 @@ - - library['unaligned_file'] is True + + library['type'] == 'single' and library['unaligned_file'] is True - - - - - - - - - - - - - - - - library['aligned_file'] is True + + library['type'] != 'single' and library['unaligned_file'] is True + + + + + + + + + + + + + + library['type'] == 'single' and library['aligned_file'] is True - - - - - - - - - - - - - - - - ( library['type'] == "paired" or library['type'] == "paired_collection" ) and library['aligned_file'] is True - - - - - - - - - - - - - - - - ( library['type'] == "paired" or library['type'] == "paired_collection" ) and library['unaligned_file'] is True - - - - - - - - - - - - - - - + + library['type'] != 'single' and library['aligned_file'] is True + + + + + + + + + + + + + @@ -652,65 +536,157 @@ + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - + + + + + + + + + + + + + + + + + + + + @@ -721,92 +697,191 @@ - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + diff -r 6b4916819621 -r c3d19e7ee879 test-data/bowtie2-ref.1.bt2 Binary file test-data/bowtie2-ref.1.bt2 has changed diff -r 6b4916819621 -r c3d19e7ee879 test-data/bowtie2-ref.2.bt2 Binary file test-data/bowtie2-ref.2.bt2 has changed diff -r 6b4916819621 -r c3d19e7ee879 test-data/bowtie2-ref.3.bt2 Binary file test-data/bowtie2-ref.3.bt2 has changed diff -r 6b4916819621 -r c3d19e7ee879 test-data/bowtie2-ref.4.bt2 Binary file test-data/bowtie2-ref.4.bt2 has changed diff -r 6b4916819621 -r c3d19e7ee879 test-data/bowtie2-ref.rev.1.bt2 Binary file test-data/bowtie2-ref.rev.1.bt2 has changed diff -r 6b4916819621 -r c3d19e7ee879 test-data/bowtie2-ref.rev.2.bt2 Binary file test-data/bowtie2-ref.rev.2.bt2 has changed diff -r 6b4916819621 -r c3d19e7ee879 test-data/bowtie2-single.bam Binary file test-data/bowtie2-single.bam has changed diff -r 6b4916819621 -r c3d19e7ee879 test-data/bowtie2-test1.bam Binary file test-data/bowtie2-test1.bam has changed diff -r 6b4916819621 -r c3d19e7ee879 test-data/bowtie2-test2.bam Binary file test-data/bowtie2-test2.bam has changed diff -r 6b4916819621 -r c3d19e7ee879 test-data/bowtie2-test_fasta_in.bam Binary file test-data/bowtie2-test_fasta_in.bam has changed diff -r 6b4916819621 -r c3d19e7ee879 test-data/bowtie2-test_fasta_in_bam_qname_input_sorted.bam Binary file test-data/bowtie2-test_fasta_in_bam_qname_input_sorted.bam has changed diff -r 6b4916819621 -r c3d19e7ee879 test-data/bowtie2-test_il.bam Binary file test-data/bowtie2-test_il.bam has changed diff -r 6b4916819621 -r c3d19e7ee879 test-data/bowtie2_indices.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/bowtie2_indices.loc Wed Sep 24 13:36:57 2025 +0000 @@ -0,0 +1,38 @@ +# bowtie2_indices.loc.sample +# This is a *.loc.sample file distributed with Galaxy that enables tools +# to use a directory of indexed data files. This one is for Bowtie2 and Tophat2. +# See the wiki: http://wiki.galaxyproject.org/Admin/NGS%20Local%20Setup +# First create these data files and save them in your own data directory structure. +# Then, create a bowtie_indices.loc file to use those indexes with tools. +# Copy this file, save it with the same name (minus the .sample), +# follow the format examples, and store the result in this directory. +# The file should include an one line entry for each index set. +# The path points to the "basename" for the set, not a specific file. +# It has four text columns seperated by TABS. +# +# +# +# So, for example, if you had hg18 indexes stored in: +# +# /depot/data2/galaxy/hg19/bowtie2/ +# +# containing hg19 genome and hg19.*.bt2 files, such as: +# -rw-rw-r-- 1 james james 914M Feb 10 18:56 hg19canon.fa +# -rw-rw-r-- 1 james james 914M Feb 10 18:56 hg19canon.1.bt2 +# -rw-rw-r-- 1 james james 683M Feb 10 18:56 hg19canon.2.bt2 +# -rw-rw-r-- 1 james james 3.3K Feb 10 16:54 hg19canon.3.bt2 +# -rw-rw-r-- 1 james james 683M Feb 10 16:54 hg19canon.4.bt2 +# -rw-rw-r-- 1 james james 914M Feb 10 20:45 hg19canon.rev.1.bt2 +# -rw-rw-r-- 1 james james 683M Feb 10 20:45 hg19canon.rev.2.bt2 +# +# then the bowtie2_indices.loc entry could look like this: +# +#hg19 hg19 Human (hg19) /depot/data2/galaxy/hg19/bowtie2/hg19canon +# +#More examples: +# +#mm10 mm10 Mouse (mm10) /depot/data2/galaxy/mm10/bowtie2/mm10 +#dm3 dm3 D. melanogaster (dm3) /depot/data2/galaxy/mm10/bowtie2/dm3 +# +# +test_value test_dbkey test_name ${__HERE__}/bowtie2-ref \ No newline at end of file diff -r 6b4916819621 -r c3d19e7ee879 tool_data_table_conf.xml.test --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tool_data_table_conf.xml.test Wed Sep 24 13:36:57 2025 +0000 @@ -0,0 +1,8 @@ + + + + + value, dbkey, name, path + +
+