upstream-extended/iuc/tools/bedtools/annotateBed.xml
1<tool id="bedtools_annotatebed" name="bedtools AnnotateBed" version="@TOOL_VERSION@" profile="@PROFILE@">
2 <description>annotate coverage of features from multiple files</description>
3 <macros>
4 <import>macros.xml</import>
5 </macros>
6 <expand macro="bio_tools" />
7 <expand macro="requirements" />
8 <expand macro="stdio" />
9 <command><![CDATA[
10bedtools annotate
11-i '${inputA}'
12#if $names.names_select == 'yes':
13 -files
14 #for $bed in $names.beds:
15 '${bed.input}'
16 #end for
17
18 -names
19 #for $bed in $names.beds:
20 '${bed.inputName}'
21 #end for
22#else:
23 -files
24 #for $bed in $names.beds:
25 '$bed'
26 #end for
27 -names
28 #for $bed in $names.beds:
29 '${bed.display_name}'
30 #end for
31#end if
32$strand
33$counts
34$both
35> '${output}'
36 ]]></command>
37 <inputs>
38 <param name="inputA" argument="-i" type="data" format="@STD_BEDTOOLS_INPUTS@" label="@STD_BEDTOOLS_INPUT_LABEL@ file" />
39 <conditional name="names">
40 <param name="names_select" type="select" label="Specify names for each file">
41 <option value="no" selected="true">No</option>
42 <option value="yes">Yes</option>
43 </param>
44 <when value="yes">
45 <repeat name="beds" title="Add BED files and names" >
46 <param name="input" type="data" format="@STD_BEDTOOLS_INPUTS@" label="@STD_BEDTOOLS_INPUT_LABEL@ file" />
47 <param name="inputName" type="text" label="Name of the file" />
48 </repeat>
49 </when>
50 <when value="no">
51 <param name="beds" type="data" format="@STD_BEDTOOLS_INPUTS@" multiple="true" label="@STD_BEDTOOLS_INPUT_LABEL@ files" />
52 </when>
53 </conditional>
54 <expand macro="strand2" />
55 <param argument="-counts" type="boolean" truevalue="-counts" falsevalue="" checked="false"
56 label="Report the count of features followed by the % coverage for each annotation file"
57 help="Default is to report solely the fraction of -i covered by each file" />
58 <param argument="-both" type="boolean" truevalue="-both" falsevalue="" checked="false"
59 label="Report the count of features followed by the % coverage for each annotation file"
60 help="Default is to report solely the fraction of the input file covered by each file" />
61 </inputs>
62 <outputs>
63 <data name="output" format="bed" />
64 </outputs>
65 <tests>
66 <test>
67 <param name="inputA" value="annotateBed1.bed" ftype="bed" />
68 <param name="names|names_select" value="no" />
69 <param name="names|beds" value="annotateBed2.bed,annotateBed3.bed,annotateBed4.bed"/>
70 <output name="output" file="annotateBed_result.bed" ftype="bed" />
71 </test>
72 </tests>
73 <help><![CDATA[
74**What it does**
75
76bedtools annotate, well, annotates one @STD_BEDTOOLS_INPUT_LABEL@ file with the coverage and number of overlaps observed from multiple other @STD_BEDTOOLS_INPUT_LABEL@ files. In this way, it allows one to ask to what degree one feature coincides with multiple other feature types with a single command.
77
78@REFERENCES@
79 ]]></help>
80 <expand macro="citations" />
81</tool>