# HG changeset patch
# User iuc
# Date 1632845812 0
# Node ID 6c2c1836728b5b31f84e403592d5a2a1968381ca
# Parent e613c1ad4c4c87a9590807a33ba688ac0c08d2da
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
diff -r e613c1ad4c4c -r 6c2c1836728b macros.xml
--- a/macros.xml Sat Apr 06 06:37:47 2019 -0400
+++ b/macros.xml Tue Sep 28 16:16:52 2021 +0000
@@ -5,10 +5,16 @@
- 1.9
- #set $flags = sum(map(int, str($filter).split(',')))
+ 1.13
+ 20.05
+
+
+
+
+
+ @HELP@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ @HELP@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+order of storing aligned sequencesmacros.xml
@@ -20,8 +20,9 @@
$prim_key_cond.tag
$prim_key_cond.sec_key_select
#end if
+ $minhash
-O bam
- -T sorttmp
+ -T "\${TMPDIR:-.}"
'${input1}'
> '${output1}'
]]>
@@ -43,6 +44,7 @@
+
@@ -56,35 +58,32 @@
-
+
-
+
-
-
+
-
+
-
-
-
+
+
-
+
-
-
-
+
+
@@ -92,11 +91,10 @@
-
+
-
-
-
+
+
@@ -104,40 +102,44 @@
-
+
-
-
-
+
+
-
+
-
-
-
+
+
-
+
-
+
+
+
+
+
+
+
**What it does**
-Sort alignments by leftmost coordinates, or by read name when -n is used.
-An appropriate @HD-SO sort order header tag will be added or an existing
-one updated if necessary.
+Sort alignments by leftmost coordinates, or by read name when -n is used.
+An appropriate @HD-SO sort order header tag will be added or an existing
+one updated if necessary.
**Ordering Rules**
@@ -156,13 +158,15 @@
- String tags (types H and Z) are compared based on the binary contents of the
tag using the C strcmp(3) function.
- Character tags (type A) are compared by binary character value.
-- No attempt is made to compare tags of other types — notably type B array values will not be compared.
+- No attempt is made to compare tags of other types — notably type B array values will not be compared.
When the -n option is present, records are sorted by name. Names are compared so as to give a “natural” ordering — i.e. sections consisting of digits are compared numerically while all other sections are compared based on their binary representation. This means “a1” will come before “b1” and “a9” will come before “a10”. Records with the same name will be ordered according to the values of the READ1 and READ2 flags (see flags).
When the -n option is not present, reads are sorted by reference (according to the order of the @SQ header records), then by position in the reference, and then by the REVERSE flag.
-This has now been removed. The previous out.prefix argument (and -f option, if any) should be changed to an appropriate combination of -T PREFIX and -o FILE. The previous -o option should be removed, as output defaults to standard output.
+This has now been removed. The previous out.prefix argument (and -f option, if any) should be changed to an appropriate combination of -T PREFIX and -o FILE. The previous -o option should be removed, as output defaults to standard output.
+
+When the -M (minash collation) option is present, then samtools sort groups unmapped reads with similar sequence together. This can sometimes significantly reduce the file size.
diff -r e613c1ad4c4c -r 6c2c1836728b test-data/1_sort.bam
Binary file test-data/1_sort.bam has changed
diff -r e613c1ad4c4c -r 6c2c1836728b test-data/1_sort_read_names.bam
Binary file test-data/1_sort_read_names.bam has changed
diff -r e613c1ad4c4c -r 6c2c1836728b test-data/minhash.expected.bam
Binary file test-data/minhash.expected.bam has changed
diff -r e613c1ad4c4c -r 6c2c1836728b test-data/name.sort.expected.bam
Binary file test-data/name.sort.expected.bam has changed
diff -r e613c1ad4c4c -r 6c2c1836728b test-data/pos.sort.expected.bam
Binary file test-data/pos.sort.expected.bam has changed
diff -r e613c1ad4c4c -r 6c2c1836728b test-data/tag.as.sort.expected.bam
Binary file test-data/tag.as.sort.expected.bam has changed
diff -r e613c1ad4c4c -r 6c2c1836728b test-data/tag.fi.sort.expected.bam
Binary file test-data/tag.fi.sort.expected.bam has changed
diff -r e613c1ad4c4c -r 6c2c1836728b test-data/tag.rg.n.sort.expected.bam
Binary file test-data/tag.rg.n.sort.expected.bam has changed
diff -r e613c1ad4c4c -r 6c2c1836728b test-data/tag.rg.sort.expected.bam
Binary file test-data/tag.rg.sort.expected.bam has changed