Mercurial > repos > iuc > bedtools
annotate windowBed.xml @ 35:b28e0cfa7ba1 draft
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit fe3f54a0d3edb83fcf6752e3b1524c582b4febd5"
author | iuc |
---|---|
date | Fri, 06 Sep 2019 14:29:59 -0400 |
parents | dde39ba9c031 |
children | 3e38c9b3214f |
rev | line source |
---|---|
34
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
1 <tool id="bedtools_windowbed" name="bedtools WindowBed" version="@TOOL_VERSION@"> |
4
607c0576c6ab
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents:
1
diff
changeset
|
2 <description>find overlapping intervals within a window around an interval</description> |
0 | 3 <macros> |
4 <import>macros.xml</import> | |
5 </macros> | |
6 <expand macro="requirements" /> | |
7 <expand macro="stdio" /> | |
34
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
8 <command><![CDATA[ |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
9 bedtools window |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
10 #if $inputA.is_of_type('bam'): |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
11 -abam '$inputA' |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
12 #else: |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
13 -a '$inputA' |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
14 #end if |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
15 -b '$inputB' |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
16 $bed |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
17 $strandB |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
18 #if $addition.addition_select == 'window': |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
19 -w $addition.w |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
20 #elif $addition.addition_select == 'lr': |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
21 -l $addition.l |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
22 -r $addition.r |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
23 #end if |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
24 $original |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
25 $number |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
26 $nooverlaps |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
27 $header |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
28 > '$output' |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
29 ]]></command> |
0 | 30 <inputs> |
34
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
31 <param name="inputA" type="data" format="bam,@STD_BEDTOOLS_INPUTS@" label="@STD_BEDTOOLS_INPUT_LABEL@/BAM file"/> |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
32 <param name="inputB" argument="-b" type="data" format="@STD_BEDTOOLS_INPUTS@" label="@STD_BEDTOOLS_INPUT_LABEL@ file"/> |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
33 <param argument="-bed" type="boolean" truevalue="-bed" falsevalue="" checked="false" |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
34 label="When using BAM input, write output as BED. The default is to write output in BAM when using a BAM file" /> |
0 | 35 <conditional name="addition"> |
36 <param name="addition_select" type="select" label="Choose what you want to do"> | |
1 | 37 <option value="window">Add Base pairs for **both** upstream and downstream of each entry in A when searching for overlaps in B</option> |
0 | 38 <option value="lr">Add Base pairs **separately** for upstream and downstream of each entry in A when searching for overlaps in B</option> |
39 </param> | |
1 | 40 <when value="window"> |
34
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
41 <param argument="-w" type="integer" value="1000" label="Base pairs to add upstream and downstream" /> |
0 | 42 </when> |
43 <when value="lr"> | |
34
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
44 <param argument="-l" type="integer" value="1000" |
1 | 45 label="Base pairs added upstream (left) of each entry in A when searching for overlaps in B" |
34
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
46 help="Allows one to create assymetrical “windows”. Default is 1000bp." /> |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
47 <param argument="-r" type="integer" value="1000" |
1 | 48 label="Base pairs added downstream (right) of each entry in A when searching for overlaps in B" |
34
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
49 help="Allows one to create assymetrical “windows”. Default is 1000bp." /> |
0 | 50 </when> |
51 </conditional> | |
52 <param name="strandB" type="select" label="Calculation based on strandedness?"> | |
34
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
53 <option value="" selected="true">Report any hit in B</option> |
0 | 54 <option value="-sm">Only report hits in B that overlap A on the **same** strand</option> |
55 <option value="-Sm">Only report hits in B that overlap A on the **opposite** strand</option> | |
56 </param> | |
34
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
57 <param name="original" argument="-u" type="boolean" truevalue="-u" falsevalue="" checked="false" |
1 | 58 label="Write original A entry once if any overlaps found in B" |
34
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
59 help="In other words, just report the fact at least one overlap was found in B" /> |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
60 <param name="number" argument="-c" type="boolean" truevalue="-c" falsevalue="" checked="false" |
1 | 61 label="For each entry in A, report the number of hits in B" |
34
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
62 help="Reports 0 for A entries that have no overlap with B" /> |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
63 <param name="nooverlaps" argument="-v" type="boolean" truevalue="-v" falsevalue="" checked="false" |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
64 label="Only report those entries in A that have no overlaps with B" /> |
1 | 65 <expand macro="print_header" /> |
0 | 66 </inputs> |
67 <outputs> | |
34
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
68 <data name="output" format_source="inputA" metadata_source="inputA" /> |
0 | 69 </outputs> |
1 | 70 <tests> |
71 <test> | |
72 <param name="inputA" value="windowBedA.bed" ftype="bed" /> | |
73 <param name="inputB" value="windowBedB.bed" ftype="bed" /> | |
74 <output name="output" file="windowBed_result1.bed" ftype="bed" /> | |
75 </test> | |
76 <test> | |
77 <param name="inputA" value="windowBedA.bed" ftype="bed" /> | |
78 <param name="inputB" value="windowBedB.bed" ftype="bed" /> | |
79 <param name="addition_select" value="window" /> | |
80 <param name="w" value="5000" /> | |
81 <output name="output" file="windowBed_result2.bed" ftype="bed" /> | |
82 </test> | |
83 <test> | |
84 <param name="inputA" value="windowBedA.bed" ftype="bed" /> | |
85 <param name="inputB" value="windowBedB.bed" ftype="bed" /> | |
86 <param name="addition_select" value="lr" /> | |
87 <param name="l" value="200" /> | |
88 <param name="r" value="20000" /> | |
89 <output name="output" file="windowBed_result2.bed" ftype="bed" /> | |
90 </test> | |
91 </tests> | |
34
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
92 <help><![CDATA[ |
0 | 93 **What it does** |
94 | |
95 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. | |
96 | |
97 .. image:: $PATH_TO_IMAGES/window-glyph.png | |
98 | |
99 @REFERENCES@ | |
34
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
100 ]]></help> |
0 | 101 <expand macro="citations" /> |
102 </tool> |