# HG changeset patch
# User iuc
# Date 1632845227 0
# Node ID cf4d627c5cc0f0b9d02a90c16c100f553ca299cb
# Parent 0149126ce6af1683c78b2d620264a282b30a2e9a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
diff -r 0149126ce6af -r cf4d627c5cc0 macros.xml
--- a/macros.xml Thu Sep 05 19:33:28 2019 -0400
+++ b/macros.xml Tue Sep 28 16:07:07 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,6 +20,7 @@
$prim_key_cond.tag
$prim_key_cond.sec_key_select
#end if
+ $minhash
-O bam
-T "\${TMPDIR:-.}"
'${input1}'
@@ -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 0149126ce6af -r cf4d627c5cc0 test-data/1_sort.bam
Binary file test-data/1_sort.bam has changed
diff -r 0149126ce6af -r cf4d627c5cc0 test-data/1_sort_read_names.bam
Binary file test-data/1_sort_read_names.bam has changed
diff -r 0149126ce6af -r cf4d627c5cc0 test-data/minhash.expected.bam
Binary file test-data/minhash.expected.bam has changed
diff -r 0149126ce6af -r cf4d627c5cc0 test-data/name.sort.expected.bam
Binary file test-data/name.sort.expected.bam has changed
diff -r 0149126ce6af -r cf4d627c5cc0 test-data/pos.sort.expected.bam
Binary file test-data/pos.sort.expected.bam has changed
diff -r 0149126ce6af -r cf4d627c5cc0 test-data/tag.as.sort.expected.bam
Binary file test-data/tag.as.sort.expected.bam has changed
diff -r 0149126ce6af -r cf4d627c5cc0 test-data/tag.fi.sort.expected.bam
Binary file test-data/tag.fi.sort.expected.bam has changed
diff -r 0149126ce6af -r cf4d627c5cc0 test-data/tag.rg.n.sort.expected.bam
Binary file test-data/tag.rg.n.sort.expected.bam has changed
diff -r 0149126ce6af -r cf4d627c5cc0 test-data/tag.rg.sort.expected.bam
Binary file test-data/tag.rg.sort.expected.bam has changed