annotate makeWindowsBed.xml @ 43:07e8b80f278c draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit db0b91a784ca0c216345bc488d7d488babf1b53f"
author iuc
date Fri, 01 Apr 2022 19:02:51 +0000
parents 7ab85ac5f64b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
39
3e38c9b3214f "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 1e25e8d0bd1ebeb2b94c4bbdff222e56defc1fc2"
iuc
parents: 35
diff changeset
1 <tool id="bedtools_makewindowsbed" name="bedtools MakeWindowsBed" version="@TOOL_VERSION@" profile="@PROFILE@">
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>make interval windows across a genome</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>
41
7ab85ac5f64b "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 500a03281ea704abc7a16d9af63d67dbdcc5cd0b"
iuc
parents: 39
diff changeset
6 <expand macro="bio_tools" />
1
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
7 <expand macro="requirements" />
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
8 <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
9 <command><![CDATA[
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
10 bedtools makewindows
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
11 #if $type.type_select == 'genome':
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
12 @GENOME_FILE_MAKEWINDOWS@
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
13 #else:
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
14 -b '$type.input'
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
15 #end if
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
16 #if $action.action_select == 'windowsize':
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
17 -w $action.windowsize
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
18 #if $action.step_size.step_size_select == 'yes':
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
19 -s $action.step_size.step_size
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 #else:
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
22 -n $action.number
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
23 #end if
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
24 $sourcename
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
25 > '$output'
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
26 ]]></command>
1
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
27 <inputs>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
28 <conditional name="type">
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
29 <param name="type_select" type="select" label="Work with">
34
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
30 <option value="bed" selected="true">Bed File</option>
1
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
31 <option value="genome">Genome File</option>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
32 </param>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
33 <when value="bed">
34
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
34 <param name="input" argument="-b" type="data" format="@STD_BEDTOOLS_INPUTS@" label="@STD_BEDTOOLS_INPUT_LABEL@ file"/>
1
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
35 </when>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
36 <when value="genome">
17
44867b59dbf2 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit cf7a3674bc833bbd5fdd2ad02e724935ffc7a174
iuc
parents: 11
diff changeset
37 <expand macro="input_conditional_genome_file" />
1
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
38 </when>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
39 </conditional>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
40 <conditional name="action">
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
41 <param name="action_select" type="select" label="Work with">
34
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
42 <option value="windowsize" selected="true">Set WindowSize</option>
1
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
43 <option value="number">Give Number of Windows</option>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
44 </param>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
45 <when value="windowsize">
34
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
46 <param name="windowsize" argument="-w" type="integer" value="1"
1
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
47 label="Divide each input interval (either a chromosome or a BED interval) to fixed-sized windows"
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
48 help="i.e. same number of nucleotide in each window" />
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
49 <conditional name="step_size">
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
50 <param name="step_size_select" type="select"
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
51 label="Specify Step size? i.e. how many base pairs to step before creating a new window"
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
52 help="Used to create 'sliding' windows. Defaults to window size (non-sliding windows).">
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
53 <option value="yes">Yes</option>
34
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
54 <option value="no" selected="true">No</option>
1
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
55 </param>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
56 <when value="yes">
34
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
57 <param name="step_size" argument="-s" type="integer" value="100" label="Specify it" />
1
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
58 </when>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
59 <when value="no" />
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
60 </conditional>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
61 </when>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
62 <when value="number">
34
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
63 <param name="number" argument="-n" type="integer" value="1"
1
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
64 label="Divide each input interval (either a chromosome or a BED interval) to fixed number of windows"
34
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
65 help="I.e. same number of windows, with varying window sizes" />
1
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
66 </when>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
67 </conditional>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
68 <param name="sourcename" type="select" label="ID Naming Options">
34
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
69 <option value="" selected="true">Default</option>
1
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
70 <option value="-i src">use the source interval's name</option>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
71 <option value="-i winnum">use the window number as the ID (e.g. 1,2,3,4...)</option>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
72 <option value="-i srcwinnum">use the source interval's name with the window number.</option>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
73 </param>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
74 </inputs>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
75 <outputs>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
76 <data name="output" format="bed" />
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
77 </outputs>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
78 <tests>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
79 <test>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
80 <param name="type_select" value="genome" />
17
44867b59dbf2 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit cf7a3674bc833bbd5fdd2ad02e724935ffc7a174
iuc
parents: 11
diff changeset
81 <param name="genome_file_opts_selector" value="hist" />
1
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
82 <param name="genome" value="mm9_chr1.len" ftype="tabular" />
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
83 <param name="action_select" value="windowsize" />
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
84 <param name="windowsize" value="1000000" />
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
85 <output name="output" file="makeWindowBed_result1.bed" ftype="bed" />
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
86 </test>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
87 <test>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
88 <param name="type_select" value="genome" />
17
44867b59dbf2 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit cf7a3674bc833bbd5fdd2ad02e724935ffc7a174
iuc
parents: 11
diff changeset
89 <param name="genome_file_opts_selector" value="hist" />
1
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
90 <param name="genome" value="mm9_chr1.len" ftype="tabular" />
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
91 <param name="action_select" value="windowsize" />
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
92 <param name="windowsize" value="1000000" />
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
93 <param name="step_size_select" value="yes" />
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
94 <param name="step_size" value="50000" />
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
95 <output name="output" file="makeWindowBed_result2.bed" ftype="bed" />
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
96 </test>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
97 <test>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
98 <param name="type_select" value="genome" />
17
44867b59dbf2 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit cf7a3674bc833bbd5fdd2ad02e724935ffc7a174
iuc
parents: 11
diff changeset
99 <param name="genome_file_opts_selector" value="hist" />
1
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
100 <param name="genome" value="mm9_chr1.len" ftype="tabular" />
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
101 <param name="action_select" value="number" />
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
102 <param name="number" value="100" />
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
103 <output name="output" file="makeWindowBed_result3.bed" ftype="bed" />
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
104 </test>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
105 <test>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
106 <param name="type_select" value="bed" />
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
107 <param name="input" value="makeWindowBed1.bed" ftype="bed" />
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
108 <param name="action_select" value="number" />
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
109 <param name="number" value="15" />
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
110 <output name="output" file="makeWindowBed_result4.bed" ftype="bed" />
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
111 </test>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
112 </tests>
34
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
113 <help><![CDATA[
1
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
114 **What it does**
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
115
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
116 Makes adjacent or sliding windows across a genome or BED file.
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
117
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
118 @REFERENCES@
34
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
119 ]]></help>
1
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
120 <expand macro="citations" />
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
121 </tool>