annotate annotateBed.xml @ 6:75d323631dce draft

Uploaded
author bernhardlutz
date Wed, 18 Jun 2014 12:40:28 -0400
parents
children d0df760f1d32
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
1 <tool id="bedtools_annotatebed" name="AnnotateBed" version="0.2.0">
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
2 <description></description>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
3 <macros>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
4 <import>macros.xml</import>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
5 </macros>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
6 <expand macro="requirements" />
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
7 <expand macro="stdio" />
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
8 <command>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
9 bedtools annotate
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
10 -i $inputA
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
11 -files
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
12 #for $bed in $names.beds:
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
13 $bed.input
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
14 #end for
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
15
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
16 #if names.names_select == 'yes':
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
17 -names
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
18 #for $bed in $names.beds:
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
19 $bed.inputName
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
20 #end for
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
21 #end if
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
22 $strand
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
23 $counts
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
24 $both
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
25 &gt; $output
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
26 </command>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
27 <inputs>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
28 <param format="bed,vcf,gff,gff3" name="inputA" type="data" label="BED/VCF/GFF file"/>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
29 <!-- Additional files, if the user needs more -->
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
30 <conditional name="names">
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
31 <param name="names_select" type="select" label="Specify names for each file">
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
32 <option value="no" selected="True">No</option>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
33 <option value="yes">Yes</option>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
34 </param>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
35 <when value="yes">
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
36 <repeat name="beds" title="Add BED files and names" >
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
37 <param name="input" format="bed" type="data" label="BED file" />
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
38 <param name="inputName" type="text" label="Name of the file" />
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
39 </repeat>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
40 </when>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
41 <when value="no">
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
42 <repeat name="beds" title="Add BED files" >
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
43 <param name="input" format="bed" type="data" label="BED file" />
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
44 </repeat>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
45 </when>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
46 </conditional>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
47
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
48 <expand macro="strand2" />
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
49 <param name="counts" type="boolean" checked="false" truevalue="-counts" falsevalue="" label="Report the count of features followed by the % coverage for each annotation file. Default is to report solely the fraction of -i covered by each file." />
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
50 <param name="both" type="boolean" checked="false" truevalue="-both" falsevalue="" label="Report the count of features followed by the % coverage for each annotation file. Default is to report solely the fraction of the input file covered by each file." />
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
51 </inputs>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
52 </inputs>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
53
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
54 <outputs>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
55 <data format="bed" name="output" label="" />
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
56 </outputs>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
57 <help>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
58
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
59 **What it does**
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
60
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
61 bedtools annotate, well, annotates one BED/VCF/GFF file with the coverage and number of overlaps observed from multiple other BED/VCF/GFF files. In this way, it allows one to ask to what degree one feature coincides with multiple other feature types with a single command.
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
62
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
63 @REFERENCES@
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
64
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
65 </help>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
66 </tool>