Mercurial > repos > iuc > bedtools
view mapBed.xml @ 2:457b09031d57 draft
Uploaded
author | iuc |
---|---|
date | Tue, 19 May 2015 07:05:36 -0400 |
parents | 82aac94b06c3 |
children | 2cd7e321d259 |
line wrap: on
line source
<tool id="bedtools_map" name="MapBed" version="@WRAPPER_VERSION@.1"> <description></description> <macros> <import>macros.xml</import> </macros> <expand macro="requirements" /> <expand macro="stdio" /> <command> <![CDATA[ bedtools map -a "${inputA}" -b "${inputB}" $strand @C_AND_O_ARGUMENT@ -f $overlap $reciprocal $split $header #if $genome.genome_choose == "-g" : -g $genome.genome #end if > "${output}" ]]> </command> <inputs> <param format="bam,bed,vcf,gff,gff3" name="inputA" type="data" label="File A (BAM/BED/VCF/GFF)" /> <param format="bam,bed,gff,vcf,gff3" name="inputB" type="data" label="File B (BAM/BED/VCF/GFF)" /> <expand macro="overlap" /> <param name="reciprocal" type="boolean" checked="false" truevalue="-r" falsevalue="" label="Require reciprocal overlap" 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)" /> <expand macro="strand2" /> <expand macro="c_and_o_argument" /> <expand macro="split" /> <expand macro="print_header" /> <conditional name="genome"> <param name="genome_choose" type="boolean" checked="false" truevalue="-g" falsevalue="" label="Treat split/spliced BAM or BED12 entries as distinct BED intervals when computing coverage." help="(-g)" /> <when value="-g"> <expand macro="genome" /> </when> </conditional> </inputs> <outputs> <data format_source="inputA" name="output" metadata_source="inputA" label="Mapping of ${inputB.name} into ${inputA.name}"/> </outputs> <tests> <test> <param name="inputA" value="mapBed1.bed" ftype="bed" /> <param name="inputB" value="mapBed2.bed" ftype="bed" /> <repeat name="c_and_o_argument_repeat"> <param name="cols" value="5" /> <param name="operation" value="mean" /> </repeat> <output name="output" file="mapBed_result1.bed" ftype="bed" /> </test> <test> <param name="inputA" value="mapBed1.bed" ftype="bed" /> <param name="inputB" value="mapBed2.bed" ftype="bed" /> <repeat name="c_and_o_argument_repeat"> <param name="col" value="5" /> <param name="operation" value="collapse" /> </repeat> <output name="output" file="mapBed_result2.bed" ftype="bed" /> </test> <test> <param name="inputA" value="mapBed1.bed" ftype="bed" /> <param name="inputB" value="mapBed2.bed" ftype="bed" /> <repeat name="c_and_o_argument_repeat"> <param name="cols" value="5" /> <param name="operation" value="collapse" /> </repeat> <param name="strand" value="-S" /> <output name="output" file="mapBed_result3.bed" ftype="bed" /> </test> <test> <param name="inputA" value="mapBed1.bed" ftype="bed" /> <param name="inputB" value="mapBed2.bed" ftype="bed" /> <repeat name="c_and_o_argument_repeat"> <param name="cols" value="5" /> <param name="operation" value="collapse" /> </repeat> <param name="strand" value="-s" /> <output name="output" file="mapBed_result4.bed" ftype="bed" /> </test> </tests> <help> <![CDATA[ **What it does** 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. .. image:: $PATH_TO_IMAGES/map-glyph.png .. class:: infomark 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. .. class:: infomark 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. @REFERENCES@ ]]> </help> <expand macro="citations" /> </tool>