annotate makewindowsBed.xml @ 0:b8348686a0b9 draft

Imported from capsule None
author iuc
date Tue, 04 Nov 2014 01:45:04 -0500
parents
children
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_makewindowsbed" name="MakeWindowsBed" version="@WRAPPER_VERSION@.0">
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
2 <description></description>
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>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
9 bedtools makewindows
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
10 #if $type.type_select == 'genome':
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
11 -g $type.genome
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
12 #else:
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
13 -i $type.inputA
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
14 #end if
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
15 #if $action.action_select == 'windowsize':
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
16 -w $action.windowsize
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
17 #if $action.step_size.step_size_select == 'yes':
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
18 -s $action.step_size.step_size
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
19 #end if
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
20 #else:
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
21 -n $action.number
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
22 #end if
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
23 $sourcename
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
24 &gt; $output
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
25 </command>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
26 <inputs>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
27 <conditional name="type">
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
28 <param name="type_select" type="select" label="Work with">
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
29 <option value="bed" selected="True">Bed File</option>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
30 <option value="genome">Genome File</option>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
31 </param>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
32 <when value="bed">
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
33 <param format="bed,vcf,gff,gff3" name="inputA" type="data" label="BED/VCF/GFF file"/>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
34 </when>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
35 <when value="genome">
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
36 <expand macro="genome" />
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
37 </when>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
38 </conditional>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
39 <conditional name="action">
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
40 <param name="action_select" type="select" label="Work with">
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
41 <option value="windowsize" selected="True">Set WindowSize</option>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
42 <option value="number">Give Number of Windows</option>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
43 </param>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
44 <when value="windowsize">
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
45 <param name="windowsize" type="integer" value="1" label="Divide each input interval (either a chromosome or a BED interval) to fixed-sized windows (i.e. same number of nucleotide in each window)." />
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
46 <conditional name="step_size">
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
47 <param name="step_size_select" type="select" label="Specify Step size? i.e. how many base pairs to step before creating a new window. Used to create 'sliding' windows. Defaults to window size (non-sliding windows).">
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
48 <option value="yes">Yes</option>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
49 <option value="no" selected="True">No</option>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
50 </param>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
51 <when value="yes">
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
52 <param name="step_size" type="integer" value="100" label="Specify it" />
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
53 </when>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
54 </conditional>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
55 </when>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
56 <when value="number">
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
57 <param name="number" type="integer" value="1" label="Divide each input interval (either a chromosome or a BED interval) to fixed number of windows (i.e. same number of windows, with varying window sizes)." />
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
58 </when>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
59 </conditional>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
60 <param name="sourcename" type="select" label="ID Naming Options">
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
61 <option value="" selected="True">Default</option>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
62 <option value="-i src">use the source interval's name</option>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
63 <option value="-i winnum">use the window number as the ID (e.g. 1,2,3,4...)</option>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
64 <option value="-i srcwinnum">use the source interval's name with the window number.</option>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
65 </param>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
66 </inputs>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
67 <outputs>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
68 <data format_source="inputA" name="output" metadata_source="inputA" label=""/>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
69 </outputs>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
70 <help>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
71
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
72 **What it does**
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
73
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
74 Makes adjacent or sliding windows across a genome or BED file.
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
75
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
76 @REFERENCES@
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
77 </help>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
78 <expand macro="citations" />
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
79 </tool>