annotate makewindowsBed.xml @ 6:75d323631dce draft

Uploaded
author bernhardlutz
date Wed, 18 Jun 2014 12:40:28 -0400
parents
children c782e0edc4f1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
1 <tool id="bedtools_makewindowsbed" name="MakeWindowsBed" version="0.2.0">
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
2 <description></description>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
3 <macros>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
4 <import>macros.xml</import>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
5 </macros>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
6 <expand macro="requirements" />
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
7 <expand macro="stdio" />
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
8 <command>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
9 bedtools makewindows
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
10 #if $type.type_select == 'genome':
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
11 -g $type.genome
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
12 #else:
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
13 -i $type.inputA
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
14 #end if
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
15 #if $action.action_select == 'windowsize':
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
16 -w $action.windowsize
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
17 #if $action.step_size.step_size_select == 'yes':
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
18 -s $action.step_size.step_size
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
19 #end if
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
20 #else:
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
21 -n $action.number
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
22 #end if
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
23 $sourcename
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
24 &gt; $output
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
25 </command>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
26 <inputs>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
27 <conditional name="type">
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
28 <param name="type_select" type="select" label="Work with">
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
29 <option value="bed" selected="True">Bed File</option>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
30 <option value="genome">Genome File</option>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
31 </param>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
32 <when value="bed">
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
33 <param format="bed,vcf,gff,gff3" name="inputA" type="data" label="BED/VCF/GFF file"/>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
34 </when>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
35 <when value="genome">
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
36 <expand macro="genome" />
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
37 </when>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
38 </conditional>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
39 <conditional name="action">
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
40 <param name="action_select" type="select" label="Work with">
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
41 <option value="windowsize" selected="True">Set WindowSize</option>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
42 <option value="number">Give Number of Windows</option>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
43 </param>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
44 <when value="windowsize">
75d323631dce Uploaded
bernhardlutz
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)." />
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
46 <conditional name="step_size">
75d323631dce Uploaded
bernhardlutz
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).">
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
48 <option value="yes">Yes</option>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
49 <option value="no" selected="True">No</option>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
50 </param>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
51 <when value="yes">
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
52 <param name="step_size" type="integer" value="100" label="Specify it" />
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
53 </when>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
54 </conditional>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
55 </when>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
56 <when value="number">
75d323631dce Uploaded
bernhardlutz
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)." />
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
58 </when>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
59 </conditional>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
60 <param name="sourcename" type="select" label="ID Naming Options">
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
61 <option value="" selected="True">Default</option>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
62 <option value="-i src">use the source interval's name</option>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
63 <option value="-i winnum">use the window number as the ID (e.g. 1,2,3,4...)</option>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
64 <option value="-i srcwinnum">use the source interval's name with the window number.</option>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
65 </param>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
66 </inputs>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
67 <outputs>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
68 <data format_source="inputA" name="output" metadata_source="inputA" label=""/>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
69 </outputs>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
70 <help>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
71
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
72 **What it does**
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
73
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
74 Makes adjacent or sliding windows across a genome or BED file.
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
75
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
76 @REFERENCES@
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
77 </help>
75d323631dce Uploaded
bernhardlutz
parents:
diff changeset
78 </tool>