# HG changeset patch # User iuc # Date 1632845185 0 # Node ID 88d7ed7fd423edda0aa42fb01d59a6fbd5743977 # Parent bfeeedad5354919265d0fb7148f5274b0f98283d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_slice_bam commit 0f75269223c0821c6c82acf98fde947d0f816f2b" diff -r bfeeedad5354 -r 88d7ed7fd423 macros.xml --- a/macros.xml Thu Sep 05 19:33:00 2019 -0400 +++ b/macros.xml Tue Sep 28 16:06:25 2021 +0000 @@ -5,10 +5,16 @@ - 1.9 - #set $flags = sum(map(int, str($filter).split(','))) + 1.13 + 20.05 + + + + + + @HELP@ + + + + + + + + + + + + + + + + + + + + + + @HELP@ + + + + + + + + + + + + + + + + + + - + - - - - - - - - - - - - - + + + + + + + + + + + + + - + BAM by genomic regions macros.xml @@ -13,12 +13,12 @@ ln -s '${input_bam.metadata.bam_index}' temp_input.bam.bai && #if str($slice_method.slice_method_selector) == "bed": - samtools view -@ \${GALAXY_SLOTS:-1} -b -L "${input_interval}" -o unsorted_output.bam temp_input.bam && + samtools view -@ \${GALAXY_SLOTS:-1} -b -L "${input_interval}" -o unsorted_output.bam temp_input.bam && #elif str($slice_method.slice_method_selector) == "chr": - samtools view -@ \${GALAXY_SLOTS:-1} -b -o unsorted_output.bam temp_input.bam + samtools view -@ \${GALAXY_SLOTS:-1} -b -o unsorted_output.bam temp_input.bam ${ ' '.join( map( lambda x:'"%s"' % ( x ), str( $slice_method.refs ).split(",") ) ) } && #elif str($slice_method.slice_method_selector) == "man": - samtools view -@ \${GALAXY_SLOTS:-1} -b -o unsorted_output.bam temp_input.bam + samtools view -@ \${GALAXY_SLOTS:-1} -b -o unsorted_output.bam temp_input.bam #for $region in $slice_method.regions: "${region.chrom}:${region.start}-${region.end}" @@ -83,13 +83,13 @@ - + - + @@ -97,7 +97,7 @@ - + UCSC Main**. -This tool is based on ``samtools view`` command. +This tool is based on ``samtools view`` command. @no-chrom-options@ ]]> diff -r bfeeedad5354 -r 88d7ed7fd423 test-data/bam-slice-test1.bam Binary file test-data/bam-slice-test1.bam has changed diff -r bfeeedad5354 -r 88d7ed7fd423 test-data/bam-slice-test2.bam Binary file test-data/bam-slice-test2.bam has changed diff -r bfeeedad5354 -r 88d7ed7fd423 test-data/bam-slice-test3.bam Binary file test-data/bam-slice-test3.bam has changed