Mercurial > repos > iuc > bedtools
annotate mapBed.xml @ 32:4f7a5ccd2ae9 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit fc3616bd1463afef9681cd7c431ac29f79e37e74
author | iuc |
---|---|
date | Tue, 11 Dec 2018 14:01:26 -0500 |
parents | e19bebe96cd2 |
children | dde39ba9c031 |
rev | line source |
---|---|
32
4f7a5ccd2ae9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit fc3616bd1463afef9681cd7c431ac29f79e37e74
iuc
parents:
31
diff
changeset
|
1 <tool id="bedtools_map" name="bedtools MapBed" version="@WRAPPER_VERSION@.2"> |
4
607c0576c6ab
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents:
3
diff
changeset
|
2 <description>apply a function to a column for each overlapping interval</description> |
0 | 3 <macros> |
4 <import>macros.xml</import> | |
5 </macros> | |
6 <expand macro="requirements" /> | |
7 <expand macro="stdio" /> | |
8 <command> | |
1 | 9 <![CDATA[ |
31
e19bebe96cd2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 39701b6cbb7a45ec45f1545648b73a6b8ed3e184
iuc
parents:
26
diff
changeset
|
10 bedtools map |
e19bebe96cd2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 39701b6cbb7a45ec45f1545648b73a6b8ed3e184
iuc
parents:
26
diff
changeset
|
11 -a '${inputA}' |
e19bebe96cd2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 39701b6cbb7a45ec45f1545648b73a6b8ed3e184
iuc
parents:
26
diff
changeset
|
12 -b '${inputB}' |
e19bebe96cd2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 39701b6cbb7a45ec45f1545648b73a6b8ed3e184
iuc
parents:
26
diff
changeset
|
13 $strand |
e19bebe96cd2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 39701b6cbb7a45ec45f1545648b73a6b8ed3e184
iuc
parents:
26
diff
changeset
|
14 @C_AND_O_ARGUMENT@ |
e19bebe96cd2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 39701b6cbb7a45ec45f1545648b73a6b8ed3e184
iuc
parents:
26
diff
changeset
|
15 -f $overlap |
e19bebe96cd2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 39701b6cbb7a45ec45f1545648b73a6b8ed3e184
iuc
parents:
26
diff
changeset
|
16 $reciprocal |
e19bebe96cd2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 39701b6cbb7a45ec45f1545648b73a6b8ed3e184
iuc
parents:
26
diff
changeset
|
17 $split |
e19bebe96cd2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 39701b6cbb7a45ec45f1545648b73a6b8ed3e184
iuc
parents:
26
diff
changeset
|
18 $header |
e19bebe96cd2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 39701b6cbb7a45ec45f1545648b73a6b8ed3e184
iuc
parents:
26
diff
changeset
|
19 @GENOME_FILE_MAPBED@ |
e19bebe96cd2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 39701b6cbb7a45ec45f1545648b73a6b8ed3e184
iuc
parents:
26
diff
changeset
|
20 > '${output}' |
1 | 21 ]]> |
0 | 22 </command> |
23 <inputs> | |
26
95a3b2c25bd1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b75b9e79cf3186a22dc2e1e9d27c1a080b891b59
iuc
parents:
19
diff
changeset
|
24 <param format="bam,@STD_BEDTOOLS_INPUTS@" name="inputA" type="data" label="File A (BAM/@STD_BEDTOOLS_INPUT_LABEL@)" /> |
95a3b2c25bd1
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b75b9e79cf3186a22dc2e1e9d27c1a080b891b59
iuc
parents:
19
diff
changeset
|
25 <param format="bam,@STD_BEDTOOLS_INPUTS@" name="inputB" type="data" label="File B (BAM/@STD_BEDTOOLS_INPUT_LABEL@)" /> |
0 | 26 <expand macro="overlap" /> |
11
7308cc546a36
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents:
4
diff
changeset
|
27 <param name="reciprocal" type="boolean" checked="false" truevalue="-r" falsevalue="" |
1 | 28 label="Require reciprocal overlap" |
29 help="If set, the overlap between the BAM alignment and the BED interval must affect the above fraction of both the alignment and the BED interval. (-r)" /> | |
0 | 30 <expand macro="strand2" /> |
3 | 31 <expand macro="c_and_o_argument"> |
31
e19bebe96cd2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 39701b6cbb7a45ec45f1545648b73a6b8ed3e184
iuc
parents:
26
diff
changeset
|
32 <param name="col" argument="-c" type="data_column" data_ref="inputB" label="Specify the column(s) from the B file to map onto intervals in A" help="Multiple columns can be specified in a comma-delimited list" /> |
3 | 33 </expand> |
1 | 34 <expand macro="split" /> |
35 <expand macro="print_header" /> | |
0 | 36 <conditional name="genome"> |
17
44867b59dbf2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit cf7a3674bc833bbd5fdd2ad02e724935ffc7a174
iuc
parents:
11
diff
changeset
|
37 <param name="genome_choose" argument="-g" type="select" |
44867b59dbf2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit cf7a3674bc833bbd5fdd2ad02e724935ffc7a174
iuc
parents:
11
diff
changeset
|
38 label="Specify a genome file the defines the expected chromosome order in the input files." > |
44867b59dbf2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit cf7a3674bc833bbd5fdd2ad02e724935ffc7a174
iuc
parents:
11
diff
changeset
|
39 <option value="" selected="true">No</option> |
44867b59dbf2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit cf7a3674bc833bbd5fdd2ad02e724935ffc7a174
iuc
parents:
11
diff
changeset
|
40 <option value="-g">Yes</option> |
44867b59dbf2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit cf7a3674bc833bbd5fdd2ad02e724935ffc7a174
iuc
parents:
11
diff
changeset
|
41 </param> |
0 | 42 <when value="-g"> |
17
44867b59dbf2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit cf7a3674bc833bbd5fdd2ad02e724935ffc7a174
iuc
parents:
11
diff
changeset
|
43 <expand macro="input_conditional_genome_file" /> |
0 | 44 </when> |
4
607c0576c6ab
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents:
3
diff
changeset
|
45 <when value="" /> |
0 | 46 </conditional> |
47 </inputs> | |
48 <outputs> | |
17
44867b59dbf2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit cf7a3674bc833bbd5fdd2ad02e724935ffc7a174
iuc
parents:
11
diff
changeset
|
49 <data format_source="inputA" name="output" metadata_source="inputA" label="Mapping of ${inputB.name} into ${inputA.name}" /> |
0 | 50 </outputs> |
1 | 51 <tests> |
52 <test> | |
53 <param name="inputA" value="mapBed1.bed" ftype="bed" /> | |
54 <param name="inputB" value="mapBed2.bed" ftype="bed" /> | |
2 | 55 <repeat name="c_and_o_argument_repeat"> |
3 | 56 <param name="col" value="5" /> |
2 | 57 <param name="operation" value="mean" /> |
58 </repeat> | |
1 | 59 <output name="output" file="mapBed_result1.bed" ftype="bed" /> |
60 </test> | |
61 <test> | |
62 <param name="inputA" value="mapBed1.bed" ftype="bed" /> | |
63 <param name="inputB" value="mapBed2.bed" ftype="bed" /> | |
2 | 64 <repeat name="c_and_o_argument_repeat"> |
65 <param name="col" value="5" /> | |
66 <param name="operation" value="collapse" /> | |
67 </repeat> | |
1 | 68 <output name="output" file="mapBed_result2.bed" ftype="bed" /> |
69 </test> | |
70 <test> | |
71 <param name="inputA" value="mapBed1.bed" ftype="bed" /> | |
72 <param name="inputB" value="mapBed2.bed" ftype="bed" /> | |
2 | 73 <repeat name="c_and_o_argument_repeat"> |
3 | 74 <param name="col" value="5" /> |
2 | 75 <param name="operation" value="collapse" /> |
76 </repeat> | |
1 | 77 <param name="strand" value="-S" /> |
78 <output name="output" file="mapBed_result3.bed" ftype="bed" /> | |
79 </test> | |
80 <test> | |
81 <param name="inputA" value="mapBed1.bed" ftype="bed" /> | |
82 <param name="inputB" value="mapBed2.bed" ftype="bed" /> | |
2 | 83 <repeat name="c_and_o_argument_repeat"> |
3 | 84 <param name="col" value="5" /> |
2 | 85 <param name="operation" value="collapse" /> |
86 </repeat> | |
1 | 87 <param name="strand" value="-s" /> |
88 <output name="output" file="mapBed_result4.bed" ftype="bed" /> | |
89 </test> | |
17
44867b59dbf2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit cf7a3674bc833bbd5fdd2ad02e724935ffc7a174
iuc
parents:
11
diff
changeset
|
90 <test> |
44867b59dbf2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit cf7a3674bc833bbd5fdd2ad02e724935ffc7a174
iuc
parents:
11
diff
changeset
|
91 <param name="inputA" value="mapBed3.bed" ftype="bed" /> |
44867b59dbf2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit cf7a3674bc833bbd5fdd2ad02e724935ffc7a174
iuc
parents:
11
diff
changeset
|
92 <param name="inputB" value="mapBed4.bed" ftype="bed" /> |
44867b59dbf2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit cf7a3674bc833bbd5fdd2ad02e724935ffc7a174
iuc
parents:
11
diff
changeset
|
93 <repeat name="c_and_o_argument_repeat"> |
44867b59dbf2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit cf7a3674bc833bbd5fdd2ad02e724935ffc7a174
iuc
parents:
11
diff
changeset
|
94 <param name="col" value="5" /> |
44867b59dbf2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit cf7a3674bc833bbd5fdd2ad02e724935ffc7a174
iuc
parents:
11
diff
changeset
|
95 <param name="operation" value="collapse" /> |
44867b59dbf2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit cf7a3674bc833bbd5fdd2ad02e724935ffc7a174
iuc
parents:
11
diff
changeset
|
96 </repeat> |
44867b59dbf2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit cf7a3674bc833bbd5fdd2ad02e724935ffc7a174
iuc
parents:
11
diff
changeset
|
97 <param name="strand" value="-s" /> |
44867b59dbf2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit cf7a3674bc833bbd5fdd2ad02e724935ffc7a174
iuc
parents:
11
diff
changeset
|
98 <param name="genome_choose" value="-g" /> |
44867b59dbf2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit cf7a3674bc833bbd5fdd2ad02e724935ffc7a174
iuc
parents:
11
diff
changeset
|
99 <param name="genome_file_opts_selector" value="hist" /> |
44867b59dbf2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit cf7a3674bc833bbd5fdd2ad02e724935ffc7a174
iuc
parents:
11
diff
changeset
|
100 <param name="genome" value="mm9.len" ftype="bed" /> |
44867b59dbf2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit cf7a3674bc833bbd5fdd2ad02e724935ffc7a174
iuc
parents:
11
diff
changeset
|
101 <output name="output" file="mapBed_result5.bed" ftype="bed" /> |
44867b59dbf2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit cf7a3674bc833bbd5fdd2ad02e724935ffc7a174
iuc
parents:
11
diff
changeset
|
102 </test> |
1 | 103 </tests> |
0 | 104 <help> |
1 | 105 <![CDATA[ |
0 | 106 **What it does** |
107 | |
108 bedtools map allows one to map overlapping features in a B file onto features in an A file and apply statistics and/or summary operations on those features. | |
109 | |
110 .. image:: $PATH_TO_IMAGES/map-glyph.png | |
111 | |
112 .. class:: infomark | |
113 | |
114 bedtools map requires each input file to be sorted by genome coordinate. For BED files, this can be done with sort -k1,1 -k2,2n. Other sorting criteria are allowed if a genome file (-g) is provides that specifies the expected chromosome order. | |
115 | |
116 .. class:: infomark | |
117 | |
118 The map tool is substantially faster in versions 2.19.0 and later. The plot below demonstrates the increased speed when, for example, counting the number of exome alignments that align to each exon. The bedtools times are compared to the bedops bedmap utility as a point of reference. | |
119 | |
120 @REFERENCES@ | |
1 | 121 ]]> |
0 | 122 </help> |
123 <expand macro="citations" /> | |
124 </tool> |