Mercurial > repos > iuc > bedtools
annotate slopBed.xml @ 24:33c3ddea63c5 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 09721a12bdd393441b162056316241aba3895a4f
author | iuc |
---|---|
date | Sun, 18 Feb 2018 15:07:08 -0500 |
parents | a8eabd2838f6 |
children | 95a3b2c25bd1 |
rev | line source |
---|---|
19
a8eabd2838f6
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 542ddc9e98cee5cc2a9e4caae945dee4b2c747b8
iuc
parents:
17
diff
changeset
|
1 <tool id="bedtools_slopbed" name="SlopBed" version="@WRAPPER_VERSION@.0"> |
4
607c0576c6ab
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents:
1
diff
changeset
|
2 <description>adjust the size of intervals</description> |
0 | 3 <macros> |
4 <import>macros.xml</import> | |
5 </macros> | |
6 <expand macro="requirements" /> | |
7 <expand macro="stdio" /> | |
8 <command> | |
1 | 9 <![CDATA[ |
0 | 10 bedtools slop |
11 $pct | |
12 $strand | |
17
44867b59dbf2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit cf7a3674bc833bbd5fdd2ad02e724935ffc7a174
iuc
parents:
11
diff
changeset
|
13 -g @GENOME_FILE@ |
11
7308cc546a36
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents:
4
diff
changeset
|
14 -i '$inputA' |
0 | 15 #if $addition.addition_select == 'b': |
1 | 16 -b $addition.b |
0 | 17 #else: |
1 | 18 -l $addition.l |
19 -r $addition.r | |
0 | 20 #end if |
21 $header | |
11
7308cc546a36
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents:
4
diff
changeset
|
22 > '$output' |
1 | 23 ]]> |
0 | 24 </command> |
25 <inputs> | |
26 <param format="bed,vcf,gff,gff3" name="inputA" type="data" label="BED/VCF/GFF file"/> | |
17
44867b59dbf2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit cf7a3674bc833bbd5fdd2ad02e724935ffc7a174
iuc
parents:
11
diff
changeset
|
27 <expand macro="input_conditional_genome_file" /> |
1 | 28 <param name="pct" type="boolean" checked="false" truevalue="-pct" falsevalue="" |
29 label="Define -l and -r as a fraction of the feature’s length" | |
30 help="E.g. if used on a 1000bp feature, -l 0.50, will add 500 bp “upstream”" /> | |
31 <param name="strand" type="boolean" checked="false" truevalue="-s" falsevalue="" | |
32 label="Define -l and -r based on strand" | |
33 help="If used, -l 500 for a negative-stranded feature, it will add 500 bp to the end coordinate" /> | |
0 | 34 <expand macro="addition" /> |
1 | 35 <expand macro="print_header" /> |
0 | 36 </inputs> |
37 <outputs> | |
1 | 38 <data format="bed" name="output"/> |
0 | 39 </outputs> |
1 | 40 <tests> |
41 <test> | |
42 <param name="inputA" value="a.bed" ftype="bed" /> | |
17
44867b59dbf2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit cf7a3674bc833bbd5fdd2ad02e724935ffc7a174
iuc
parents:
11
diff
changeset
|
43 <param name="genome_file_opts_selector" value="hist" /> |
1 | 44 <param name="genome" value="mm9_chr1.len" ftype="bed" /> |
45 <param name="addition_select" value="b" /> | |
46 <param name="b" value="5" /> | |
47 <output name="output" file="slopBed_result1.bed" ftype="bed" /> | |
48 </test> | |
49 <test> | |
50 <param name="inputA" value="a.bed" ftype="bed" /> | |
17
44867b59dbf2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit cf7a3674bc833bbd5fdd2ad02e724935ffc7a174
iuc
parents:
11
diff
changeset
|
51 <param name="genome_file_opts_selector" value="hist" /> |
1 | 52 <param name="genome" value="mm9_chr1.len" ftype="bed" /> |
53 <param name="addition_select" value="lr" /> | |
54 <param name="l" value="2" /> | |
55 <param name="r" value="3" /> | |
56 <output name="output" file="slopBed_result2.bed" ftype="bed" /> | |
57 </test> | |
58 </tests> | |
0 | 59 <help> |
1 | 60 <![CDATA[ |
0 | 61 **What it does** |
62 | |
63 bedtools slop will increase the size of each feature in a feature file by a user-defined number of bases. While something like this could be done with an awk '{OFS="\t" print $1,$2-<slop>,$3+<slop>}', bedtools slop will restrict the resizing to the size of the chromosome (i.e. no start < 0 and no end > chromosome size). | |
64 | |
65 .. image:: $PATH_TO_IMAGES/slop-glyph.png | |
66 | |
67 .. class:: warningmark | |
68 | |
69 In order to prevent the extension of intervals beyond chromosome boundaries, bedtools slop requires a genome file defining the length of each chromosome or contig. | |
70 @REFERENCES@ | |
1 | 71 ]]> |
0 | 72 </help> |
73 <expand macro="citations" /> | |
74 </tool> |