Mercurial > repos > devteam > samtools_sort
annotate samtools_sort.xml @ 2:f56bdb93ae58 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
author | iuc |
---|---|
date | Wed, 19 Sep 2018 09:53:49 -0400 |
parents | cab3f8d35989 |
children | e613c1ad4c4c |
rev | line source |
---|---|
2
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
1 <tool id="samtools_sort" name="Samtools sort" version="2.0.2"> |
1
cab3f8d35989
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents:
0
diff
changeset
|
2 <description>order of storing aligned sequences</description> |
0 | 3 <macros> |
1
cab3f8d35989
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents:
0
diff
changeset
|
4 <import>macros.xml</import> |
cab3f8d35989
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents:
0
diff
changeset
|
5 </macros> |
cab3f8d35989
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents:
0
diff
changeset
|
6 <expand macro="requirements"/> |
cab3f8d35989
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents:
0
diff
changeset
|
7 <expand macro="stdio"/> |
cab3f8d35989
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents:
0
diff
changeset
|
8 <expand macro="version_command"/> |
cab3f8d35989
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents:
0
diff
changeset
|
9 <command><![CDATA[ |
2
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
10 @ADDTHREADS@ |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
11 @ADDMEMORY@ |
1
cab3f8d35989
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents:
0
diff
changeset
|
12 samtools sort |
2
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
13 -@ \$addthreads |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
14 -m \$addmemory"M" |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
15 ###if str(compression): |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
16 ## -l '$compression' |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
17 ###end if |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
18 $prim_key_cond.prim_key_select |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
19 #if $prim_key_cond.prim_key_select == '-t': |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
20 $prim_key_cond.tag |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
21 $prim_key_cond.sec_key_select |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
22 #end if |
1
cab3f8d35989
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents:
0
diff
changeset
|
23 -O bam |
2
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
24 -T sorttmp |
1
cab3f8d35989
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents:
0
diff
changeset
|
25 '${input1}' |
2
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
26 > '${output1}' |
1
cab3f8d35989
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents:
0
diff
changeset
|
27 ]]></command> |
0 | 28 <inputs> |
2
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
29 <param name="input1" type="data" format="sam,bam,cram" label="BAM File" /> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
30 <conditional name="prim_key_cond"> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
31 <param name="prim_key_select" type="select" label="Primary sort key"> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
32 <option value="">coordinate</option> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
33 <option value="-n">name (-n)</option> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
34 <option value="-t">tag (-t)</option> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
35 </param> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
36 <when value=""/> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
37 <when value="-n"/> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
38 <when value="-t"> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
39 <param name="tag" type="text" optional="false" argument="-t" label="Alignment tag"/> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
40 <param name="sec_key_select" type="select" label="Secondary sort key"> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
41 <option value="">coordinate</option> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
42 <option value="-n">name (-n)</option> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
43 </param> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
44 </when> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
45 </conditional> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
46 <!--<param name="compression" type="integer" argument="-l" optional="True" min="0" max="9" label="compression level" help="0 (uncompressed) to 9 (best)"/>--> |
0 | 47 </inputs> |
48 <outputs> | |
2
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
49 <data name="output1" format="bam"> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
50 <change_format> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
51 <when input="prim_key_cond.prim_key_select" value="" format="bam" /> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
52 <when input="prim_key_cond.prim_key_select" value="-n" format="qname_sorted.bam" /> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
53 <when input="prim_key_cond.prim_key_select" value="-t" format="unsorted.bam" /> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
54 </change_format> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
55 </data> |
0 | 56 </outputs> |
57 <tests> | |
2
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
58 <!-- tests from https://github.com/samtools/samtools/blob/9ce8c64493f7ea3fa69bc5c1ac980b1a8e3dcf1f/test/test.pl#L2464 --> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
59 <!-- # Pos sort --> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
60 <test> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
61 <param name="input1" value="test_input_1_a.bam" ftype="bam" /> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
62 <output name="output1" file="pos.sort.expected.bam" ftype="bam"/> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
63 </test> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
64 <!-- test_cmd($opts, out=>"sort/pos.sort.expected.sam", cmd=>"$$opts{bin}/samtools sort${threads} $$opts{path}/dat/test_input_1_a.bam -O SAM -o -"); --> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
65 |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
66 <!-- # Name sort --> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
67 <test> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
68 <param name="input1" value="test_input_1_a.bam" ftype="bam" /> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
69 <conditional name="prim_key_cond"> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
70 <param name="prim_key_select" value="-n"/> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
71 </conditional> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
72 <output name="output1" file="name.sort.expected.bam" ftype="qname_sorted.bam"/> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
73 </test> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
74 <!-- test_cmd($opts, out=>"sort/name.sort.expected.sam", cmd=>"$$opts{bin}/samtools sort${threads} -n $$opts{path}/dat/test_input_1_a.bam -O SAM -o -");--> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
75 |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
76 <!-- # Tag sort (RG) (considers output and name sorted) --> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
77 <test> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
78 <param name="input1" value="test_input_1_a.bam" ftype="bam" /> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
79 <conditional name="prim_key_cond"> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
80 <param name="prim_key_select" value="-t"/> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
81 <param name="tag" value="RG"/> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
82 </conditional> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
83 <output name="output1" file="tag.rg.sort.expected.bam" ftype="unsorted.bam"/> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
84 </test> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
85 <!--test_cmd($opts, out=>"sort/tag.rg.sort.expected.sam", cmd=>"$$opts{bin}/samtools sort${threads} -t RG $$opts{path}/dat/test_input_1_a.bam -O SAM -o -");--> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
86 |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
87 <!-- # Tag sort (RG); secondary by name --> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
88 <test> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
89 <param name="input1" value="test_input_1_a.bam" ftype="bam" /> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
90 <conditional name="prim_key_cond"> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
91 <param name="prim_key_select" value="-t"/> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
92 <param name="tag" value="RG"/> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
93 <param name="sec_key_select" value="-n"/> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
94 </conditional> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
95 <output name="output1" file="tag.rg.n.sort.expected.bam" ftype="unsorted.bam"/> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
96 </test> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
97 <!--test_cmd($opts, out=>"sort/tag.rg.n.sort.expected.sam", cmd=>"$$opts{bin}/samtools sort${threads} -n -t RG $$opts{path}/dat/test_input_1_a.bam -O SAM -o -");--> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
98 |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
99 <!-- # Tag sort (AS) --> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
100 <test> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
101 <param name="input1" value="test_input_1_a.bam" ftype="bam" /> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
102 <conditional name="prim_key_cond"> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
103 <param name="prim_key_select" value="-t"/> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
104 <param name="tag" value="AS"/> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
105 <param name="sec_key_select" value=""/> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
106 </conditional> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
107 <output name="output1" file="tag.as.sort.expected.bam" ftype="unsorted.bam"/> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
108 </test> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
109 <!--test_cmd($opts, out=>"sort/tag.as.sort.expected.sam", cmd=>"$$opts{bin}/samtools sort${threads} -t AS $$opts{path}/dat/test_input_1_d.sam -O SAM -o -");--> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
110 |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
111 <!-- # Tag sort (FI) --> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
112 <test> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
113 <param name="input1" value="test_input_1_a.bam" ftype="bam" /> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
114 <conditional name="prim_key_cond"> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
115 <param name="prim_key_select" value="-t"/> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
116 <param name="tag" value="FI"/> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
117 </conditional> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
118 <output name="output1" file="tag.fi.sort.expected.bam" ftype="unsorted.bam"/> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
119 </test> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
120 <!--test_cmd($opts, out=>"sort/tag.fi.sort.expected.sam", cmd=>"$$opts{bin}/samtools sort${threads} -t FI $$opts{path}/dat/test_input_1_d.sam -O SAM -o -");--> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
121 |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
122 <!-- tests from old version --> |
0 | 123 <test> |
124 <param name="input1" value="1.bam" ftype="bam" /> | |
125 <output name="output1" file="1_sort.bam" ftype="bam" sort="True"/> | |
126 </test> | |
127 <test> | |
128 <param name="input1" value="1.bam" ftype="bam" /> | |
2
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
129 <conditional name="prim_key_cond"> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
130 <param name="prim_key_select" value="-n"/> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
131 </conditional> |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
132 <output name="output1" file="1_sort_read_names.bam" ftype="qname_sorted.bam"/> |
0 | 133 </test> |
134 </tests> | |
135 <help> | |
136 **What it does** | |
137 | |
2
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
138 Sort alignments by leftmost coordinates, or by read name when -n is used. |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
139 An appropriate @HD-SO sort order header tag will be added or an existing |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
140 one updated if necessary. |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
141 |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
142 **Ordering Rules** |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
143 |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
144 The following rules are used for ordering records. |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
145 |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
146 If option -t is in use, records are first sorted by the value of the given |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
147 alignment tag, and then by position or name (if using -n). For example, “-t RG” |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
148 will make read group the primary sort key. The rules for ordering by tag are: |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
149 |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
150 - Records that do not have the tag are sorted before ones that do. |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
151 - If the types of the tags are different, they will be sorted so that single |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
152 character tags (type A) come before array tags (type B), then string tags |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
153 (types H and Z), then numeric tags (types f and i). |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
154 - Numeric tags (types f and i) are compared by value. Note that comparisons of |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
155 floating-point values are subject to issues of rounding and precision. |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
156 - String tags (types H and Z) are compared based on the binary contents of the |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
157 tag using the C strcmp(3) function. |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
158 - Character tags (type A) are compared by binary character value. |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
159 - No attempt is made to compare tags of other types — notably type B array values will not be compared. |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
160 |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
161 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). |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
162 |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
163 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. |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
164 |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
165 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. |
f56bdb93ae58
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 9f6dd28ae31897068c9f8b5d842750d5d7cd600c
iuc
parents:
1
diff
changeset
|
166 |
0 | 167 </help> |
1
cab3f8d35989
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_sort commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents:
0
diff
changeset
|
168 <expand macro="citations"/> |
0 | 169 </tool> |