Mercurial > repos > iuc > bedtools
annotate shuffleBed.xml @ 26:c0fbce5dc84a draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
| author | iuc |
|---|---|
| date | Mon, 17 Oct 2016 10:13:20 -0400 |
| parents | ac8b17b66663 |
| children | b0d5e752c0c5 |
| rev | line source |
|---|---|
| 8 | 1 <tool id="bedtools_shufflebed" name="ShuffleBed" version="@WRAPPER_VERSION@.0"> |
|
17
a2d4c30ba2f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 0887009a23d176b21536c9fd8a18c4fecc417d4f
iuc
parents:
13
diff
changeset
|
2 <description>randomly redistrubute intervals in a genome</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 shuffle | |
|
26
c0fbce5dc84a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents:
22
diff
changeset
|
11 -g '$genome' |
|
c0fbce5dc84a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents:
22
diff
changeset
|
12 -i '$inputA' |
| 8 | 13 $bedpe |
| 14 #if str($seed.seed_choose) == "True": | |
| 15 -seed $seed.seed | |
| 16 #end if | |
| 17 #if str($add_bed.add_bed_select) == "not_be": | |
|
22
ac8b17b66663
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6ce9a5a91d803b9ac9e743d9721ff0ccd2a5a59f
iuc
parents:
17
diff
changeset
|
18 -excl $add_bed.excl |
|
ac8b17b66663
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6ce9a5a91d803b9ac9e743d9721ff0ccd2a5a59f
iuc
parents:
17
diff
changeset
|
19 -f $add_bed.overlap |
| 8 | 20 #elif str($add_bed.add_bed_select) == "be": |
|
22
ac8b17b66663
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6ce9a5a91d803b9ac9e743d9721ff0ccd2a5a59f
iuc
parents:
17
diff
changeset
|
21 -incl $add_bed.incl |
| 8 | 22 #end if |
| 23 $chrom | |
| 24 $chromfirst | |
| 25 $no_overlap | |
| 26 $allow_beyond | |
| 27 -maxTries $maxtries | |
|
26
c0fbce5dc84a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents:
22
diff
changeset
|
28 > '$output' |
| 8 | 29 ]]> |
| 30 </command> | |
| 31 <inputs> | |
| 32 <param format="bed,vcf,gff,gff3" name="inputA" type="data" label="BED/VCF/GFF file"/> | |
|
26
c0fbce5dc84a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents:
22
diff
changeset
|
33 <param name="bedpe" type="boolean" label="The file is in BEDPE format" checked="False" truevalue="-bedpe" falsevalue="" /> |
| 8 | 34 <expand macro="genome" /> |
|
26
c0fbce5dc84a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents:
22
diff
changeset
|
35 <param name="chrom" type="boolean" checked="False" truevalue="-chrom" falsevalue="" |
| 8 | 36 label="Keep features in the input file on the same chromosome" |
| 37 help="Solely permute their location on the chromosome. By default, both the chromosome and position are randomly chosen. (-chrom)" /> | |
| 38 <expand macro="seed" /> | |
| 39 <conditional name="add_bed"> | |
| 40 <param name="add_bed_select" type="select" label="Choose an additional BED file"> | |
| 41 <option value="no" selected="True">No additional BED file</option> | |
| 42 <option value="not_be">Coordinates in which features from -i should not be placed?</option> | |
| 43 <option value="be">coordinates in which features from -i should be placed?</option> | |
| 44 </param> | |
|
13
bdb4509d9482
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit e8e971905f5fce11a99d51b1399af45288389d76
iuc
parents:
8
diff
changeset
|
45 <when value="no" /> |
| 8 | 46 <when value="not_be"> |
| 47 <param name="excl" type="data" format="bed" label="Choose File" /> | |
| 48 <expand macro="overlap" /> | |
| 49 </when> | |
| 50 <when value="be"> | |
| 51 <param name="incl" type="data" format="bed" label="Choose File" /> | |
| 52 </when> | |
| 53 </conditional> | |
|
26
c0fbce5dc84a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents:
22
diff
changeset
|
54 <param name="chromfirst" type="boolean" checked="False" truevalue="-chromFirst" falsevalue="" |
| 8 | 55 label="Choose chromosome first" |
| 56 help="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. (-chromFirst)" /> | |
| 57 <param name="maxtries" type="integer" value="1000" | |
| 58 label="Max. number of attempts to find a home for a shuffled interval in the presence of -incl or -excl" help="(-maxTries)" /> | |
|
26
c0fbce5dc84a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents:
22
diff
changeset
|
59 <param name="no_overlap" type="boolean" checked="False" truevalue="-noOverlapping" falsevalue="" |
| 8 | 60 label="Don’t allow shuffled intervals to overlap" help="(-noOverlapping)" /> |
|
26
c0fbce5dc84a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents:
22
diff
changeset
|
61 <param name="allow_beyond" type="boolean" checked="False" truevalue="-allowBeyondChromEnd" falsevalue="" |
| 8 | 62 label="Allow the original the length of the original records to extebd beyond the length of the chromosome" help="(-allowBeyondChromEnd)" /> |
| 63 </inputs> | |
| 64 <outputs> | |
| 65 <data format="bed" name="output" /> | |
| 66 </outputs> | |
| 67 <tests> | |
| 68 <test> | |
| 69 <param name="inputA" value="shuffleBed1.bed" ftype="bed" /> | |
| 70 <param name="genome" value="shuffleBed.len" ftype="tabular" /> | |
| 71 <param name="chrom" value="" /> | |
| 72 <param name="seed_choose" value="True" /> | |
| 73 <param name="seed" value="1" /> | |
| 74 <output name="output" file="shuffleBed_result1.bed" ftype="bed" /> | |
| 75 </test> | |
| 76 <test> | |
| 77 <param name="inputA" value="shuffleBed1.bed" ftype="bed" /> | |
| 78 <param name="genome" value="shuffleBed.len" ftype="tabular" /> | |
| 79 <param name="chrom" value="True" /> | |
| 80 <param name="seed_choose" value="True" /> | |
| 81 <param name="seed" value="1" /> | |
| 82 <output name="output" file="shuffleBed_result2.bed" ftype="bed" /> | |
| 83 </test> | |
| 84 <test> | |
| 85 <param name="inputA" value="shuffleBed1.bed" ftype="bed" /> | |
| 86 <param name="genome" value="shuffleBed.len" ftype="tabular" /> | |
| 87 <param name="excl" value="shuffleBed2.bed" ftype="bed" /> | |
| 88 <param name="seed_choose" value="True" /> | |
| 89 <param name="seed" value="1" /> | |
| 90 <output name="output" file="shuffleBed_result3.bed" ftype="bed" /> | |
| 91 </test> | |
| 92 <test> | |
| 93 <param name="inputA" value="shuffleBed1.bed" ftype="bed" /> | |
| 94 <param name="genome" value="shuffleBed.len" ftype="bed" /> | |
| 95 <param name="allow_beyond" value="True" /> | |
| 96 <param name="seed_choose" value="True" /> | |
| 97 <param name="seed" value="1" /> | |
| 98 <output name="output" file="shuffleBed_result4.bed" ftype="bed" /> | |
| 99 </test> | |
| 100 </tests> | |
| 101 <help> | |
| 102 <![CDATA[ | |
| 103 **What it does** | |
| 104 | |
| 105 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. | |
| 106 | |
| 107 .. image:: $PATH_TO_IMAGES/shuffle-glyph.png | |
| 108 | |
| 109 @REFERENCES@ | |
| 110 ]]> | |
| 111 </help> | |
| 112 <expand macro="citations" /> | |
| 113 </tool> |
