annotate sam_to_bam.xml @ 11:1e69848b596f draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/sam_to_bam commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
author iuc
date Tue, 28 Sep 2021 16:11:24 +0000
parents cf1ffd88f895
children 9bd1568619cd
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
11
1e69848b596f "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/sam_to_bam commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 10
diff changeset
1 <tool id="sam_to_bam" name="SAM-to-BAM" version="2.1.2" profile="@PROFILE@">
8
f7a0d41036c7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/sam_to_bam commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 7
diff changeset
2 <description>convert SAM to BAM</description>
f7a0d41036c7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/sam_to_bam commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 7
diff changeset
3
f7a0d41036c7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/sam_to_bam commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 7
diff changeset
4 <macros>
f7a0d41036c7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/sam_to_bam commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 7
diff changeset
5 <import>macros.xml</import>
f7a0d41036c7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/sam_to_bam commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 7
diff changeset
6 </macros>
f7a0d41036c7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/sam_to_bam commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 7
diff changeset
7 <expand macro="requirements"/>
f7a0d41036c7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/sam_to_bam commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 7
diff changeset
8 <expand macro="stdio"/>
f7a0d41036c7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/sam_to_bam commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 7
diff changeset
9 <expand macro="version_command"/>
f7a0d41036c7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/sam_to_bam commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 7
diff changeset
10
f7a0d41036c7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/sam_to_bam commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 7
diff changeset
11 <command><![CDATA[
11
1e69848b596f "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/sam_to_bam commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 10
diff changeset
12 @ADDTHREADS@
1e69848b596f "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/sam_to_bam commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 10
diff changeset
13 @ADDMEMORY@
1e69848b596f "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/sam_to_bam commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 10
diff changeset
14 @PREPARE_FASTA_IDX@
8
f7a0d41036c7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/sam_to_bam commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 7
diff changeset
15
f7a0d41036c7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/sam_to_bam commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 7
diff changeset
16 samtools view
f7a0d41036c7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/sam_to_bam commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 7
diff changeset
17 -b
11
1e69848b596f "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/sam_to_bam commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 10
diff changeset
18 -@ \$addthreads
1e69848b596f "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/sam_to_bam commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 10
diff changeset
19 -t '$reffai'
1e69848b596f "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/sam_to_bam commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 10
diff changeset
20 '$input' |
8
f7a0d41036c7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/sam_to_bam commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 7
diff changeset
21
f7a0d41036c7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/sam_to_bam commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 7
diff changeset
22 samtools sort
f7a0d41036c7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/sam_to_bam commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 7
diff changeset
23 -O bam
11
1e69848b596f "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/sam_to_bam commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 10
diff changeset
24 -@ \$addthreads -m \$addmemory"M"
8
f7a0d41036c7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/sam_to_bam commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 7
diff changeset
25 -o '$output1'
10
cf1ffd88f895 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/sam_to_bam commit 851f81495c875ac09d936537ffd2b32e6af2c8c5"
iuc
parents: 8
diff changeset
26 -T "\${TMPDIR:-.}"
8
f7a0d41036c7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/sam_to_bam commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 7
diff changeset
27 ]]></command>
f7a0d41036c7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/sam_to_bam commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 7
diff changeset
28
6
d04d9f1c6791 Uploaded
devteam
parents: 5
diff changeset
29 <inputs>
11
1e69848b596f "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/sam_to_bam commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 10
diff changeset
30 <param name="input" type="data" format="sam" label="SAM file to convert"/>
1e69848b596f "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/sam_to_bam commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 10
diff changeset
31 <expand macro="mandatory_reference" argument="-t"/>
6
d04d9f1c6791 Uploaded
devteam
parents: 5
diff changeset
32 </inputs>
d04d9f1c6791 Uploaded
devteam
parents: 5
diff changeset
33 <outputs>
8
f7a0d41036c7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/sam_to_bam commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 7
diff changeset
34 <data name="output1" format="bam" label="${tool.name} on ${on_string}: converted BAM">
6
d04d9f1c6791 Uploaded
devteam
parents: 5
diff changeset
35 <actions>
11
1e69848b596f "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/sam_to_bam commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 10
diff changeset
36 <conditional name="addref_cond.addref_select">
6
d04d9f1c6791 Uploaded
devteam
parents: 5
diff changeset
37 <when value="cached">
d04d9f1c6791 Uploaded
devteam
parents: 5
diff changeset
38 <action name="dbkey" type="metadata">
11
1e69848b596f "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/sam_to_bam commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 10
diff changeset
39 <option name="input" param_attribute="dbkey" type="from_param" />
6
d04d9f1c6791 Uploaded
devteam
parents: 5
diff changeset
40 </action>
d04d9f1c6791 Uploaded
devteam
parents: 5
diff changeset
41 </when>
d04d9f1c6791 Uploaded
devteam
parents: 5
diff changeset
42 <when value="history">
d04d9f1c6791 Uploaded
devteam
parents: 5
diff changeset
43 <action name="dbkey" type="metadata">
11
1e69848b596f "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/sam_to_bam commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 10
diff changeset
44 <option name="addref_cond.ref" param_attribute="dbkey" type="from_param" />
6
d04d9f1c6791 Uploaded
devteam
parents: 5
diff changeset
45 </action>
d04d9f1c6791 Uploaded
devteam
parents: 5
diff changeset
46 </when>
d04d9f1c6791 Uploaded
devteam
parents: 5
diff changeset
47 </conditional>
d04d9f1c6791 Uploaded
devteam
parents: 5
diff changeset
48 </actions>
d04d9f1c6791 Uploaded
devteam
parents: 5
diff changeset
49 </data>
d04d9f1c6791 Uploaded
devteam
parents: 5
diff changeset
50 </outputs>
d04d9f1c6791 Uploaded
devteam
parents: 5
diff changeset
51 <tests>
d04d9f1c6791 Uploaded
devteam
parents: 5
diff changeset
52 <test>
11
1e69848b596f "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/sam_to_bam commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 10
diff changeset
53 <param name="addref_select" value="history" />
1e69848b596f "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/sam_to_bam commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 10
diff changeset
54 <param name="ref" ftype="fasta" dbkey="equCab2" value="chr_m.fasta" />
1e69848b596f "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/sam_to_bam commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 10
diff changeset
55 <param name="input" ftype="sam" value="sam_to_bam_in1.sam" />
1e69848b596f "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/sam_to_bam commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 10
diff changeset
56 <output name="output1" ftype="bam" file="sam_to_bam_out1.bam" lines_diff="4"/>
8
f7a0d41036c7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/sam_to_bam commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 7
diff changeset
57 </test>
f7a0d41036c7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/sam_to_bam commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 7
diff changeset
58 <test>
11
1e69848b596f "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/sam_to_bam commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 10
diff changeset
59 <param name="addref_select" value="cached" />
1e69848b596f "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/sam_to_bam commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 10
diff changeset
60 <param name="ref" value="equCab2chrM" />
1e69848b596f "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/sam_to_bam commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 10
diff changeset
61 <param name="input" ftype="sam" dbkey="equCab2" value="sam_to_bam_in1.sam" />
1e69848b596f "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/sam_to_bam commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 10
diff changeset
62 <output name="output1" ftype="bam" file="sam_to_bam_out2.bam" lines_diff="4"/>
6
d04d9f1c6791 Uploaded
devteam
parents: 5
diff changeset
63 </test>
7
881e16ad05c6 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/samtools/sam_to_bam commit a1517c9d22029095120643bbe2c8fa53754dd2b7
devteam
parents: 6
diff changeset
64 <test>
11
1e69848b596f "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/sam_to_bam commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 10
diff changeset
65 <param name="addref_select" value="history" />
1e69848b596f "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/sam_to_bam commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 10
diff changeset
66 <param name="ref" ftype="fasta" dbkey="equCab2" value="chr_m.fasta" />
1e69848b596f "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/sam_to_bam commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 10
diff changeset
67 <param name="input" ftype="sam" value="sam_to_bam_noheader_in2.sam" />
1e69848b596f "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/sam_to_bam commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 10
diff changeset
68 <output name="output1" ftype="bam" file="sam_to_bam_out3.bam" lines_diff="4"/>
7
881e16ad05c6 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/samtools/sam_to_bam commit a1517c9d22029095120643bbe2c8fa53754dd2b7
devteam
parents: 6
diff changeset
69 </test>
6
d04d9f1c6791 Uploaded
devteam
parents: 5
diff changeset
70 </tests>
8
f7a0d41036c7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/sam_to_bam commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 7
diff changeset
71 <help><![CDATA[
0
30fdbaccb96b Uploaded tool tarball.
devteam
parents:
diff changeset
72 **What it does**
30fdbaccb96b Uploaded tool tarball.
devteam
parents:
diff changeset
73
8
f7a0d41036c7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/sam_to_bam commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 7
diff changeset
74 Converts SAM dataset into its binary, BAM, representation using the ``samtools view`` and ``sort`` commands.
f7a0d41036c7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/sam_to_bam commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 7
diff changeset
75 ]]></help>
f7a0d41036c7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/sam_to_bam commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 7
diff changeset
76 <expand macro="citations"/>
0
30fdbaccb96b Uploaded tool tarball.
devteam
parents:
diff changeset
77 </tool>