Mercurial > repos > bgruening > bedtools_test_bag
view shuffleBed.xml @ 11:e526617a6bb9 draft
Uploaded
author | bernhardlutz |
---|---|
date | Wed, 18 Jun 2014 15:07:04 -0400 |
parents | |
children | c782e0edc4f1 |
line wrap: on
line source
<tool id="bedtools_shufflebed" name="ShuffleBed" version="0.2.0"> <description></description> <macros> <import>macros.xml</import> </macros> <expand macro="requirements" /> <expand macro="stdio" /> <command> bedtools shuffle -g $genome -i $inputA $bedpe #if $seed.choose: -seed $seed.seed #end if #if $excl.choose: -excl $excl.excl -f $overlap #end if #if $incl.choose: -incl $incl.incl #end if $chrom $chromfirst $nooverlap $allowBeyond -maxTries $maxtries > $output </command> <inputs> <param format="bed,vcf,gff,gff3" name="inputA" type="data" label="BED/VCF/GFF file"/> <param name="bedpe" type="boolean" label="The file is in BEDPE format" selected="False" truevalue="-bedpe" falsevalue="" /> <expand macro="genome" /> <param name="chrom" type="boolean" label="Keep features in the input file on the same chromosome. Solely permute their location on the chromosome. By default, both the chromosome and position are randomly chosen" selected="False" truevalue="-chrom" falsevalue="" /> <expand macro="seed" /> <conditional name="excl"> <param name="choose" type="boolean" label="Choose a BED file of coordinates in which features from -i should not be placed?" selected="False" truevalue="True" falsevalue="False" /> <when value="True"> <param name="excl" type="data" format="bed" label="Choose File" /> <expand macro="overlap" /> </when> </conditional> <conditional name="incl"> <param name="choose" type="boolean" label="Choose a BED file of coordinates in which features from -i should be placed?" selected="False" truevalue="True" falsevalue="False" /> <when value="True"> <param name="incl" type="data" format="bed" label="Choose File" /> </when> </conditional> <param name="chromfirst" type="boolean" label="Instead of choosing a position randomly among the entire genome (the default), first choose a chrom randomly, and then choose a random start coordinate on that chrom. This leads to features being ~uniformly distributed among the chroms, as opposed to features being distribute as a function of chrom size" selected="False" truevalue="-chromFirst" falsevalue="" /> <param name="maxtries" type="integer" value="1000" label="Max. number of attempts to find a home for a shuffled interval in the presence of -incl or -excl" /> <param name="nooverlap" type="boolean" label="Don’t allow shuffled intervals to overlap" selected="False" truevalue="-noOverlapping" falsevalue="" /> <param name="allowBeyond" type="boolean" label="Allow the original the length of the original records to extebd beyond the length of the chromosome." selected="False" truevalue="-allowBeyondChromEnd" falsevalue="" /> </inputs> <outputs> <data format="bed" name="output" /> </outputs> <help> **What it does** bedtools shuffle will randomly permute the genomic locations of a feature file among a genome defined in a genome file. One can also provide an “exclusions” BED/GFF/VCF file that lists regions where you do not want the permuted features to be placed. For example, one might want to prevent features from being placed in known genome gaps. shuffle is useful as a null basis against which to test the significance of associations of one feature with another. .. image:: $PATH_TO_IMAGES/shuffle-glyph.png @REFERENCES@ </help> </tool>