annotate Sambamba_sort.xml @ 1:6aa99e436263 draft default tip

planemo upload for repository https://github.com/biod/sambamba commit 99bb4ed496a9cce79ab0a7e613230cf63a44d9f9
author bgruening
date Mon, 10 Feb 2025 19:12:35 +0000
parents 87c1b543c4c4
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
1 <tool id="sambamba_sort" name="Sambamba sort" version="@TOOL_VERSION@+galaxy@SUFFIX_VERSION@" profile="23.2" license="MIT">
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
2 <description>Tool to sort BAM files</description>
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
3 <macros>
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
4 <import>macros.xml</import>
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
5 </macros>
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
6 <expand macro="requirements"/>
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
7 <command detect_errors="exit_code"><![CDATA[
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
8 sambamba sort
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
9 -o '${output}'
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
10 $sort_order
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
11 #if $filter
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
12 -F '${filter}'
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
13 #end if
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
14 -l $compression_level
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
15 '${input_bam}'
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
16 --tmpdir '\${TMPDIR:-.}'
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
17 --nthreads \${GALAXY_SLOTS:-4}
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
18 ]]></command>
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
19 <inputs>
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
20 <param name="input_bam" type="data" format="qname_input_sorted.bam,qname_sorted.bam,bam" label="Input BAM file"/>
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
21 <param name="sort_order" type="select" label="Select sorting mode">
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
22 <option value="" selected="true">Coordinate based</option>
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
23 <option value="-n">Sort by read name lexicographically</option>
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
24 </param>
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
25 <param argument="--compression-level" type="integer" value="5" min="0" max="9" label="Level of compression for merged BAM file, number from 0 to 9"/>
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
26 <param argument="--filter" type="text" optional="true" label="Keep only reads that satisfy this filter" help="You could select reads spanning a targeted region, by using the following filter: chr6:1000-5000"/>
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
27 </inputs>
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
28 <outputs>
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
29 <data name="output" format="bam">
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
30 <change_format>
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
31 <when input="sort_order" value="-n" format="qname_sorted.bam"/>
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
32 </change_format>
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
33 </data>
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
34 </outputs>
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
35 <tests>
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
36 <!--Test case of QNAME sorted BAM file-->
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
37 <test expect_num_outputs="1">
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
38 <param name="input_bam" value="1.bam" ftype="bam"/>
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
39 <param name="compression_level" value="5"/>
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
40 <param name="sort_order" value="-n"/>
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
41 <output name="output" file="1.qname.sorted.bam" ftype="qname_sorted.bam" lines_diff="4"/>
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
42 </test>
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
43 <!--Test case of Coordinate sorted BAM file-->
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
44 <test expect_num_outputs="1">
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
45 <param name="input_bam" value="1.bam" ftype="bam"/>
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
46 <param name="compression_level" value="5"/>
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
47 <param name="sort_order" value=""/>
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
48 <output name="output" file="1.coord.sorted.bam" ftype="bam" lines_diff="4"/>
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
49 </test>
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
50 </tests>
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
51 <help>
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
52 <![CDATA[
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
53
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
54 Sambamba sort performs sorting of BAM files.
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
55
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
56 BAM files can have either 'coordinate' or 'qname' sort order.
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
57 - 'coordinate' sorting order : Sorts Reads by (integer) reference ID, and for each reference sort corresponding reads by start coordinate.
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
58 - 'qname' sorting order : Reads are sorted lexicographically by their names.
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
59
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
60 ]]>
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
61 </help>
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
62 <expand macro="citations"/>
87c1b543c4c4 planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
63 </tool>