annotate flankBed.xml @ 36:0a5c785ac6db draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 833a0b5510d91226c1b0b94550cebfd44243b8d4"
author iuc
date Mon, 15 Jun 2020 16:55:13 -0400
parents dde39ba9c031
children 3e38c9b3214f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
34
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
1 <tool id="bedtools_flankbed" name="bedtools FlankBed" version="@TOOL_VERSION@">
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>create new intervals from the flanks of existing intervals</description>
1
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
3 <macros>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
4 <import>macros.xml</import>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
5 </macros>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
6 <expand macro="requirements" />
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
7 <expand macro="stdio" />
34
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
8 <command><![CDATA[
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
9 flankBed
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
10 $pct
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
11 $strand
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
12 -g @GENOME_FILE@
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
13 -i '$input'
1
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
14
34
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
15 #if $addition.addition_select == 'b':
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
16 -b $addition.b
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
17 #else:
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
18 -l $addition.l
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
19 -r $addition.r
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
20 #end if
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
21 > '$output'
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
22 ]]></command>
1
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
23 <inputs>
34
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
24 <param name="input" argument="-i" type="data" format="@STD_BEDTOOLS_INPUTS@" label="@STD_BEDTOOLS_INPUT_LABEL@ file"/>
17
44867b59dbf2 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit cf7a3674bc833bbd5fdd2ad02e724935ffc7a174
iuc
parents: 11
diff changeset
25 <expand macro="input_conditional_genome_file" />
34
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
26 <param argument="-pct" type="boolean" truevalue="-pct" falsevalue="" checked="false"
1
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
27 label="Define -l and -r as a fraction of the feature’s length"
34
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
28 help="E.g. if used on a 1000bp feature, -l 0.50, will add 500 bp “upstream”" />
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
29 <param name="strand" argument="-s" type="boolean" truevalue="-s" falsevalue="" checked="false"
1
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
30 label="Define -l and -r based on strand"
34
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
31 help="For example, if used, -l 500 for a negative-stranded feature, it will add 500 bp to the end coordinate" />
1
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
32 <expand macro="addition" />
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
33 </inputs>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
34 <outputs>
34
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
35 <data name="output" format_source="input" metadata_source="input" />
1
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
36 </outputs>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
37 <tests>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
38 <test>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
39 <param name="input" 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
40 <param name="genome_file_opts_selector" value="hist" />
1
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
41 <param name="genome" value="mm9_chr1.len"/>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
42 <param name="addition_select" value="b"/>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
43 <param name="b" value="5"/>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
44 <output name="output" file="flankBed_result1.bed" ftype="bed" />
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
45 </test>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
46 <test>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
47 <param name="input" 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
48 <param name="genome_file_opts_selector" value="hist" />
1
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
49 <param name="genome" value="mm9_chr1.len"/>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
50 <param name="addition_select" value="lr"/>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
51 <param name="l" value="2"/>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
52 <param name="r" value="3"/>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
53 <output name="output" file="flankBed_result2.bed" ftype="bed" />
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
54 </test>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
55 </tests>
34
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
56 <help><![CDATA[
1
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
57 **What it does**
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
58
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
59 bedtools flank will optionally create flanking intervals whose size is user-specified fraction of the original interval.
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
60
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
61 .. image:: $PATH_TO_IMAGES/flank-glyph.png
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
62
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
63 .. class:: warningmark
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
64
30
db1841942d2b planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b67e138b17f7e8cb34f59bed0925f691ec9740f3
iuc
parents: 26
diff changeset
65 In order to prevent creating intervals that violate chromosome boundaries, bedTools flank requires a bedTool genome file defining the length of each chromosome or contig. . This should be a two column tabular file with the chromosome name in the first column and the END coordinate of the chromosome in the second column.
db1841942d2b planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b67e138b17f7e8cb34f59bed0925f691ec9740f3
iuc
parents: 26
diff changeset
66
34
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
67 If you need this data for any genome that is at UCSC (http://genome.ucsc.edu), it can be extracted from the Table Browser with the "Get Data: UCSC Main" tool. Set "group" to "All Tables", "table" to "chromInfo", and "output format" to "all fields from selected table".
1
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
68
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
69 @REFERENCES@
34
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
70 ]]></help>
1
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
71 <expand macro="citations" />
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
72 </tool>