annotate samtools_bedcov.xml @ 0:c04bee391baa draft

Uploaded
author devteam
date Wed, 18 Mar 2015 16:43:50 -0400
parents
children 8c3472790020
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
c04bee391baa Uploaded
devteam
parents:
diff changeset
1 <tool id="samtools_bedcov" name="Calculate read depth" version="1.0.1">
c04bee391baa Uploaded
devteam
parents:
diff changeset
2 <description>on BAM files</description>
c04bee391baa Uploaded
devteam
parents:
diff changeset
3 <macros>
c04bee391baa Uploaded
devteam
parents:
diff changeset
4 <import>macros.xml</import>
c04bee391baa Uploaded
devteam
parents:
diff changeset
5 </macros>
c04bee391baa Uploaded
devteam
parents:
diff changeset
6 <expand macro="requirements"></expand>
c04bee391baa Uploaded
devteam
parents:
diff changeset
7 <expand macro="version_command"></expand>
c04bee391baa Uploaded
devteam
parents:
diff changeset
8 <expand macro="stdio"></expand>
c04bee391baa Uploaded
devteam
parents:
diff changeset
9 <command><![CDATA[
c04bee391baa Uploaded
devteam
parents:
diff changeset
10 for bamfile in
c04bee391baa Uploaded
devteam
parents:
diff changeset
11 #for dataset in $input_bams:
c04bee391baa Uploaded
devteam
parents:
diff changeset
12 "${dataset}"
c04bee391baa Uploaded
devteam
parents:
diff changeset
13 #end for
c04bee391baa Uploaded
devteam
parents:
diff changeset
14 ; do
c04bee391baa Uploaded
devteam
parents:
diff changeset
15 if [ ! -f \$bamfile.bai ] ; then
c04bee391baa Uploaded
devteam
parents:
diff changeset
16 ln -s \$bamfile && samtools index `basename \$bamfile` ;
c04bee391baa Uploaded
devteam
parents:
diff changeset
17 else
c04bee391baa Uploaded
devteam
parents:
diff changeset
18 ln -s \$bamfile && ln -s \$bamfile.bai ;
c04bee391baa Uploaded
devteam
parents:
diff changeset
19 fi ;
c04bee391baa Uploaded
devteam
parents:
diff changeset
20 done ;
c04bee391baa Uploaded
devteam
parents:
diff changeset
21 samtools bedcov "${input_bed}"
c04bee391baa Uploaded
devteam
parents:
diff changeset
22 #for dataset in $input_bams:
c04bee391baa Uploaded
devteam
parents:
diff changeset
23 `basename "${dataset}"`
c04bee391baa Uploaded
devteam
parents:
diff changeset
24 #end for
c04bee391baa Uploaded
devteam
parents:
diff changeset
25 > "${output}"
c04bee391baa Uploaded
devteam
parents:
diff changeset
26 ]]>
c04bee391baa Uploaded
devteam
parents:
diff changeset
27 </command>
c04bee391baa Uploaded
devteam
parents:
diff changeset
28 <inputs>
c04bee391baa Uploaded
devteam
parents:
diff changeset
29 <param name="input_bed" type="data" format="bed" label="BED file" />
c04bee391baa Uploaded
devteam
parents:
diff changeset
30 <param name="input_bams" type="data" format="bam" label="BAM file" multiple="true" />
c04bee391baa Uploaded
devteam
parents:
diff changeset
31 </inputs>
c04bee391baa Uploaded
devteam
parents:
diff changeset
32 <outputs>
c04bee391baa Uploaded
devteam
parents:
diff changeset
33 <data format="tabular" name="output" label="${tool.name} on ${on_string}" />
c04bee391baa Uploaded
devteam
parents:
diff changeset
34 </outputs>
c04bee391baa Uploaded
devteam
parents:
diff changeset
35 <tests>
c04bee391baa Uploaded
devteam
parents:
diff changeset
36 <test>
c04bee391baa Uploaded
devteam
parents:
diff changeset
37 <param name="input_bed" value="eboVir3.1.bed" ftype="bed" />
c04bee391baa Uploaded
devteam
parents:
diff changeset
38 <param name="input_bams" value="eboVir3.bam" ftype="bam" />
c04bee391baa Uploaded
devteam
parents:
diff changeset
39 <output name="output" file="samtools_bedcov_out1.tab" />
c04bee391baa Uploaded
devteam
parents:
diff changeset
40 </test>
c04bee391baa Uploaded
devteam
parents:
diff changeset
41 <test>
c04bee391baa Uploaded
devteam
parents:
diff changeset
42 <param name="input_bed" value="eboVir3.1.bed" ftype="bed" />
c04bee391baa Uploaded
devteam
parents:
diff changeset
43 <param name="input_bams" value="eboVir3.bam,eboVir3.2.bam" ftype="bam" />
c04bee391baa Uploaded
devteam
parents:
diff changeset
44 <output name="output" file="samtools_bedcov_out2.tab" />
c04bee391baa Uploaded
devteam
parents:
diff changeset
45 </test>
c04bee391baa Uploaded
devteam
parents:
diff changeset
46 </tests>
c04bee391baa Uploaded
devteam
parents:
diff changeset
47 <help>
c04bee391baa Uploaded
devteam
parents:
diff changeset
48 **What it does**
c04bee391baa Uploaded
devteam
parents:
diff changeset
49
c04bee391baa Uploaded
devteam
parents:
diff changeset
50 This tool runs the ``samtools bedcov`` command in the SAMtools toolkit.
c04bee391baa Uploaded
devteam
parents:
diff changeset
51
c04bee391baa Uploaded
devteam
parents:
diff changeset
52 Show read depth per BED region.
c04bee391baa Uploaded
devteam
parents:
diff changeset
53
c04bee391baa Uploaded
devteam
parents:
diff changeset
54 </help>
c04bee391baa Uploaded
devteam
parents:
diff changeset
55 <expand macro="citations"></expand>
c04bee391baa Uploaded
devteam
parents:
diff changeset
56 </tool>
c04bee391baa Uploaded
devteam
parents:
diff changeset
57