Mercurial > repos > iuc > bedtools
annotate mapBed.xml @ 35:ac2040a5e6ff draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 542ddc9e98cee5cc2a9e4caae945dee4b2c747b8
| author | iuc |
|---|---|
| date | Fri, 08 Dec 2017 03:26:23 -0500 |
| parents | b0d5e752c0c5 |
| children | d279800f4ff9 |
| 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_map" name="MapBed" version="@WRAPPER_VERSION@.0"> |
|
17
a2d4c30ba2f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 0887009a23d176b21536c9fd8a18c4fecc417d4f
iuc
parents:
16
diff
changeset
|
2 <description>apply a function to a column for each overlapping interval</description> |
| 8 | 3 <macros> |
| 4 <import>macros.xml</import> | |
| 5 </macros> | |
| 6 <expand macro="requirements" /> | |
| 7 <expand macro="stdio" /> | |
| 8 <command> | |
| 9 <![CDATA[ | |
| 10 bedtools map | |
|
32
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
11 -a '${inputA}' |
|
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
12 -b '${inputB}' |
| 8 | 13 $strand |
| 14 @C_AND_O_ARGUMENT@ | |
| 15 -f $overlap | |
| 16 $reciprocal | |
| 17 $split | |
| 18 $header | |
|
32
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
19 @GENOME_FILE_MAPBED@ |
| 8 | 20 > "${output}" |
| 21 ]]> | |
| 22 </command> | |
| 23 <inputs> | |
| 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)" /> | |
| 26 <expand macro="overlap" /> | |
|
26
c0fbce5dc84a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents:
19
diff
changeset
|
27 <param name="reciprocal" type="boolean" checked="false" truevalue="-r" falsevalue="" |
| 8 | 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)" /> | |
| 30 <expand macro="strand2" /> | |
|
16
e30113df8cf6
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 7b8a4ffc823f4dab194f1c629b7e83277dbe4337
iuc
parents:
15
diff
changeset
|
31 <expand macro="c_and_o_argument"> |
|
e30113df8cf6
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 7b8a4ffc823f4dab194f1c629b7e83277dbe4337
iuc
parents:
15
diff
changeset
|
32 <param name="col" type="data_column" data_ref="inputA" label="Specify the column(s) that should be summarized" help="(-c)" /> |
|
e30113df8cf6
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 7b8a4ffc823f4dab194f1c629b7e83277dbe4337
iuc
parents:
15
diff
changeset
|
33 </expand> |
| 8 | 34 <expand macro="split" /> |
| 35 <expand macro="print_header" /> | |
| 36 <conditional name="genome"> | |
|
32
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
37 <param name="genome_choose" argument="-g" type="select" |
|
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
38 label="Specify a genome file the defines the expected chromosome order in the input files." > |
|
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
39 <option value="" selected="true">No</option> |
|
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
40 <option value="-g">Yes</option> |
|
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
41 </param> |
| 8 | 42 <when value="-g"> |
|
32
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
43 <expand macro="input_conditional_genome_file" /> |
| 8 | 44 </when> |
|
19
102424c60727
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 1cfbe7505ebac3b447c6ae0f0d76b42656496588
iuc
parents:
17
diff
changeset
|
45 <when value="" /> |
| 8 | 46 </conditional> |
| 47 </inputs> | |
| 48 <outputs> | |
|
32
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
49 <data format_source="inputA" name="output" metadata_source="inputA" label="Mapping of ${inputB.name} into ${inputA.name}" /> |
| 8 | 50 </outputs> |
| 51 <tests> | |
| 52 <test> | |
| 53 <param name="inputA" value="mapBed1.bed" ftype="bed" /> | |
| 54 <param name="inputB" value="mapBed2.bed" ftype="bed" /> | |
| 55 <repeat name="c_and_o_argument_repeat"> | |
|
13
bdb4509d9482
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit e8e971905f5fce11a99d51b1399af45288389d76
iuc
parents:
8
diff
changeset
|
56 <param name="col" value="5" /> |
| 8 | 57 <param name="operation" value="mean" /> |
| 58 </repeat> | |
| 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" /> | |
| 64 <repeat name="c_and_o_argument_repeat"> | |
| 65 <param name="col" value="5" /> | |
| 66 <param name="operation" value="collapse" /> | |
| 67 </repeat> | |
| 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" /> | |
| 73 <repeat name="c_and_o_argument_repeat"> | |
|
13
bdb4509d9482
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit e8e971905f5fce11a99d51b1399af45288389d76
iuc
parents:
8
diff
changeset
|
74 <param name="col" value="5" /> |
| 8 | 75 <param name="operation" value="collapse" /> |
| 76 </repeat> | |
| 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" /> | |
| 83 <repeat name="c_and_o_argument_repeat"> | |
|
13
bdb4509d9482
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit e8e971905f5fce11a99d51b1399af45288389d76
iuc
parents:
8
diff
changeset
|
84 <param name="col" value="5" /> |
| 8 | 85 <param name="operation" value="collapse" /> |
| 86 </repeat> | |
| 87 <param name="strand" value="-s" /> | |
| 88 <output name="output" file="mapBed_result4.bed" ftype="bed" /> | |
| 89 </test> | |
|
32
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
90 <test> |
|
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
91 <param name="inputA" value="mapBed3.bed" ftype="bed" /> |
|
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
92 <param name="inputB" value="mapBed4.bed" ftype="bed" /> |
|
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
93 <repeat name="c_and_o_argument_repeat"> |
|
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
94 <param name="col" value="5" /> |
|
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
95 <param name="operation" value="collapse" /> |
|
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
96 </repeat> |
|
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
97 <param name="strand" value="-s" /> |
|
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
98 <param name="genome_choose" value="-g" /> |
|
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
99 <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
|
100 <param name="genome" value="mm9.len" ftype="bed" /> |
|
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
101 <output name="output" file="mapBed_result5.bed" ftype="bed" /> |
|
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
102 </test> |
| 8 | 103 </tests> |
| 104 <help> | |
| 105 <![CDATA[ | |
| 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@ | |
| 121 ]]> | |
| 122 </help> | |
| 123 <expand macro="citations" /> | |
| 124 </tool> |
