Mercurial > repos > devteam > samtools_idxstats
annotate samtools_idxstats.xml @ 3:811fc2d75ad4 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_idxstats commit ca0d1d44099fd21e0f8214102f4d8a2fd2d054d6
author | iuc |
---|---|
date | Mon, 29 Jul 2019 08:48:46 -0400 |
parents | 04d5581db1f5 |
children | 7a6034296ae9 |
rev | line source |
---|---|
2
04d5581db1f5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_idxstats commit 70b38ebad0d0936f102e3e7cb70f1060347ea8c4
iuc
parents:
1
diff
changeset
|
1 <tool id="samtools_idxstats" name="Samtools idxstats" version="2.0.2"> |
1
88b8c2916784
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_idxstats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents:
0
diff
changeset
|
2 <description>reports stats of the BAM index file</description> |
0 | 3 <macros> |
1
88b8c2916784
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_idxstats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents:
0
diff
changeset
|
4 <import>macros.xml</import> |
0 | 5 </macros> |
1
88b8c2916784
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_idxstats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents:
0
diff
changeset
|
6 <expand macro="requirements"/> |
88b8c2916784
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_idxstats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents:
0
diff
changeset
|
7 <expand macro="stdio"/> |
88b8c2916784
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_idxstats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents:
0
diff
changeset
|
8 <expand macro="version_command"/> |
0 | 9 <command><![CDATA[ |
3
811fc2d75ad4
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_idxstats commit ca0d1d44099fd21e0f8214102f4d8a2fd2d054d6
iuc
parents:
2
diff
changeset
|
10 @ADDTHREADS@ |
811fc2d75ad4
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_idxstats commit ca0d1d44099fd21e0f8214102f4d8a2fd2d054d6
iuc
parents:
2
diff
changeset
|
11 @PREPARE_IDX@ |
811fc2d75ad4
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_idxstats commit ca0d1d44099fd21e0f8214102f4d8a2fd2d054d6
iuc
parents:
2
diff
changeset
|
12 samtools idxstats -@ \$addthreads infile > '${output}' |
1
88b8c2916784
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_idxstats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents:
0
diff
changeset
|
13 ]]></command> |
0 | 14 <inputs> |
2
04d5581db1f5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_idxstats commit 70b38ebad0d0936f102e3e7cb70f1060347ea8c4
iuc
parents:
1
diff
changeset
|
15 <param name="input" type="data" format="bam,cram" label="BAM file" /> |
0 | 16 </inputs> |
17 <outputs> | |
18 <data format="tabular" name="output" label="${tool.name} on ${on_string}" /> | |
19 </outputs> | |
20 <tests> | |
2
04d5581db1f5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_idxstats commit 70b38ebad0d0936f102e3e7cb70f1060347ea8c4
iuc
parents:
1
diff
changeset
|
21 <!-- test from https://github.com/samtools/samtools/blob/9ce8c64493f7ea3fa69bc5c1ac980b1a8e3dcf1f/test/test.pl#L2556 --> |
0 | 22 <test> |
2
04d5581db1f5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_idxstats commit 70b38ebad0d0936f102e3e7cb70f1060347ea8c4
iuc
parents:
1
diff
changeset
|
23 <param name="input" value="test_input_1_a.bam" ftype="bam" /> |
04d5581db1f5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_idxstats commit 70b38ebad0d0936f102e3e7cb70f1060347ea8c4
iuc
parents:
1
diff
changeset
|
24 <output name="output" file="test_input_1_a.bam.expected" compare="diff" ftype="tabular" /> |
04d5581db1f5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_idxstats commit 70b38ebad0d0936f102e3e7cb70f1060347ea8c4
iuc
parents:
1
diff
changeset
|
25 </test> |
04d5581db1f5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_idxstats commit 70b38ebad0d0936f102e3e7cb70f1060347ea8c4
iuc
parents:
1
diff
changeset
|
26 <!-- test from original tool --> |
04d5581db1f5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_idxstats commit 70b38ebad0d0936f102e3e7cb70f1060347ea8c4
iuc
parents:
1
diff
changeset
|
27 <test> |
0 | 28 <param name="input" value="phiX.bam" ftype="bam" /> |
29 <output name="output" file="samtools_idxstats_out.tabular" compare="diff" ftype="tabular" /> | |
30 </test> | |
31 </tests> | |
1
88b8c2916784
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_idxstats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents:
0
diff
changeset
|
32 <help><![CDATA[ |
0 | 33 **What it does** |
34 | |
35 Runs the ``samtools idxstats`` command. It retrieves and prints stats in the index file. | |
36 | |
37 Input is a sorted and indexed BAM file, the output is tabular with | |
38 four columns (one row per reference sequence plus a final line for | |
39 unmapped reads):: | |
40 | |
41 Column Description | |
42 ------ ----------------------------- | |
43 1 Reference sequence identifier | |
44 2 Reference sequence length | |
45 3 Number of mapped reads | |
46 4 Number of placed but unmapped reads | |
47 (typically unmapped partners of mapped reads) | |
48 | |
49 ------ | |
50 | |
51 **Example** output from a *de novo* assembly:: | |
52 | |
53 contig_1 170035 98397 0 | |
54 contig_2 403835 199564 0 | |
55 contig_3 553102 288189 0 | |
56 ... ... ... ... | |
57 contig_603 653 50 0 | |
58 contig_604 214 6 0 | |
59 \* 0 0 50320 | |
60 | |
61 In this example there were 604 contigs, each with one line in the output table, | |
62 plus the final row (labelled with an asterisk) representing 50320 unmapped reads. | |
63 In this BAM file, the final column was otherwise zero. | |
64 | |
65 ------ | |
66 | |
67 Peter J.A. Cock (2013), `Galaxy wrapper <https://github.com/peterjc/pico_galaxy/tree/master/tools/samtools_idxstats>`_ for the samtools idxstats command | |
1
88b8c2916784
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_idxstats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents:
0
diff
changeset
|
68 ]]></help> |
88b8c2916784
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_idxstats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents:
0
diff
changeset
|
69 <expand macro="citations"/> |
0 | 70 </tool> |