Mercurial > repos > iuc > bedtools
annotate mapBed.xml @ 18:18aeac3cd1db draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit dc0d10f28180ec2b2d1b0beac637601ea859e8f2
author | iuc |
---|---|
date | Sat, 21 Oct 2017 07:57:53 -0400 |
parents | 44867b59dbf2 |
children | a8eabd2838f6 |
rev | line source |
---|---|
17
44867b59dbf2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit cf7a3674bc833bbd5fdd2ad02e724935ffc7a174
iuc
parents:
11
diff
changeset
|
1 <tool id="bedtools_map" name="MapBed" version="@WRAPPER_VERSION@.1"> |
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[ |
0 | 10 bedtools map |
17
44867b59dbf2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit cf7a3674bc833bbd5fdd2ad02e724935ffc7a174
iuc
parents:
11
diff
changeset
|
11 -a '${inputA}' |
44867b59dbf2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit cf7a3674bc833bbd5fdd2ad02e724935ffc7a174
iuc
parents:
11
diff
changeset
|
12 -b '${inputB}' |
0 | 13 $strand |
2 | 14 @C_AND_O_ARGUMENT@ |
0 | 15 -f $overlap |
16 $reciprocal | |
17 $split | |
18 $header | |
17
44867b59dbf2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit cf7a3674bc833bbd5fdd2ad02e724935ffc7a174
iuc
parents:
11
diff
changeset
|
19 @GENOME_FILE_MAPBED@ |
1 | 20 > "${output}" |
21 ]]> | |
0 | 22 </command> |
23 <inputs> | |
1 | 24 <param format="bam,bed,vcf,gff,gff3" name="inputA" type="data" label="File A (BAM/BED/VCF/GFF)" /> |
25 <param format="bam,bed,gff,vcf,gff3" name="inputB" type="data" label="File B (BAM/BED/VCF/GFF)" /> | |
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"> |
32 <param name="col" type="data_column" data_ref="inputA" label="Specify the column(s) that should be summarized" help="(-c)" /> | |
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> |