Mercurial > repos > iuc > bedtools
annotate unionBedGraphs.xml @ 47:33c2e424ad7d draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 39701b6cbb7a45ec45f1545648b73a6b8ed3e184
| author | iuc |
|---|---|
| date | Tue, 20 Nov 2018 10:33:07 -0500 |
| parents | ac2040a5e6ff |
| children | 2f457890d8c8 |
| rev | line source |
|---|---|
|
35
ac2040a5e6ff
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 542ddc9e98cee5cc2a9e4caae945dee4b2c747b8
iuc
parents:
32
diff
changeset
|
1 <tool id="bedtools_unionbedgraph" name="Merge BedGraph files" version="@WRAPPER_VERSION@.0"> |
|
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>combines coverage intervals from multiple BEDGRAPH files</description> |
| 8 | 3 <macros> |
| 4 <import>macros.xml</import> | |
| 5 </macros> | |
| 6 <expand macro="requirements" /> | |
| 7 <expand macro="stdio" /> | |
| 8 <command> | |
| 9 <![CDATA[ | |
| 10 unionBedGraphs | |
| 11 $header | |
| 12 -filler "${filler}" | |
|
32
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
13 $empty.empty_selector |
|
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
14 @GENOME_FILE_UNION@ |
| 8 | 15 |
| 16 #if str($tag.tag_select) == "tag": | |
| 17 #set files = '" "'.join( [ str( $file ) for $file in $tag.inputs ] ) | |
| 18 -i "${files}" | |
| 19 #else: | |
| 20 -i | |
| 21 #for $bg in $tag.bedgraphs: | |
| 22 "${bg.input}" | |
| 23 #end for | |
| 24 -names | |
| 25 #for $bg in $tag.bedgraphs: | |
| 26 "${bg.custom_name}" | |
| 27 #end for | |
| 28 #end if | |
| 29 > "${output}" | |
| 30 ]]> | |
| 31 </command> | |
| 32 <inputs> | |
| 33 <conditional name="tag"> | |
| 34 <param name="tag_select" type="select" label="Sample name"> | |
| 35 <option value="tag" selected="true">Use input's tag</option> | |
| 36 <option value="custom">Enter custom name per file</option> | |
| 37 </param> | |
| 38 <when value="tag"> | |
| 39 <param name="inputs" format="bedgraph" type="data" multiple="True" label="BedGraph files" /> | |
| 40 </when> | |
| 41 <when value="custom"> | |
| 42 <repeat name="bedgraphs" title="Add BedGraph files" min="2" > | |
| 43 <param name="input" format="bedgraph" type="data" multiple="True" label="BedGraph file" /> | |
|
32
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
44 <param name="custom_name" type="text" area="false" label="Custom sample name" /> |
| 8 | 45 </repeat> |
| 46 </when> | |
| 47 </conditional> | |
|
32
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
48 <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
|
49 <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
|
50 <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
|
51 <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
|
52 </param> |
|
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
53 <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
|
54 <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
|
55 </when> |
|
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="" /> |
|
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
57 </conditional> |
| 8 | 58 <param name="filler" type="text" value="N/A" |
| 59 label="Text to use for no-coverage value" | |
| 60 help="Can be 0.0, N/A, - or any other value. (-filler)" /> | |
| 61 <expand macro="print_header" /> | |
| 62 </inputs> | |
| 63 <outputs> | |
| 64 <data name="output" format="bedgraph" /> | |
| 65 </outputs> | |
| 66 <tests> | |
| 67 <test> | |
|
32
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
68 <param name="tag_select" value="tag" /> |
| 8 | 69 <param name="inputs" value="unionBedGraphs1.bg,unionBedGraphs2.bg,unionBedGraphs3.bg" ftype="bedgraph" /> |
|
32
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
70 <param name="empty_selector" value="" /> |
| 8 | 71 <output name="output" file="unionBedGraphs_result1.bg" ftype="bedgraph" /> |
| 72 </test> | |
| 73 <test> | |
|
32
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
74 <param name="tag_select" value="tag" /> |
| 8 | 75 <param name="inputs" value="unionBedGraphs1.bg,unionBedGraphs2.bg,unionBedGraphs3.bg" ftype="bedgraph" /> |
|
32
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
76 <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
|
77 <param name="empty_selector" value="" /> |
| 8 | 78 <output name="output" file="unionBedGraphs_result2.bg" ftype="bedgraph" /> |
| 79 </test> | |
| 80 <test> | |
|
32
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
81 <param name="tag_select" value="tag" /> |
| 8 | 82 <param name="inputs" value="unionBedGraphs1.bg,unionBedGraphs2.bg,unionBedGraphs3.bg" ftype="bedgraph" /> |
|
32
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
83 <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
|
84 <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
|
85 <param name="genome" value="unionBedGraphs1.len" /> |
| 8 | 86 <output name="output" file="unionBedGraphs_result3.bg" ftype="bedgraph" /> |
| 87 </test> | |
| 88 <test> | |
|
32
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
89 <param name="tag_select" value="custom" /> |
| 8 | 90 <repeat name="bedgraphs"> |
| 91 <param name="input" value="unionBedGraphs1.bg" /> | |
| 92 <param name="custom_name" value="first" /> | |
| 93 </repeat> | |
| 94 <repeat name="bedgraphs"> | |
| 95 <param name="input" value="unionBedGraphs2.bg" /> | |
| 96 <param name="custom_name" value="second" /> | |
| 97 </repeat> | |
| 98 <repeat name="bedgraphs"> | |
| 99 <param name="input" value="unionBedGraphs3.bg" /> | |
| 100 <param name="custom_name" value="third" /> | |
| 101 </repeat> | |
|
32
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
102 <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
|
103 <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
|
104 <param name="genome" value="unionBedGraphs1.len" /> |
| 8 | 105 <output name="output" file="unionBedGraphs_result4.bg" ftype="bedgraph" /> |
| 106 </test> | |
| 107 </tests> | |
| 108 <help> | |
| 109 <![CDATA[ | |
| 110 **What it does** | |
| 111 | |
| 112 This tool merges multiple BedGraph files, allowing direct and fine-scale coverage comparisons among many samples/files. The BedGraph files need not represent the same intervals; the tool will identify both common and file-specific intervals. In addition, the BedGraph values need not be numeric: one can use any text as the BedGraph value and the tool will compare the values from multiple files. | |
| 113 | |
| 114 .. class:: warningmark | |
| 115 | |
| 116 This tool requires that each BedGraph file is reference-sorted (chrom, then start) and contains non-overlapping intervals (within a given file). | |
| 117 | |
| 118 | |
| 119 ------ | |
| 120 | |
| 121 **Example input**:: | |
| 122 | |
| 123 # 1.bedgraph | |
| 124 chr1 1000 1500 10 | |
| 125 chr1 2000 2100 20 | |
| 126 | |
| 127 # 2.bedgraph | |
| 128 chr1 900 1600 60 | |
| 129 chr1 1700 2050 50 | |
| 130 | |
| 131 # 3.bedgraph | |
| 132 chr1 1980 2070 80 | |
| 133 chr1 2090 2100 20 | |
| 134 | |
| 135 | |
| 136 ------ | |
| 137 | |
| 138 **Examples using the Zero Coverage checkbox** | |
| 139 | |
| 140 Output example (*without* checking "Report regions with zero coverage"):: | |
|
26
c0fbce5dc84a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents:
17
diff
changeset
|
141 |
| 8 | 142 chr1 900 1000 0 60 0 |
| 143 chr1 1000 1500 10 60 0 | |
| 144 chr1 1500 1600 0 60 0 | |
| 145 chr1 1700 1980 0 50 0 | |
| 146 chr1 1980 2000 0 50 80 | |
| 147 chr1 2000 2050 20 50 80 | |
| 148 chr1 2050 2070 20 0 80 | |
| 149 chr1 2070 2090 20 0 0 | |
| 150 chr1 2090 2100 20 0 20 | |
| 151 | |
| 152 | |
| 153 Output example (*with* checking "Report regions with zero coverage"). The lines marked with (*) are not covered in any input file, but are still reported (The asterisk marking does not appear in the file).:: | |
|
26
c0fbce5dc84a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents:
17
diff
changeset
|
154 |
| 8 | 155 chr1 0 900 0 0 0 (*) |
| 156 chr1 900 1000 0 60 0 | |
| 157 chr1 1000 1500 10 60 0 | |
| 158 chr1 1500 1600 0 60 0 | |
| 159 chr1 1600 1700 0 0 0 (*) | |
| 160 chr1 1700 1980 0 50 0 | |
| 161 chr1 1980 2000 0 50 80 | |
| 162 chr1 2000 2050 20 50 80 | |
| 163 chr1 2050 2070 20 0 80 | |
| 164 chr1 2070 2090 20 0 0 | |
| 165 chr1 2090 2100 20 0 20 | |
|
26
c0fbce5dc84a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents:
17
diff
changeset
|
166 chr1 2100 247249719 0 0 0 (*) |
| 8 | 167 |
| 168 | |
| 169 ------ | |
| 170 | |
| 171 **Examples adjusting the "Filler value" for no-covered intervals** | |
| 172 | |
| 173 The default value is '0', but you can use any other value. | |
| 174 | |
| 175 Output example with **filler = N/A**:: | |
|
26
c0fbce5dc84a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents:
17
diff
changeset
|
176 |
| 8 | 177 chr1 900 1000 N/A 60 N/A |
| 178 chr1 1000 1500 10 60 N/A | |
| 179 chr1 1500 1600 N/A 60 N/A | |
| 180 chr1 1600 1700 N/A N/A N/A | |
| 181 chr1 1700 1980 N/A 50 N/A | |
| 182 chr1 1980 2000 N/A 50 80 | |
| 183 chr1 2000 2050 20 50 80 | |
| 184 chr1 2050 2070 20 N/A 80 | |
| 185 chr1 2070 2090 20 N/A N/A | |
| 186 chr1 2090 2100 20 N/A 20 | |
| 187 | |
| 188 | |
| 189 ------ | |
| 190 | |
| 191 **Examples using the "sample name" labels**:: | |
| 192 | |
| 193 chrom start end WT-1 WT-2 KO-1 | |
| 194 chr1 900 1000 N/A 60 N/A | |
| 195 chr1 1000 1500 10 60 N/A | |
| 196 chr1 1500 1600 N/A 60 N/A | |
| 197 chr1 1600 1700 N/A N/A N/A | |
| 198 chr1 1700 1980 N/A 50 N/A | |
| 199 chr1 1980 2000 N/A 50 80 | |
| 200 chr1 2000 2050 20 50 80 | |
| 201 chr1 2050 2070 20 N/A 80 | |
| 202 chr1 2070 2090 20 N/A N/A | |
| 203 chr1 2090 2100 20 N/A 20 | |
| 204 | |
| 205 | |
| 206 ------ | |
| 207 | |
| 208 **Non-numeric values** | |
| 209 | |
| 210 The input BedGraph files can contain any kind of value in the fourth column, not necessarily a numeric value. | |
| 211 | |
| 212 Input Example:: | |
|
26
c0fbce5dc84a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents:
17
diff
changeset
|
213 |
|
c0fbce5dc84a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents:
17
diff
changeset
|
214 File-1 File-2 |
| 8 | 215 chr1 200 300 Sample1 chr1 100 240 0.75 |
| 216 chr1 400 450 Sample1 chr1 250 700 0.43 | |
| 217 chr1 530 600 Sample2 | |
| 218 | |
| 219 Output Example:: | |
|
26
c0fbce5dc84a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents:
17
diff
changeset
|
220 |
| 8 | 221 chr1 100 200 0 0.75 |
| 222 chr1 200 240 Sample1 0.75 | |
| 223 chr1 240 250 Sample1 0 | |
| 224 chr1 250 300 Sample1 0.43 | |
| 225 chr1 300 400 0 0.43 | |
| 226 chr1 400 450 Sample1 0.43 | |
| 227 chr1 450 530 0 0.43 | |
| 228 chr1 530 600 Sample2 0.43 | |
| 229 chr1 600 700 0 0.43 | |
| 230 | |
| 231 @REFERENCES@ | |
| 232 ]]> | |
| 233 </help> | |
| 234 <expand macro="citations" /> | |
| 235 </tool> |
