Mercurial > repos > iuc > bedtools
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 |
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 | 3 <macros> |
4 <import>macros.xml</import> | |
5 </macros> | |
6 <expand macro="requirements" /> | |
7 <expand macro="stdio" /> | |
8 <command> | |
9 <![CDATA[ | |
10 bedtools makewindows | |
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 | 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 | 15 #end if |
16 #if $action.action_select == 'windowsize': | |
17 -w $action.windowsize | |
18 #if $action.step_size.step_size_select == 'yes': | |
19 -s $action.step_size.step_size | |
20 #end if | |
21 #else: | |
22 -n $action.number | |
23 -s $action.step_size | |
24 #end if | |
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 | 27 ]]> |
28 </command> | |
29 <inputs> | |
30 <conditional name="type"> | |
31 <param name="type_select" type="select" label="Work with"> | |
32 <option value="bed" selected="True">Bed File</option> | |
33 <option value="genome">Genome File</option> | |
34 </param> | |
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 | 37 </when> |
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 | 40 </when> |
41 </conditional> | |
42 <conditional name="action"> | |
43 <param name="action_select" type="select" label="Work with"> | |
44 <option value="windowsize" selected="True">Set WindowSize</option> | |
45 <option value="number">Give Number of Windows</option> | |
46 </param> | |
47 <when value="windowsize"> | |
48 <param name="windowsize" type="integer" value="1" | |
49 label="Divide each input interval (either a chromosome or a BED interval) to fixed-sized windows" | |
50 help="i.e. same number of nucleotide in each window" /> | |
51 <conditional name="step_size"> | |
52 <param name="step_size_select" type="select" | |
53 label="Specify Step size? i.e. how many base pairs to step before creating a new window" | |
54 help="Used to create 'sliding' windows. Defaults to window size (non-sliding windows)."> | |
55 <option value="yes">Yes</option> | |
56 <option value="no" selected="True">No</option> | |
57 </param> | |
58 <when value="yes"> | |
59 <param name="step_size" type="integer" value="100" label="Specify it" /> | |
60 </when> | |
61 <when value="no" /> | |
62 </conditional> | |
63 </when> | |
64 <when value="number"> | |
65 <param name="number" type="integer" value="1" | |
66 label="Divide each input interval (either a chromosome or a BED interval) to fixed number of windows" | |
67 help="i.e. same number of windows, with varying window sizes" /> | |
68 <param name="step_size" type="integer" value="100" label="Specify it" /> | |
69 </when> | |
70 </conditional> | |
71 <param name="sourcename" type="select" label="ID Naming Options"> | |
72 <option value="" selected="True">Default</option> | |
73 <option value="-i src">use the source interval's name</option> | |
74 <option value="-i winnum">use the window number as the ID (e.g. 1,2,3,4...)</option> | |
75 <option value="-i srcwinnum">use the source interval's name with the window number.</option> | |
76 </param> | |
77 </inputs> | |
78 <outputs> | |
79 <data name="output" format="bed" /> | |
80 </outputs> | |
81 <tests> | |
82 <test> | |
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 | 85 <param name="genome" value="mm9_chr1.len" ftype="tabular" /> |
86 <param name="action_select" value="windowsize" /> | |
87 <param name="windowsize" value="1000000" /> | |
88 <output name="output" file="makeWindowBed_result1.bed" ftype="bed" /> | |
89 </test> | |
90 <test> | |
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 | 93 <param name="genome" value="mm9_chr1.len" ftype="tabular" /> |
94 <param name="action_select" value="windowsize" /> | |
95 <param name="windowsize" value="1000000" /> | |
96 <param name="step_size_select" value="yes" /> | |
97 <param name="step_size" value="50000" /> | |
98 <output name="output" file="makeWindowBed_result2.bed" ftype="bed" /> | |
99 </test> | |
100 <test> | |
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 | 103 <param name="genome" value="mm9_chr1.len" ftype="tabular" /> |
104 <param name="action_select" value="number" /> | |
105 <param name="number" value="100" /> | |
106 <param name="step_size" value="10000" /> | |
107 <output name="output" file="makeWindowBed_result3.bed" ftype="bed" /> | |
108 </test> | |
109 <test> | |
110 <param name="type_select" value="bed" /> | |
111 <param name="input" value="makeWindowBed1.bed" ftype="bed" /> | |
112 <param name="action_select" value="number" /> | |
113 <param name="number" value="15" /> | |
114 <param name="step_size" value="100" /> | |
115 <output name="output" file="makeWindowBed_result4.bed" ftype="bed" /> | |
116 </test> | |
117 </tests> | |
118 <help> | |
119 <![CDATA[ | |
120 **What it does** | |
121 | |
122 Makes adjacent or sliding windows across a genome or BED file. | |
123 | |
124 @REFERENCES@ | |
125 ]]> | |
126 </help> | |
127 <expand macro="citations" /> | |
128 </tool> |