annotate windowBed.xml @ 0:b8348686a0b9 draft

Imported from capsule None
author iuc
date Tue, 04 Nov 2014 01:45:04 -0500
parents
children 82aac94b06c3
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_windowbed" name="WindowBed" 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>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
9 bedtools window
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
10 #if $inputA.ext == "bam":
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
11 -abam $inputA
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
12 #else:
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
13 -a $inputA
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
14 #end if
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
15 -b $inputB
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
16 $ubam
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
17 $bed
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
18 $strandB
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
19 #if $addition.addition_select == 'b':
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
20 -w $addition.b
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
21 #elif $addition.addition_select == 'lr':
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
22 -l $addition.l
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
23 -r $addition.r
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
24 #end if
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
25 $original
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
26 $number
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
27 $nooverlaps
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
28 $header
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
29 &gt; $output
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
30 </command>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
31 <inputs>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
32 <param format="bed,bam,vcf,gff,gff3" name="inputA" type="data" label="BED/VCF/GFF/BAM file"/>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
33 <param format="bed,gff,vcf,gff3" name="inputB" type="data" label="BED/VCF/GFF file"/>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
34 <param name="ubam" type="boolean" checked="false" truevalue="-ubam" falsevalue="" label="Write uncompressed BAM output" />
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
35 <param name="bed" type="boolean" checked="false" truevalue="bed" falsevalue="" label="When using BAM input, write output as BED. The default is to write output in BAM when using a bam file" />
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
36 <conditional name="addition">
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
37 <param name="addition_select" type="select" label="Choose what you want to do">
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
38 <option value="huhn" selected="True">Do not change added base pairs</option>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
39 <option value="b">Add Base pairs for **both** upstream and downstream of each entry in A when searching for overlaps in B</option>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
40 <option value="lr">Add Base pairs **separately** for upstream and downstream of each entry in A when searching for overlaps in B</option>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
41 </param>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
42 <when value="b">
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
43 <param name="b" label="Give Value" type="integer" value="1000" />
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
44 </when>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
45 <when value="lr">
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
46 <param name="l" label="Base pairs added upstream (left of) of each entry in A when searching for overlaps in B. Allows one to create assymetrical “windows”. Default is 1000bp" type="integer" value="1000" />
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
47 <param name="r" label="Base pairs added downstream (right of) of each entry in A when searching for overlaps in B. Allows one to create assymetrical “windows”. Default is 1000bp" type="integer" value="1000" />
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 <param name="strandB" type="select" label="Calculation based on strandedness?">
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
51 <option value="" selected="True">Report any hit in B</option>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
52 <option value="-sm">Only report hits in B that overlap A on the **same** strand</option>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
53 <option value="-Sm">Only report hits in B that overlap A on the **opposite** strand</option>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
54 </param>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
55 <param name="original" type="boolean" checked="false" truevalue="-u" falsevalue="" label="Write original A entry once if any overlaps found in B. In other words, just report the fact at least one overlap was found in B" />
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
56 <param name="number" type="boolean" checked="false" truevalue="-c" falsevalue="" label="For each entry in A, report the number of hits in B while restricting to -f. Reports 0 for A entries that have no overlap with B" />
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
57 <param name="nooverlaps" type="boolean" checked="false" truevalue="-v" falsevalue="" label="Only report those entries in A that have no overlaps with B" />
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
58 <param name="header" type="boolean" checked="false" truevalue="-header" falsevalue="" label="Print the header from the A file prior to results" />
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
59
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
60 </inputs>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
61 <outputs>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
62 <data format_source="inputA" name="output" metadata_source="inputA" label=""/>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
63 </outputs>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
64 <help>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
65
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
66 **What it does**
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
67
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
68 Similar to bedtools intersect, window searches for overlapping features in A and B. However, window adds a specified number (1000, by default) of base pairs upstream and downstream of each feature in A. In effect, this allows features in B that are “near” features in A to be detected.
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
69
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
70 .. image:: $PATH_TO_IMAGES/window-glyph.png
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
71
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
72 @REFERENCES@
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
73 </help>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
74 <expand macro="citations" />
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
75 </tool>