0
|
1 <tool id="bedtools_map" name="MapBed" version="@WRAPPER_VERSION@.0">
|
|
2 <description></description>
|
|
3 <macros>
|
|
4 <import>macros.xml</import>
|
|
5 </macros>
|
|
6 <expand macro="requirements" />
|
|
7 <expand macro="stdio" />
|
|
8 <command>
|
1
|
9 <![CDATA[
|
0
|
10 bedtools map
|
1
|
11 -a "${inputA}"
|
|
12 -b "${inputB}"
|
0
|
13 $strand
|
|
14 -o $operation
|
1
|
15 -c "${cols}"
|
0
|
16 -f $overlap
|
|
17 $reciprocal
|
|
18 $split
|
|
19 $header
|
|
20 #if $genome.genome_choose == "-g" :
|
|
21 -g $genome.genome
|
1
|
22 #end if
|
|
23 > "${output}"
|
|
24 ]]>
|
0
|
25 </command>
|
|
26 <inputs>
|
1
|
27 <param format="bam,bed,vcf,gff,gff3" name="inputA" type="data" label="File A (BAM/BED/VCF/GFF)" />
|
|
28 <param format="bam,bed,gff,vcf,gff3" name="inputB" type="data" label="File B (BAM/BED/VCF/GFF)" />
|
|
29 <expand macro="choose_columns" />
|
0
|
30 <expand macro="overlap" />
|
1
|
31 <param name="reciprocal" type="boolean" checked="false" truevalue="-r" falsevalue=""
|
|
32 label="Require reciprocal overlap"
|
|
33 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
|
34 <expand macro="strand2" />
|
1
|
35 <expand macro="choose_operations">
|
0
|
36 <expand macro="math_options" />
|
|
37 <expand macro="additional_math_options" />
|
1
|
38 </expand>
|
|
39 <expand macro="split" />
|
|
40 <expand macro="print_header" />
|
0
|
41 <conditional name="genome">
|
1
|
42 <param name="genome_choose" type="boolean" checked="false" truevalue="-g" falsevalue=""
|
|
43 label="Treat split/spliced BAM or BED12 entries as distinct BED intervals when computing coverage." help="(-g)" />
|
0
|
44 <when value="-g">
|
|
45 <expand macro="genome" />
|
|
46 </when>
|
|
47 </conditional>
|
|
48 </inputs>
|
|
49 <outputs>
|
|
50 <data format_source="inputA" name="output" metadata_source="inputA" label="Mapping of ${inputB.name} into ${inputA.name}"/>
|
|
51 </outputs>
|
1
|
52 <tests>
|
|
53 <test>
|
|
54 <param name="inputA" value="mapBed1.bed" ftype="bed" />
|
|
55 <param name="inputB" value="mapBed2.bed" ftype="bed" />
|
|
56 <param name="cols" value="5" />
|
|
57 <param name="operation" value="mean" />
|
|
58 <output name="output" file="mapBed_result1.bed" ftype="bed" />
|
|
59 </test>
|
|
60 <test>
|
|
61 <param name="inputA" value="mapBed1.bed" ftype="bed" />
|
|
62 <param name="inputB" value="mapBed2.bed" ftype="bed" />
|
|
63 <param name="cols" value="5" />
|
|
64 <param name="operation" value="collapse" />
|
|
65 <output name="output" file="mapBed_result2.bed" ftype="bed" />
|
|
66 </test>
|
|
67 <test>
|
|
68 <param name="inputA" value="mapBed1.bed" ftype="bed" />
|
|
69 <param name="inputB" value="mapBed2.bed" ftype="bed" />
|
|
70 <param name="cols" value="5" />
|
|
71 <param name="operation" value="collapse" />
|
|
72 <param name="strand" value="-S" />
|
|
73 <output name="output" file="mapBed_result3.bed" ftype="bed" />
|
|
74 </test>
|
|
75 <test>
|
|
76 <param name="inputA" value="mapBed1.bed" ftype="bed" />
|
|
77 <param name="inputB" value="mapBed2.bed" ftype="bed" />
|
|
78 <param name="cols" value="5" />
|
|
79 <param name="operation" value="collapse" />
|
|
80 <param name="strand" value="-s" />
|
|
81 <output name="output" file="mapBed_result4.bed" ftype="bed" />
|
|
82 </test>
|
|
83 </tests>
|
0
|
84 <help>
|
1
|
85 <![CDATA[
|
0
|
86 **What it does**
|
|
87
|
|
88 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.
|
|
89
|
|
90 .. image:: $PATH_TO_IMAGES/map-glyph.png
|
|
91
|
|
92 .. class:: infomark
|
|
93
|
|
94 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.
|
|
95
|
|
96 .. class:: infomark
|
|
97
|
|
98 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.
|
|
99
|
|
100 @REFERENCES@
|
1
|
101 ]]>
|
0
|
102 </help>
|
|
103 <expand macro="citations" />
|
|
104 </tool>
|