annotate samtools_bedcov.xml @ 2:21964f813454 draft

planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/samtools/samtools_bedcov commit de7140295cce07e1bc1697e51dab4271c8d7a8a6
author devteam
date Fri, 18 Dec 2015 19:43:23 -0500
parents 4f7acd7af617
children e371922c38e8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
4f7acd7af617 planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 0
diff changeset
1 <tool id="samtools_bedcov" name="BedCov" version="2.0">
4f7acd7af617 planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 0
diff changeset
2 <description>calculate read depth for a set of genomic intervals</description>
4f7acd7af617 planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 0
diff changeset
3 <macros>
4f7acd7af617 planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 0
diff changeset
4 <import>macros.xml</import>
4f7acd7af617 planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 0
diff changeset
5 </macros>
4f7acd7af617 planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 0
diff changeset
6 <expand macro="requirements"></expand>
4f7acd7af617 planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 0
diff changeset
7 <expand macro="stdio"></expand>
4f7acd7af617 planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 0
diff changeset
8 <expand macro="version_command"></expand>
0
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
9 <command><![CDATA[
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
10 for bamfile in
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
11 #for dataset in $input_bams:
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
12 "${dataset}"
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
13 #end for
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
14 ; do
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
15 if [ ! -f \$bamfile.bai ] ; then
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
16 ln -s \$bamfile && samtools index `basename \$bamfile` ;
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
17 else
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
18 ln -s \$bamfile && ln -s \$bamfile.bai ;
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
19 fi ;
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
20 done ;
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
21 samtools bedcov "${input_bed}"
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
22 #for dataset in $input_bams:
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
23 `basename "${dataset}"`
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
24 #end for
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
25 > "${output}"
1
4f7acd7af617 planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 0
diff changeset
26 ]]>
4f7acd7af617 planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 0
diff changeset
27 </command>
0
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
1
4f7acd7af617 planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 0
diff changeset
50 Calculates read depth for regions listed in a BED dataset using ``samtools bedcov`` command::
0
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
51
1
4f7acd7af617 planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 0
diff changeset
52 samtools bedcov [INPUT BED] [INPUT BAM1] ... [INPUT BAMn] > [OUTPUT]
0
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
53
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
54 </help>
1
4f7acd7af617 planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 0
diff changeset
55 <expand macro="citations"></expand>
0
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
56 </tool>
6ffa7e68dc1f Uploaded initial tool definition.
devteam
parents:
diff changeset
57