annotate samtools_bedcov.xml @ 0:6ffa7e68dc1f draft

Uploaded initial tool definition.
author devteam
date Mon, 27 Oct 2014 12:42:42 -0400
parents
children 4f7acd7af617
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
1 <tool id="samtools_bedcov" name="Calculate read depth" version="1.0.0">
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
2 <description>on BAM files</description>
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
3 <requirements>
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
4 <requirement type="package" version="1.1">samtools</requirement>
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
5 </requirements>
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
6 <version_command>samtools --version | head -n 1 | awk '{ print $2 }'</version_command>
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
7 <command><![CDATA[
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
8 for bamfile in
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
9 #for dataset in $input_bams:
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
10 "${dataset}"
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
11 #end for
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
12 ; do
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
13 if [ ! -f \$bamfile.bai ] ; then
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
14 ln -s \$bamfile && samtools index `basename \$bamfile` ;
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
15 else
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
16 ln -s \$bamfile && ln -s \$bamfile.bai ;
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
17 fi ;
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
18 done ;
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
19 samtools bedcov "${input_bed}"
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
20 #for dataset in $input_bams:
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
21 `basename "${dataset}"`
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
22 #end for
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
23 > "${output}"
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
24 ]]></command>
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
25 <stdio>
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
26 <exit_code range="1:" level="fatal" description="Error" />
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
27 </stdio>
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
28 <inputs>
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
29 <param name="input_bed" type="data" format="bed" label="BED file" />
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
30 <param name="input_bams" type="data" format="bam" label="BAM file" multiple="true" />
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
31 </inputs>
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
32 <outputs>
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
33 <data format="tabular" name="output" label="${tool.name} on ${on_string}" />
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
34 </outputs>
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
35 <tests>
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
36 <test>
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
37 <param name="input_bed" value="eboVir3.1.bed" ftype="bed" />
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
38 <param name="input_bams" value="eboVir3.bam" ftype="bam" />
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
39 <output name="output" file="samtools_bedcov_out1.tab" />
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
40 </test>
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
41 <test>
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
42 <param name="input_bed" value="eboVir3.1.bed" ftype="bed" />
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
43 <param name="input_bams" value="eboVir3.bam,eboVir3.2.bam" ftype="bam" />
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
44 <output name="output" file="samtools_bedcov_out2.tab" />
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
45 </test>
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
46 </tests>
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
47 <help>
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
48 **What it does**
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
49
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
50 This tool runs the ``samtools bedcov`` command in the SAMtools toolkit.
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
51
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
52 Show read depth per BED region.
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
53
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
54 **Citation**
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
55
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
56 For the underlying tool, please cite `Li H, Handsaker B, Wysoker A, Fennell T, Ruan J, Homer N, Marth G, Abecasis G, Durbin R; 1000 Genome Project Data Processing Subgroup. The Sequence Alignment/Map format and SAMtools. Bioinformatics. 2009 Aug 15;25(16):2078-9. &lt;http://www.ncbi.nlm.nih.gov/pubmed/19505943&gt;`_
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
57
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
58
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
59 If you use this tool in Galaxy, please cite Blankenberg D, et al. *In preparation.*
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
60 </help>
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
61 </tool>
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
62