annotate slopBed.xml @ 16:e0cec48a4695 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit ea1ac33f3337ac44f43150f585c9ccd38e08da0c
author iuc
date Fri, 18 Aug 2017 15:33:08 -0400
parents 7308cc546a36
children 44867b59dbf2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
b8348686a0b9 Imported from capsule None
iuc
parents:
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
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
3 <macros>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
4 <import>macros.xml</import>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
5 </macros>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
6 <expand macro="requirements" />
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
7 <expand macro="stdio" />
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
8 <command>
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
9 <![CDATA[
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
10 bedtools slop
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
11 $pct
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
12 $strand
11
7308cc546a36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents: 4
diff changeset
13 -g '$genome'
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
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
15 #if $addition.addition_select == 'b':
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
16 -b $addition.b
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
17 #else:
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
18 -l $addition.l
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
19 -r $addition.r
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
20 #end if
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
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
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
23 ]]>
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
24 </command>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
25 <inputs>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
26 <param format="bed,vcf,gff,gff3" name="inputA" type="data" label="BED/VCF/GFF file"/>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
27 <expand macro="genome" />
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
28 <param name="pct" type="boolean" checked="false" truevalue="-pct" falsevalue=""
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
29 label="Define -l and -r as a fraction of the feature’s length"
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
30 help="E.g. if used on a 1000bp feature, -l 0.50, will add 500 bp “upstream”" />
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
31 <param name="strand" type="boolean" checked="false" truevalue="-s" falsevalue=""
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
32 label="Define -l and -r based on strand"
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
33 help="If used, -l 500 for a negative-stranded feature, it will add 500 bp to the end coordinate" />
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
34 <expand macro="addition" />
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
35 <expand macro="print_header" />
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
36 </inputs>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
37 <outputs>
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
38 <data format="bed" name="output"/>
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
39 </outputs>
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
40 <tests>
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
41 <test>
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
42 <param name="inputA" value="a.bed" ftype="bed" />
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
43 <param name="genome" value="mm9_chr1.len" ftype="bed" />
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
44 <param name="addition_select" value="b" />
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
45 <param name="b" value="5" />
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
46 <output name="output" file="slopBed_result1.bed" ftype="bed" />
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
47 </test>
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
48 <test>
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
49 <param name="inputA" value="a.bed" ftype="bed" />
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
50 <param name="genome" value="mm9_chr1.len" ftype="bed" />
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
51 <param name="addition_select" value="lr" />
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
52 <param name="l" value="2" />
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
53 <param name="r" value="3" />
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
54 <output name="output" file="slopBed_result2.bed" ftype="bed" />
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
55 </test>
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
56 </tests>
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
57 <help>
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
58 <![CDATA[
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
59 **What it does**
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
60
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
61 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-&lt;slop>,$3+&lt;slop>}', bedtools slop will restrict the resizing to the size of the chromosome (i.e. no start &lt; 0 and no end > chromosome size).
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
62
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
63 .. image:: $PATH_TO_IMAGES/slop-glyph.png
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
64
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
65 .. class:: warningmark
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
66
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
67 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.
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
68 @REFERENCES@
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
69 ]]>
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
70 </help>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
71 <expand macro="citations" />
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
72 </tool>