Mercurial > repos > iuc > bedtools
annotate mapBed.xml @ 43:07e8b80f278c draft
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit db0b91a784ca0c216345bc488d7d488babf1b53f"
author | iuc |
---|---|
date | Fri, 01 Apr 2022 19:02:51 +0000 |
parents | 7ab85ac5f64b |
children |
rev | line source |
---|---|
43
07e8b80f278c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit db0b91a784ca0c216345bc488d7d488babf1b53f"
iuc
parents:
41
diff
changeset
|
1 <tool id="bedtools_map" name="bedtools MapBed" version="@TOOL_VERSION@.3" profile="@PROFILE@"> |
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> | |
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 | 7 <expand macro="requirements" /> |
8 <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
|
9 <command><![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@ |
34
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
15 @OVERLAP@ |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
16 #if str($overlapB): |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
17 -F $overlapB |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
18 #end if |
31
e19bebe96cd2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 39701b6cbb7a45ec45f1545648b73a6b8ed3e184
iuc
parents:
26
diff
changeset
|
19 $reciprocal |
e19bebe96cd2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 39701b6cbb7a45ec45f1545648b73a6b8ed3e184
iuc
parents:
26
diff
changeset
|
20 $split |
e19bebe96cd2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 39701b6cbb7a45ec45f1545648b73a6b8ed3e184
iuc
parents:
26
diff
changeset
|
21 $header |
43
07e8b80f278c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit db0b91a784ca0c216345bc488d7d488babf1b53f"
iuc
parents:
41
diff
changeset
|
22 @GENOME_FILE@ |
31
e19bebe96cd2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 39701b6cbb7a45ec45f1545648b73a6b8ed3e184
iuc
parents:
26
diff
changeset
|
23 > '${output}' |
34
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
24 ]]></command> |
0 | 25 <inputs> |
34
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
26 <param name="inputA" argument="-a" type="data" format="bam,@STD_BEDTOOLS_INPUTS@" label="File A (BAM/@STD_BEDTOOLS_INPUT_LABEL@)" /> |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
27 <param name="inputB" argument="-b" type="data" format="bam,@STD_BEDTOOLS_INPUTS@" label="File B (BAM/@STD_BEDTOOLS_INPUT_LABEL@)" /> |
0 | 28 <expand macro="overlap" /> |
34
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
29 <expand macro="overlap" name="overlapB" argument="-F" fracof="B"/> |
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
30 <param name="reciprocal" argument="-r" type="boolean" truevalue="-r" falsevalue="" checked="false" |
1 | 31 label="Require reciprocal overlap" |
34
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
32 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" /> |
0 | 33 <expand macro="strand2" /> |
3 | 34 <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
|
35 <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 | 36 </expand> |
1 | 37 <expand macro="split" /> |
38 <expand macro="print_header" /> | |
43
07e8b80f278c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit db0b91a784ca0c216345bc488d7d488babf1b53f"
iuc
parents:
41
diff
changeset
|
39 <expand macro="input_conditional_genome_file" optional="true"/> |
0 | 40 </inputs> |
41 <outputs> | |
34
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
42 <data name="output" format_source="inputA" metadata_source="inputA" label="Mapping of ${inputB.name} into ${inputA.name}" /> |
0 | 43 </outputs> |
1 | 44 <tests> |
45 <test> | |
46 <param name="inputA" value="mapBed1.bed" ftype="bed" /> | |
47 <param name="inputB" value="mapBed2.bed" ftype="bed" /> | |
2 | 48 <repeat name="c_and_o_argument_repeat"> |
3 | 49 <param name="col" value="5" /> |
2 | 50 <param name="operation" value="mean" /> |
51 </repeat> | |
1 | 52 <output name="output" file="mapBed_result1.bed" ftype="bed" /> |
53 </test> | |
54 <test> | |
55 <param name="inputA" value="mapBed1.bed" ftype="bed" /> | |
56 <param name="inputB" value="mapBed2.bed" ftype="bed" /> | |
2 | 57 <repeat name="c_and_o_argument_repeat"> |
58 <param name="col" value="5" /> | |
59 <param name="operation" value="collapse" /> | |
60 </repeat> | |
1 | 61 <output name="output" file="mapBed_result2.bed" ftype="bed" /> |
62 </test> | |
63 <test> | |
64 <param name="inputA" value="mapBed1.bed" ftype="bed" /> | |
65 <param name="inputB" value="mapBed2.bed" ftype="bed" /> | |
2 | 66 <repeat name="c_and_o_argument_repeat"> |
3 | 67 <param name="col" value="5" /> |
2 | 68 <param name="operation" value="collapse" /> |
69 </repeat> | |
1 | 70 <param name="strand" value="-S" /> |
71 <output name="output" file="mapBed_result3.bed" ftype="bed" /> | |
72 </test> | |
73 <test> | |
74 <param name="inputA" value="mapBed1.bed" ftype="bed" /> | |
75 <param name="inputB" value="mapBed2.bed" ftype="bed" /> | |
2 | 76 <repeat name="c_and_o_argument_repeat"> |
3 | 77 <param name="col" value="5" /> |
2 | 78 <param name="operation" value="collapse" /> |
79 </repeat> | |
1 | 80 <param name="strand" value="-s" /> |
81 <output name="output" file="mapBed_result4.bed" ftype="bed" /> | |
82 </test> | |
17
44867b59dbf2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit cf7a3674bc833bbd5fdd2ad02e724935ffc7a174
iuc
parents:
11
diff
changeset
|
83 <test> |
44867b59dbf2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit cf7a3674bc833bbd5fdd2ad02e724935ffc7a174
iuc
parents:
11
diff
changeset
|
84 <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
|
85 <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
|
86 <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
|
87 <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
|
88 <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
|
89 </repeat> |
44867b59dbf2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit cf7a3674bc833bbd5fdd2ad02e724935ffc7a174
iuc
parents:
11
diff
changeset
|
90 <param name="strand" value="-s" /> |
43
07e8b80f278c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit db0b91a784ca0c216345bc488d7d488babf1b53f"
iuc
parents:
41
diff
changeset
|
91 <conditional name="genome_file_opts"> |
07e8b80f278c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit db0b91a784ca0c216345bc488d7d488babf1b53f"
iuc
parents:
41
diff
changeset
|
92 <param name="genome_file_opts_selector" value="hist" /> |
07e8b80f278c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit db0b91a784ca0c216345bc488d7d488babf1b53f"
iuc
parents:
41
diff
changeset
|
93 <param name="genome" value="mm9.len" ftype="bed" /> |
07e8b80f278c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit db0b91a784ca0c216345bc488d7d488babf1b53f"
iuc
parents:
41
diff
changeset
|
94 </conditional> |
07e8b80f278c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit db0b91a784ca0c216345bc488d7d488babf1b53f"
iuc
parents:
41
diff
changeset
|
95 <output name="output" file="mapBed_result5.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
|
96 </test> |
07e8b80f278c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit db0b91a784ca0c216345bc488d7d488babf1b53f"
iuc
parents:
41
diff
changeset
|
97 <test> |
07e8b80f278c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit db0b91a784ca0c216345bc488d7d488babf1b53f"
iuc
parents:
41
diff
changeset
|
98 <param name="inputA" value="mapBed3.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
|
99 <param name="inputB" value="mapBed4.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
|
100 <repeat name="c_and_o_argument_repeat"> |
07e8b80f278c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit db0b91a784ca0c216345bc488d7d488babf1b53f"
iuc
parents:
41
diff
changeset
|
101 <param name="col" value="5" /> |
07e8b80f278c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit db0b91a784ca0c216345bc488d7d488babf1b53f"
iuc
parents:
41
diff
changeset
|
102 <param name="operation" value="collapse" /> |
07e8b80f278c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit db0b91a784ca0c216345bc488d7d488babf1b53f"
iuc
parents:
41
diff
changeset
|
103 </repeat> |
07e8b80f278c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit db0b91a784ca0c216345bc488d7d488babf1b53f"
iuc
parents:
41
diff
changeset
|
104 <param name="strand" value="-s" /> |
07e8b80f278c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit db0b91a784ca0c216345bc488d7d488babf1b53f"
iuc
parents:
41
diff
changeset
|
105 <conditional name="genome_file_opts"> |
07e8b80f278c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit db0b91a784ca0c216345bc488d7d488babf1b53f"
iuc
parents:
41
diff
changeset
|
106 <param name="genome_file_opts_selector" value="loc" /> |
07e8b80f278c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit db0b91a784ca0c216345bc488d7d488babf1b53f"
iuc
parents:
41
diff
changeset
|
107 <param name="genome" value="mm9"/> |
07e8b80f278c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit db0b91a784ca0c216345bc488d7d488babf1b53f"
iuc
parents:
41
diff
changeset
|
108 </conditional> |
17
44867b59dbf2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit cf7a3674bc833bbd5fdd2ad02e724935ffc7a174
iuc
parents:
11
diff
changeset
|
109 <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
|
110 </test> |
1 | 111 </tests> |
34
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
112 <help><![CDATA[ |
0 | 113 **What it does** |
114 | |
115 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. | |
116 | |
117 .. image:: $PATH_TO_IMAGES/map-glyph.png | |
118 | |
119 .. class:: infomark | |
120 | |
121 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. | |
122 | |
123 .. class:: infomark | |
124 | |
125 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. | |
126 | |
127 @REFERENCES@ | |
34
dde39ba9c031
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
32
diff
changeset
|
128 ]]></help> |
0 | 129 <expand macro="citations" /> |
130 </tool> |