annotate closestBed.xml @ 44:589e7e57fd6d draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 03a91f6c42c75dc36d09505c2e6a2236178e4695
author iuc
date Mon, 20 Feb 2023 21:49:48 +0000
parents 07e8b80f278c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
39
3e38c9b3214f "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 1e25e8d0bd1ebeb2b94c4bbdff222e56defc1fc2"
iuc
parents: 34
diff changeset
1 <tool id="bedtools_closestbed" name="bedtools ClosestBed" version="@TOOL_VERSION@" profile="@PROFILE@">
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 the closest, potentially non-overlapping interval</description>
0
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>
41
7ab85ac5f64b "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 500a03281ea704abc7a16d9af63d67dbdcc5cd0b"
iuc
parents: 39
diff changeset
6 <expand macro="bio_tools" />
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
7 <expand macro="requirements" />
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
8 <expand macro="stdio" />
15
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
9 <command><![CDATA[
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
10 closestBed
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
11 $strand
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
12 $addition
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
13 #if $addition2.addition2_select:
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
14 -D $addition2.addition2_select
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
15 $addition2.iu
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
16 $addition2.id
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
17 #end if
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
18 $io
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
19 -mdb $mdb
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
20 -t $ties
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
21 #if str($k):
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
22 -k $k
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
23 #end if
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
24 -a '$inputA'
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
25 #if str($overlap_with.source) == "data_table":
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
26 -b '$overlap_with.table.fields.path'
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
27 #else
34
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
28 -b
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
29 #for $file in $overlap_with.inputB:
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
30 '$file'
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
31 #end for
15
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
32 #end if
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
33 > '$output'
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
34 ]]></command>
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
35 <inputs>
34
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
36 <param name="inputA" argument="-a" type="data" format="@STD_BEDTOOLS_INPUTS@" label="@STD_BEDTOOLS_INPUT_LABEL@ file"/>
15
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
37 <!-- overlap with file (inputB) -->
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
38 <conditional name="overlap_with">
26
95a3b2c25bd1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b75b9e79cf3186a22dc2e1e9d27c1a080b891b59
iuc
parents: 15
diff changeset
39 <param name="source" type="select" label="Overlap with: will you select a @STD_BEDTOOLS_INPUT_LABEL@ file from your history or use a built-in GFF file?" help="Built-in GFF files contain full annotation of a reference genome">
95a3b2c25bd1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b75b9e79cf3186a22dc2e1e9d27c1a080b891b59
iuc
parents: 15
diff changeset
40 <option value="history" selected="true">Use a @STD_BEDTOOLS_INPUT_LABEL@ file from the history</option>
15
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
41 <option value="data_table">Use a built-in GFF file</option>
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
42 </param>
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
43 <when value="data_table">
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
44 <param name="table" type="select" label="Select reference GFF" help="If your genome of interest is not listed, contact the Galaxy team">
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
45 <options from_data_table="all_gff">
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
46 <filter type="sort_by" column="2"/>
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
47 <validator type="no_options" message="No files are available"/>
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
48 </options>
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
49 </param>
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
50 </when>
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
51 <when value="history">
34
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
52 <param name="inputB" argument="-b" type="data" format="@STD_BEDTOOLS_INPUTS@" multiple="true" label="Select a @STD_BEDTOOLS_INPUT_LABEL@ file" />
15
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
53 </when>
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
54 </conditional>
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
55
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
56 <param name="ties" type="select"
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
57 label="How ties for closest feature should be handled"
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
58 help="This occurs when two features in B have exactly the same overlap with a feature in A.">
15
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
59 <option value="all" selected="true">all - Report all ties (default)</option>
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
60 <option value="first">first - Report the first tie that occurred in the B file</option>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
61 <option value="last">last - Report the last tie that occurred in the B file</option>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
62 </param>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
63
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
64 <expand macro="strand2" />
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
65
15
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
66 <param name="addition" argument="-d" type="boolean" truevalue="-d" falsevalue="" checked="false"
5
f8b7dc21b4ee planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 33ef87ff883d6a5814ab5b4552d7b597711cae4c
iuc
parents: 4
diff changeset
67 label="In addition to the closest feature in B, report its distance to A as an extra column"
15
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
68 help="The reported distance for overlapping features will be 0" />
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
69
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
70 <conditional name="addition2">
15
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
71 <param name="addition2_select" argument="-D" type="select"
5
f8b7dc21b4ee planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 33ef87ff883d6a5814ab5b4552d7b597711cae4c
iuc
parents: 4
diff changeset
72 label="Add additional columns to report distance to upstream feature. Distance defintion"
15
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
73 help="Like -d, report the closest feature in B, and its distance to A as an extra column. However unlike -d, use negative distances to report upstream features">
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
74 <option value="" selected="true">Do not report the distance et all.</option>
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
75 <option value="ref">Report distance with respect to the reference genome. B features with a lower (start, stop) are upstream. (-ref)</option>
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
76 <option value="a">Report distance with respect to A. When A is on the - strand, "upstream" means B has a higher (start,stop). (-a)</option>
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
77 <option value="b">Report distance with respect to B. When B is on the - strand, "upstream" means A has a higher (start,stop). (-b)</option>
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
78 </param>
4
607c0576c6ab planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents: 1
diff changeset
79 <when value="" />
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
80 <when value="ref">
4
607c0576c6ab planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents: 1
diff changeset
81 <expand macro="closest_D_option" />
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
82 </when>
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
83 <when value="a">
4
607c0576c6ab planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents: 1
diff changeset
84 <expand macro="closest_D_option" />
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
85 </when>
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
86 <when value="b">
4
607c0576c6ab planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents: 1
diff changeset
87 <expand macro="closest_D_option" />
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
88 </when>
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
89 </conditional>
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
90
15
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
91 <param argument="-k" type="integer" min="1" value="1" optional="true"
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
92 label="Report the k closest hits" />
4
607c0576c6ab planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents: 1
diff changeset
93
15
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
94 <param argument="-io" type="boolean" truevalue="-io" falsevalue="" checked="false"
5
f8b7dc21b4ee planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 33ef87ff883d6a5814ab5b4552d7b597711cae4c
iuc
parents: 4
diff changeset
95 label="Ignore features in B that overlap A"
15
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
96 help="That is, we want close, yet not touching features only" />
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
97
15
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
98 <param argument="-mdb" type="select"
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
99 label="How multiple databases are resolved">
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
100 <option value="each" selected="true">Report closest records for each database. (-each)</option>
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
101 <option value="all">Report closest records among all databases. (-all)</option>
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
102 </param>
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
103 </inputs>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
104 <outputs>
5
f8b7dc21b4ee planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 33ef87ff883d6a5814ab5b4552d7b597711cae4c
iuc
parents: 4
diff changeset
105 <!-- Would like to use a nicer name, but since there are possibly many inputB datasets, falling back to ${on_string} -->
34
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
106 <!-- <data name="output" format_source="inputA" metadata_source="inputA" label="Closest regions from ${inputB[0].name} to ${inputA.name}"/> -->
15
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
107 <data name="output" format_source="inputA" metadata_source="inputA" label="Closest regions from ${on_string}" />
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
108 </outputs>
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
109 <tests>
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
110 <test>
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
111 <param name="inputA" value="closestBedA.bed" ftype="bed" />
15
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
112 <param name="source" value="history" />
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
113 <param name="inputB" value="closestBedB.bed" ftype="bed" />
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
114 <output name="output" file="closestBed_result1.bed" ftype="bed" />
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
115 </test>
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
116 <test>
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
117 <param name="inputA" value="closestBed_a.bed" ftype="bed" />
15
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
118 <param name="source" value="history" />
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
119 <param name="inputB" value="closestBed_b1.bed,closestBed_b2.bed" ftype="bed" />
15
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
120 <param name="addition" value="true" />
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
121 <output name="output" file="closestBed_result2.bed" ftype="bed" />
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
122 </test>
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
123 <test>
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
124 <param name="inputA" value="closestBed_a.bed" ftype="bed" />
15
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
125 <param name="source" value="history" />
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
126 <param name="inputB" value="closestBed_b1.bed,closestBed_b2.bed" ftype="bed" />
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
127 <param name="addition" value="True" />
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
128 <param name="mdb" value="all" />
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
129 <output name="output" file="closestBed_result3.bed" ftype="bed" />
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
130 </test>
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
131 <test>
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
132 <param name="inputA" value="closestBed_c.bed" ftype="bed" />
15
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
133 <param name="source" value="history" />
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
134 <param name="inputB" value="closestBed_d.bed" ftype="bed" />
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
135 <param name="addition2_select" value="ref" />
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
136 <output name="output" file="closestBed_result4.bed" ftype="bed" />
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
137 </test>
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
138 <test>
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
139 <param name="inputA" value="closestBed_c.bed" ftype="bed" />
15
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
140 <param name="source" value="history" />
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
141 <param name="inputB" value="closestBed_d.bed" ftype="bed" />
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
142 <param name="addition2_select" value="a" />
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
143 <output name="output" file="closestBed_result5.bed" ftype="bed" />
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
144 </test>
4
607c0576c6ab planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents: 1
diff changeset
145 <test>
607c0576c6ab planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents: 1
diff changeset
146 <param name="inputA" value="closestBedA.bed" ftype="bed" />
15
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
147 <param name="source" value="history" />
4
607c0576c6ab planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents: 1
diff changeset
148 <param name="inputB" value="a.bed" ftype="bed" />
607c0576c6ab planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents: 1
diff changeset
149 <param name="k" value="3" />
607c0576c6ab planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents: 1
diff changeset
150 <output name="output" file="closestBed_result6.bed" ftype="bed" />
607c0576c6ab planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents: 1
diff changeset
151 </test>
43
07e8b80f278c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit db0b91a784ca0c216345bc488d7d488babf1b53f"
iuc
parents: 41
diff changeset
152 <test>
07e8b80f278c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit db0b91a784ca0c216345bc488d7d488babf1b53f"
iuc
parents: 41
diff changeset
153 <param name="inputA" value="closestBedA.bed" ftype="bed" />
07e8b80f278c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit db0b91a784ca0c216345bc488d7d488babf1b53f"
iuc
parents: 41
diff changeset
154 <param name="source" value="data_table" />
07e8b80f278c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit db0b91a784ca0c216345bc488d7d488babf1b53f"
iuc
parents: 41
diff changeset
155 <param name="inputB" value="testid" />
07e8b80f278c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit db0b91a784ca0c216345bc488d7d488babf1b53f"
iuc
parents: 41
diff changeset
156 <param name="k" value="3" />
07e8b80f278c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit db0b91a784ca0c216345bc488d7d488babf1b53f"
iuc
parents: 41
diff changeset
157 <output name="output" file="closestBed_result6.bed" ftype="bed" />
07e8b80f278c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit db0b91a784ca0c216345bc488d7d488babf1b53f"
iuc
parents: 41
diff changeset
158 </test>
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
159 </tests>
15
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
160 <help><![CDATA[
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
161 **What it does**
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
162
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
163 Similar to intersectBed, closestBed searches for overlapping features in A and B. In the event that no feature in B overlaps the current feature in A, closestBed will report the closest (that is, least genomic distance from the start or end of A) feature in B. For example, one might want to find which is the closest gene to a significant GWAS polymorphism. Note that closestBed will report an overlapping feature as the closest—that is, it does not restrict to closest non-overlapping feature.
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
164
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
165 .. image:: $PATH_TO_IMAGES/closest-glyph.png
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
166
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
167 @REFERENCES@
15
b73962f8fcbf planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit c5007eff737fcabb28fa726ac40f13a1cd4893c1
iuc
parents: 11
diff changeset
168 ]]></help>
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
169 <expand macro="citations" />
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
170 </tool>