# HG changeset patch # User iuc # Date 1632845790 0 # Node ID 344fc91e1bfdbddbe4ab03e0b0266ba44888b7d4 # Parent a4a10c7924d117b81332ba191cf7ac65b99ba7d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_slice_bam commit 0f75269223c0821c6c82acf98fde947d0f816f2b" diff -r a4a10c7924d1 -r 344fc91e1bfd macros.xml --- a/macros.xml Tue May 09 11:17:27 2017 -0400 +++ b/macros.xml Tue Sep 28 16:16:30 2021 +0000 @@ -1,11 +1,182 @@ - samtools + samtools - 1.3.1 + 1.13 + 20.05 + + + + + + + + + @HELP@ + + + + + + + + + + + + + + + + + + + + + + @HELP@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ^[^\s'\":]+(:\d+(-\d+){0,1}){0,1}$ + + + + + + + + + @@ -49,21 +220,4 @@ - ------ - -.. class:: warningmark - -**No options available? How to re-detect metadata** - -If you see a "No options available" within the "**Select references (chromosomes and contigs) you would like to restrict bam to**" drop down, you need to re-detect metadata for the dataset you are trying to process. To do this follow these steps: - -1. Click on the **pencil** icon adjacent to the dataset in the history -2. A new menu will appear in the center pane of the interface -3. Click **Datatype** tab -4. Set **New Type** to **BAM** -5. Click **Save** - -The medatada will be re-detected and you will be able to see the list of reference sequences in the "**Select references (chromosomes and contigs) you would like to restrict bam to**" drop-down. - diff -r a4a10c7924d1 -r 344fc91e1bfd samtools_slice_bam.xml --- a/samtools_slice_bam.xml Tue May 09 11:17:27 2017 -0400 +++ b/samtools_slice_bam.xml Tue Sep 28 16:16:30 2021 +0000 @@ -1,4 +1,4 @@ - + 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}" @@ -28,7 +28,7 @@ samtools sort -O bam - -T sorted + -T "\${TMPDIR:-.}" -@ \${GALAXY_SLOTS:-1} -o '${output_bam}' unsorted_output.bam @@ -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 a4a10c7924d1 -r 344fc91e1bfd test-data/bam-slice-test1.bam Binary file test-data/bam-slice-test1.bam has changed diff -r a4a10c7924d1 -r 344fc91e1bfd test-data/bam-slice-test2.bam Binary file test-data/bam-slice-test2.bam has changed diff -r a4a10c7924d1 -r 344fc91e1bfd test-data/bam-slice-test3.bam Binary file test-data/bam-slice-test3.bam has changed