annotate makeWindowsBed.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
1
82aac94b06c3 Uploaded
iuc
parents:
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':
11
7308cc546a36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents: 4
diff changeset
12 -g '$type.genome'
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">
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
36 <param name="input" format="bed,vcf,gff,gff3" type="data" label="BED/VCF/GFF file"/>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
37 </when>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
38 <when value="genome">
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
39 <expand macro="genome" />
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" />
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
84 <param name="genome" value="mm9_chr1.len" ftype="tabular" />
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
85 <param name="action_select" value="windowsize" />
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
86 <param name="windowsize" value="1000000" />
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
87 <output name="output" file="makeWindowBed_result1.bed" ftype="bed" />
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
88 </test>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
89 <test>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
90 <param name="type_select" value="genome" />
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
91 <param name="genome" value="mm9_chr1.len" ftype="tabular" />
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
92 <param name="action_select" value="windowsize" />
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
93 <param name="windowsize" value="1000000" />
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
94 <param name="step_size_select" value="yes" />
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
95 <param name="step_size" value="50000" />
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
96 <output name="output" file="makeWindowBed_result2.bed" ftype="bed" />
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
97 </test>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
98 <test>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
99 <param name="type_select" value="genome" />
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 <param name="step_size" value="10000" />
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
104 <output name="output" file="makeWindowBed_result3.bed" ftype="bed" />
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
105 </test>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
106 <test>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
107 <param name="type_select" value="bed" />
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
108 <param name="input" value="makeWindowBed1.bed" ftype="bed" />
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
109 <param name="action_select" value="number" />
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
110 <param name="number" value="15" />
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
111 <param name="step_size" value="100" />
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
112 <output name="output" file="makeWindowBed_result4.bed" ftype="bed" />
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
113 </test>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
114 </tests>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
115 <help>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
116 <![CDATA[
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
117 **What it does**
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
118
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
119 Makes adjacent or sliding windows across a genome or BED file.
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
120
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
121 @REFERENCES@
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
122 ]]>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
123 </help>
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
124 <expand macro="citations" />
82aac94b06c3 Uploaded
iuc
parents:
diff changeset
125 </tool>