annotate makeWindowsBed.xml @ 29:6bb3cd018203 draft

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