Mercurial > repos > iuc > bedtools
annotate multiIntersectBed.xml @ 50:df28283b3778 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
| author | iuc |
|---|---|
| date | Mon, 29 Apr 2019 05:54:22 -0400 |
| parents | 2f457890d8c8 |
| children | 9a9f1a7abf54 |
| rev | line source |
|---|---|
|
50
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
1 <tool id="bedtools_multiintersectbed" name="bedtools Multiple Intersect" version="@TOOL_VERSION@+galaxy1"> |
|
17
a2d4c30ba2f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 0887009a23d176b21536c9fd8a18c4fecc417d4f
iuc
parents:
8
diff
changeset
|
2 <description>identifies common intervals among multiple interval files</description> |
| 8 | 3 <macros> |
| 4 <import>macros.xml</import> | |
| 5 </macros> | |
| 6 <expand macro="requirements" /> | |
| 7 <expand macro="stdio" /> | |
|
50
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
8 <command><![CDATA[ |
|
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
9 bedtools multiinter |
|
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
10 $header |
|
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
11 $cluster |
|
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
12 -filler '${filler}' |
|
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
13 $empty.empty_selector |
|
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
14 @GENOME_FILE_UNION@ |
| 8 | 15 |
|
50
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
16 #if str($tag.tag_select) == "tag": |
|
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
17 -i |
|
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
18 #for $file in $tag.inputs |
|
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
19 '$file' |
|
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
20 #end for |
|
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
21 #else: |
|
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
22 -i |
|
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
23 #for $file in $tag.beds: |
|
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
24 '${file.input}' |
|
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
25 #end for |
|
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
26 -names |
|
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
27 #for $file in $tag.beds: |
|
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
28 '{$file.custom_name}' |
|
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
29 #end for |
|
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
30 #end if |
|
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
31 > '$output' |
|
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
32 ]]></command> |
| 8 | 33 <inputs> |
| 34 <conditional name="tag"> | |
| 35 <param name="tag_select" type="select" label="Sample name"> | |
| 36 <option value="tag" selected="true">Use input's tag</option> | |
| 37 <option value="custom">Enter custom name per file</option> | |
| 38 </param> | |
| 39 <when value="tag"> | |
|
50
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
40 <param name="inputs" type="data" format="@STD_BEDTOOLS_INPUTS@" multiple="true" label="@STD_BEDTOOLS_INPUT_LABEL@ files" /> |
| 8 | 41 </when> |
| 42 <when value="custom"> | |
| 43 <repeat name="beds" title="Add BED files" min="2" > | |
|
50
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
44 <param name="input" type="data" format="@STD_BEDTOOLS_INPUTS@" label="@STD_BEDTOOLS_INPUT_LABEL@ file" /> |
|
32
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
45 <param name="custom_name" type="text" area="false" label="Custom sample name" /> |
| 8 | 46 </repeat> |
| 47 </when> | |
| 48 </conditional> | |
|
50
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
49 <param argument="-cluster" type="boolean" truevalue="-cluster" falsevalue="" checked="false" |
|
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
50 label="Invoke Ryan Layers's clustering algorithm" /> |
|
32
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
51 <conditional name="empty"> |
|
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
52 <param name="empty_selector" argument="-empty" type="select" label="Report empty regions" help="Include regions that have zero coverage in all BedGraph datasets"> |
|
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
53 <option value="-empty">Yes</option> |
|
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
54 <option value="">No</option> |
|
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
55 </param> |
|
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
56 <when value="-empty"> |
|
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
57 <expand macro="input_conditional_genome_file" /> |
|
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
58 </when> |
|
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
59 <when value="" /> |
|
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
60 </conditional> |
|
50
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
61 <param argument="-filler" type="text" value="N/A" |
| 8 | 62 label="Text to use for no-coverage value" |
|
50
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
63 help="Can be 0.0, N/A, - or any other value" /> |
| 8 | 64 <expand macro="print_header" /> |
| 65 </inputs> | |
| 66 <outputs> | |
|
50
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
67 <data name="output" format="bed" /> |
| 8 | 68 </outputs> |
| 69 <tests> | |
| 70 <test> | |
|
32
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
71 <param name="tag_select" value="tag" /> |
| 8 | 72 <param name="inputs" value="multiIntersectBed1.bed,multiIntersectBed2.bed,multiIntersectBed3.bed" ftype="bed" /> |
|
32
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
73 <param name="empty_selector" value="" /> |
| 8 | 74 <output name="output" file="multiIntersectBed_result1.bed" ftype="bed" /> |
| 75 </test> | |
| 76 <test> | |
|
32
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
77 <param name="tag_select" value="tag" /> |
| 8 | 78 <param name="inputs" value="multiIntersectBed1.bed,multiIntersectBed2.bed,multiIntersectBed3.bed" ftype="bed" /> |
|
32
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
79 <param name="header" value="True" /> |
|
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
80 <param name="empty_selector" value="" /> |
| 8 | 81 <output name="output" file="multiIntersectBed_result2.bed" lines_diff="2" ftype="bed" /> |
| 82 </test> | |
| 83 <test> | |
|
32
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
84 <param name="tag_select" value="tag" /> |
| 8 | 85 <param name="inputs" value="multiIntersectBed1.bed,multiIntersectBed2.bed,multiIntersectBed3.bed" ftype="bed" /> |
|
32
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
86 <param name="empty_selector" value="-empty" /> |
|
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
87 <param name="genome_file_opts_selector" value="hist" /> |
|
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
88 <param name="genome" value="multiIntersectBed1.len" /> |
| 8 | 89 <output name="output" file="multiIntersectBed_result3.bed" ftype="bed" /> |
| 90 </test> | |
| 91 </tests> | |
|
50
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
92 <help><![CDATA[ |
| 8 | 93 **What it does** |
| 94 | |
| 95 This tool identifies common intervals among multiple, sorted BED files. Intervals can be common among 0 to N of the N input BED files. | |
| 96 | |
| 97 | |
| 98 .. class:: warningmark | |
| 99 | |
| 100 This tool requires that each BED file is reference-sorted (chrom, then start). | |
| 101 | |
| 102 | |
| 103 .. class:: infomark | |
| 104 | |
| 105 The output file will contain five fixed columns, plus additional columns for each BED file: | |
| 106 | |
| 107 * 1. Chromosome name (or 'genome' for whole-genome coverage). | |
| 108 * 2. The zero-based start position of the interval. | |
| 109 * 3. The one-based end position of the interval. | |
| 110 * 4. The number of input files that had at least one feature overlapping this interval. | |
| 111 * 5. A list of input files or labels that had at least one feature overlapping this interval. | |
| 112 * 6. For each input file, an indication (1 = Yes, 0 = No) of whether or not the file had at least one feature overlapping this interval. | |
| 113 | |
| 114 ------ | |
| 115 | |
| 116 **Example input**:: | |
| 117 | |
| 118 # a.bed | |
| 119 chr1 6 12bed | |
| 120 chr1 10 20 | |
| 121 chr1 22 27 | |
| 122 chr1 24 30 | |
|
26
c0fbce5dc84a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents:
17
diff
changeset
|
123 |
| 8 | 124 # b.bed |
| 125 chr1 12 32 | |
| 126 chr1 14 30 | |
|
26
c0fbce5dc84a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents:
17
diff
changeset
|
127 |
| 8 | 128 # c.bed |
| 129 chr1 8 15 | |
| 130 chr1 10 14 | |
| 131 chr1 32 34 | |
| 132 | |
| 133 | |
| 134 ------ | |
| 135 | |
| 136 **Example without a header and without reporting intervals with zero coverage**:: | |
| 137 | |
| 138 | |
| 139 chr1 6 8 1 1 1 0 0 | |
| 140 chr1 8 12 2 1,3 1 0 1 | |
| 141 chr1 12 15 3 1,2,3 1 1 1 | |
| 142 chr1 15 20 2 1,2 1 1 0 | |
| 143 chr1 20 22 1 2 0 1 0 | |
| 144 chr1 22 30 2 1,2 1 1 0 | |
| 145 chr1 30 32 1 2 0 1 0 | |
| 146 chr1 32 34 1 3 0 0 1 | |
| 147 | |
| 148 | |
| 149 **Example adding a header line**:: | |
| 150 | |
| 151 | |
| 152 chrom start end num list a.bed b.bed c.bed | |
| 153 chr1 6 8 1 1 1 0 0 | |
| 154 chr1 8 12 2 1,3 1 0 1 | |
| 155 chr1 12 15 3 1,2,3 1 1 1 | |
| 156 chr1 15 20 2 1,2 1 1 0 | |
| 157 chr1 20 22 1 2 0 1 0 | |
| 158 chr1 22 30 2 1,2 1 1 0 | |
| 159 chr1 30 32 1 2 0 1 0 | |
| 160 chr1 32 34 1 3 0 0 1 | |
| 161 | |
| 162 | |
| 163 **Example adding a header line and custom file labels**:: | |
| 164 | |
| 165 | |
| 166 chrom start end num list joe bob sue | |
| 167 chr1 6 8 1 joe 1 0 0 | |
| 168 chr1 8 12 2 joe,sue 1 0 1 | |
| 169 chr1 12 15 3 joe,bob,sue 1 1 1 | |
| 170 chr1 15 20 2 joe,bob 1 1 0 | |
| 171 chr1 20 22 1 bob 0 1 0 | |
| 172 chr1 22 30 2 joe,bob 1 1 0 | |
| 173 chr1 30 32 1 bob 0 1 0 | |
| 174 chr1 32 34 1 sue 0 0 1 | |
| 175 | |
| 176 | |
| 177 @REFERENCES@ | |
|
50
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
178 ]]></help> |
| 8 | 179 <expand macro="citations" /> |
| 180 </tool> |
