upstream-extended/iuc/tools/bedtools/slopBed.xml
1<tool id="bedtools_slopbed" name="bedtools SlopBed" version="@TOOL_VERSION@+galaxy1" profile="@PROFILE@">
2 <description>adjust the size of intervals</description>
3 <macros>
4 <import>macros.xml</import>
5 </macros>
6 <expand macro="bio_tools" />
7 <expand macro="requirements" />
8 <expand macro="stdio" />
9 <command><![CDATA[
10bedtools slop
11$pct
12$strand
13@GENOME_FILE@
14-i '$inputA'
15#if $addition.addition_select == 'b':
16 -b $addition.b
17#else:
18 -l $addition.l
19 -r $addition.r
20#end if
21$header
22> '$output'
23 ]]></command>
24 <inputs>
25 <param name="inputA" argument="-i" type="data" format="@STD_BEDTOOLS_INPUTS@" label="@STD_BEDTOOLS_INPUT_LABEL@ file" />
26 <expand macro="input_conditional_genome_file" />
27 <param argument="-pct" type="boolean" truevalue="-pct" falsevalue="" checked="false"
28 label="Define -l and -r as a fraction of the feature’s length"
29 help="E.g. if used on a 1000bp feature, -l 0.50, will add 500 bp “upstream”" />
30 <param name="strand" argument="-s" type="boolean" truevalue="-s" falsevalue="" checked="false"
31 label="Define -l and -r based on strand"
32 help="If used, -l 500 for a negative-stranded feature, it will add 500 bp to the end coordinate" />
33 <expand macro="addition" />
34 <expand macro="print_header" />
35 </inputs>
36 <outputs>
37 <data name="output" format="bed" />
38 </outputs>
39 <tests>
40 <test>
41 <param name="inputA" value="a.bed" ftype="bed" />
42 <param name="genome_file_opts|genome_file_opts_selector" value="hist" />
43 <param name="genome_file_opts|genome" value="mm9_chr1.len" ftype="bed" />
44 <param name="addition|addition_select" value="b" />
45 <param name="addition|b" value="5" />
46 <output name="output" file="slopBed_result1.bed" ftype="bed" />
47 </test>
48 <test>
49 <param name="inputA" value="a.bed" ftype="bed" />
50 <param name="genome_file_opts|genome_file_opts_selector" value="hist" />
51 <param name="genome_file_opts|genome" value="mm9_chr1.len" ftype="bed" />
52 <param name="addition|addition_select" value="lr" />
53 <param name="addition|l" value="2" />
54 <param name="addition|r" value="3" />
55 <output name="output" file="slopBed_result2.bed" ftype="bed" />
56 </test>
57 </tests>
58 <help><![CDATA[
59**What it does**
60
61bedtools 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).
62
63.. image:: $PATH_TO_IMAGES/slop-glyph.png
64
65.. class:: warningmark
66
67In order to prevent the extension of intervals beyond chromosome boundaries, bedtools slop requires a genome file defining the length of each chromosome or contig.
68
69@REFERENCES@
70 ]]></help>
71 <expand macro="citations" />
72</tool>