annotate annotateBed.xml @ 1:82aac94b06c3 draft

Uploaded
author iuc
date Thu, 08 Jan 2015 14:25:51 -0500
parents b8348686a0b9
children 607c0576c6ab
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
1 <tool id="bedtools_annotatebed" name="AnnotateBed" version="@WRAPPER_VERSION@.0">
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
2 <description></description>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
3 <macros>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
4 <import>macros.xml</import>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
5 </macros>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
6 <expand macro="requirements" />
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
7 <expand macro="stdio" />
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
8 <command>
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
9 <![CDATA[
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
10 bedtools annotate
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
11 -i "${inputA}"
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
12 #if $names.names_select == 'yes':
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
13 -files
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
14 #for $bed in $names.beds:
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
15 "${bed.input}"
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
16 #end for
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
17
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
18 -names
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
19 #for $bed in $names.beds:
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
20 "${bed.inputName}"
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
21 #end for
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
22 #else:
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
23 #set files = '" "'.join( [ str( $file ) for $file in $names.beds ] )
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
24 -files "${files}"
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
25 #end if
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
26 $strand
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
27 $counts
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
28 $both
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
29 > "${output}"
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
30 ]]>
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
31 </command>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
32 <inputs>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
33 <param format="bed,vcf,gff,gff3" name="inputA" type="data" label="BED/VCF/GFF file" />
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
34 <!-- Additional files, if the user needs more -->
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
35 <conditional name="names">
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
36 <param name="names_select" type="select" label="Specify names for each file">
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
37 <option value="no" selected="True">No</option>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
38 <option value="yes">Yes</option>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
39 </param>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
40 <when value="yes">
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
41 <repeat name="beds" title="Add BED files and names" >
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
42 <param name="input" format="bed" type="data" label="BED file" />
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
43 <param name="inputName" type="text" label="Name of the file" />
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
44 </repeat>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
45 </when>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
46 <when value="no">
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
47 <param name="beds" format="bed" multiple="True" type="data" label="BED file" />
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
48 </when>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
49 </conditional>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
50 <expand macro="strand2" />
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
51 <param name="counts" type="boolean" checked="false" truevalue="-counts" falsevalue=""
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
52 label="Report the count of features followed by the % coverage for each annotation file"
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
53 help="Default is to report solely the fraction of -i covered by each file." />
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
54 <param name="both" type="boolean" checked="false" truevalue="-both" falsevalue=""
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
55 label="Report the count of features followed by the % coverage for each annotation file"
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
56 help="Default is to report solely the fraction of the input file covered by each file." />
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
57 </inputs>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
58 <outputs>
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
59 <data format="bed" name="output" />
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
60 </outputs>
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
61 <tests>
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
62 <test>
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
63 <param name="inputA" value="annotateBed1.bed" ftype="bed" />
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
64 <param name="names_select" value="no" />
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
65 <param name="beds" value="annotateBed2.bed,annotateBed3.bed,annotateBed4.bed" />
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
66 <output name="output" file="annotateBed_result.bed" ftype="bed" />
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
67 </test>
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
68 </tests>
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
69 <help>
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
70 <![CDATA[
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
71 **What it does**
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
72
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
73 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.
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
74
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
75 @REFERENCES@
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
76 ]]>
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
77 </help>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
78 <expand macro="citations" />
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
79 </tool>