0
|
1 <tool id="bedtools_shufflebed" name="ShuffleBed" 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>
|
|
9 bedtools shuffle
|
|
10 -g $genome
|
|
11 -i $inputA
|
|
12 $bedpe
|
|
13 #if $seed.choose:
|
|
14 -seed $seed.seed
|
|
15 #end if
|
|
16 #if $excl.choose:
|
|
17 -excl $excl.excl
|
|
18 -f $overlap
|
|
19 #end if
|
|
20 #if $incl.choose:
|
|
21 -incl $incl.incl
|
|
22 #end if
|
|
23 $chrom
|
|
24 $chromfirst
|
|
25 $nooverlap
|
|
26 $allowBeyond
|
|
27 -maxTries $maxtries
|
|
28 > $output
|
|
29 </command>
|
|
30 <inputs>
|
|
31 <param format="bed,vcf,gff,gff3" name="inputA" type="data" label="BED/VCF/GFF file"/>
|
|
32 <param name="bedpe" type="boolean" label="The file is in BEDPE format" selected="False" truevalue="-bedpe" falsevalue="" />
|
|
33 <expand macro="genome" />
|
|
34 <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="" />
|
|
35 <expand macro="seed" />
|
|
36 <conditional name="excl">
|
|
37 <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" />
|
|
38 <when value="True">
|
|
39 <param name="excl" type="data" format="bed" label="Choose File" />
|
|
40 <expand macro="overlap" />
|
|
41 </when>
|
|
42 </conditional>
|
|
43 <conditional name="incl">
|
|
44 <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" />
|
|
45 <when value="True">
|
|
46 <param name="incl" type="data" format="bed" label="Choose File" />
|
|
47 </when>
|
|
48 </conditional>
|
|
49
|
|
50 <param name="chromfirst" type="boolean" selected="False" truevalue="-chromFirst" falsevalue=""
|
|
51 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" />
|
|
52 <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" />
|
|
53 <param name="nooverlap" type="boolean" selected="False" truevalue="-noOverlapping" falsevalue="" label="Don’t allow shuffled intervals to overlap" />
|
|
54 <param name="allowBeyond" type="boolean" selected="False" truevalue="-allowBeyondChromEnd" falsevalue="" label="Allow the original the length of the original records to extebd beyond the length of the chromosome." />
|
|
55 </inputs>
|
|
56 <outputs>
|
|
57 <data format="bed" name="output" />
|
|
58 </outputs>
|
|
59 <help>
|
|
60
|
|
61 **What it does**
|
|
62
|
|
63 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.
|
|
64 .. image:: $PATH_TO_IMAGES/shuffle-glyph.png
|
|
65 @REFERENCES@
|
|
66 </help>
|
|
67 <expand macro="citations" />
|
|
68 </tool>
|