annotate samtools_idxstats.xml @ 1:88b8c2916784 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_idxstats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
author iuc
date Tue, 09 May 2017 11:19:02 -0400
parents 87398ae795c7
children 04d5581db1f5
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
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
1 <tool id="samtools_idxstats" name="IdxStats" version="2.0.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
87398ae795c7 Uploaded
devteam
parents:
diff changeset
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
87398ae795c7 Uploaded
devteam
parents:
diff changeset
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
87398ae795c7 Uploaded
devteam
parents:
diff changeset
9 <command><![CDATA[
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
10 ln -f -s '${input.metadata.bam_index}' '${input}.bai' &&
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
11
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
12 samtools idxstats '${input}' > '${output}'
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
87398ae795c7 Uploaded
devteam
parents:
diff changeset
14 <inputs>
87398ae795c7 Uploaded
devteam
parents:
diff changeset
15 <param name="input" type="data" format="bam" label="BAM file" />
87398ae795c7 Uploaded
devteam
parents:
diff changeset
16 </inputs>
87398ae795c7 Uploaded
devteam
parents:
diff changeset
17 <outputs>
87398ae795c7 Uploaded
devteam
parents:
diff changeset
18 <data format="tabular" name="output" label="${tool.name} on ${on_string}" />
87398ae795c7 Uploaded
devteam
parents:
diff changeset
19 </outputs>
87398ae795c7 Uploaded
devteam
parents:
diff changeset
20 <tests>
87398ae795c7 Uploaded
devteam
parents:
diff changeset
21 <test>
87398ae795c7 Uploaded
devteam
parents:
diff changeset
22 <param name="input" value="phiX.bam" ftype="bam" />
87398ae795c7 Uploaded
devteam
parents:
diff changeset
23 <output name="output" file="samtools_idxstats_out.tabular" compare="diff" ftype="tabular" />
87398ae795c7 Uploaded
devteam
parents:
diff changeset
24 </test>
87398ae795c7 Uploaded
devteam
parents:
diff changeset
25 </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
26 <help><![CDATA[
0
87398ae795c7 Uploaded
devteam
parents:
diff changeset
27 **What it does**
87398ae795c7 Uploaded
devteam
parents:
diff changeset
28
87398ae795c7 Uploaded
devteam
parents:
diff changeset
29 Runs the ``samtools idxstats`` command. It retrieves and prints stats in the index file.
87398ae795c7 Uploaded
devteam
parents:
diff changeset
30
87398ae795c7 Uploaded
devteam
parents:
diff changeset
31 Input is a sorted and indexed BAM file, the output is tabular with
87398ae795c7 Uploaded
devteam
parents:
diff changeset
32 four columns (one row per reference sequence plus a final line for
87398ae795c7 Uploaded
devteam
parents:
diff changeset
33 unmapped reads)::
87398ae795c7 Uploaded
devteam
parents:
diff changeset
34
87398ae795c7 Uploaded
devteam
parents:
diff changeset
35 Column Description
87398ae795c7 Uploaded
devteam
parents:
diff changeset
36 ------ -----------------------------
87398ae795c7 Uploaded
devteam
parents:
diff changeset
37 1 Reference sequence identifier
87398ae795c7 Uploaded
devteam
parents:
diff changeset
38 2 Reference sequence length
87398ae795c7 Uploaded
devteam
parents:
diff changeset
39 3 Number of mapped reads
87398ae795c7 Uploaded
devteam
parents:
diff changeset
40 4 Number of placed but unmapped reads
87398ae795c7 Uploaded
devteam
parents:
diff changeset
41 (typically unmapped partners of mapped reads)
87398ae795c7 Uploaded
devteam
parents:
diff changeset
42
87398ae795c7 Uploaded
devteam
parents:
diff changeset
43 ------
87398ae795c7 Uploaded
devteam
parents:
diff changeset
44
87398ae795c7 Uploaded
devteam
parents:
diff changeset
45 **Example** output from a *de novo* assembly::
87398ae795c7 Uploaded
devteam
parents:
diff changeset
46
87398ae795c7 Uploaded
devteam
parents:
diff changeset
47 contig_1 170035 98397 0
87398ae795c7 Uploaded
devteam
parents:
diff changeset
48 contig_2 403835 199564 0
87398ae795c7 Uploaded
devteam
parents:
diff changeset
49 contig_3 553102 288189 0
87398ae795c7 Uploaded
devteam
parents:
diff changeset
50 ... ... ... ...
87398ae795c7 Uploaded
devteam
parents:
diff changeset
51 contig_603 653 50 0
87398ae795c7 Uploaded
devteam
parents:
diff changeset
52 contig_604 214 6 0
87398ae795c7 Uploaded
devteam
parents:
diff changeset
53 \* 0 0 50320
87398ae795c7 Uploaded
devteam
parents:
diff changeset
54
87398ae795c7 Uploaded
devteam
parents:
diff changeset
55 In this example there were 604 contigs, each with one line in the output table,
87398ae795c7 Uploaded
devteam
parents:
diff changeset
56 plus the final row (labelled with an asterisk) representing 50320 unmapped reads.
87398ae795c7 Uploaded
devteam
parents:
diff changeset
57 In this BAM file, the final column was otherwise zero.
87398ae795c7 Uploaded
devteam
parents:
diff changeset
58
87398ae795c7 Uploaded
devteam
parents:
diff changeset
59 ------
87398ae795c7 Uploaded
devteam
parents:
diff changeset
60
87398ae795c7 Uploaded
devteam
parents:
diff changeset
61 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
62 ]]></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
63 <expand macro="citations"/>
0
87398ae795c7 Uploaded
devteam
parents:
diff changeset
64 </tool>