Mercurial > repos > iuc > bedtools
annotate makeWindowsBed.xml @ 57:1d0a0d6a78b1 draft
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 1e25e8d0bd1ebeb2b94c4bbdff222e56defc1fc2"
| author | iuc |
|---|---|
| date | Wed, 01 Sep 2021 11:02:26 +0000 |
| parents | 7a06bb42dbb1 |
| children | 539958feb49c |
| rev | line source |
|---|---|
|
57
1d0a0d6a78b1
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 1e25e8d0bd1ebeb2b94c4bbdff222e56defc1fc2"
iuc
parents:
56
diff
changeset
|
1 <tool id="bedtools_makewindowsbed" name="bedtools MakeWindowsBed" version="@TOOL_VERSION@" profile="@PROFILE@"> |
|
17
a2d4c30ba2f9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 0887009a23d176b21536c9fd8a18c4fecc417d4f
iuc
parents:
4
diff
changeset
|
2 <description>make interval windows across a genome</description> |
|
56
7a06bb42dbb1
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
52
diff
changeset
|
3 <expand macro="bio_tools" /> |
| 4 | 4 <macros> |
| 5 <import>macros.xml</import> | |
| 6 </macros> | |
| 7 <expand macro="requirements" /> | |
| 8 <expand macro="stdio" /> | |
|
50
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
9 <command><![CDATA[ |
|
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
10 bedtools makewindows |
|
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
11 #if $type.type_select == 'genome': |
|
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
12 @GENOME_FILE_MAKEWINDOWS@ |
|
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
13 #else: |
|
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
14 -b '$type.input' |
|
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
15 #end if |
|
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
16 #if $action.action_select == 'windowsize': |
|
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
17 -w $action.windowsize |
|
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
18 #if $action.step_size.step_size_select == 'yes': |
|
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
19 -s $action.step_size.step_size |
|
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
20 #end if |
|
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
21 #else: |
|
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
22 -n $action.number |
|
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
23 #end if |
|
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
24 $sourcename |
|
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
25 > '$output' |
|
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
26 ]]></command> |
| 4 | 27 <inputs> |
| 28 <conditional name="type"> | |
| 29 <param name="type_select" type="select" label="Work with"> | |
|
50
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
30 <option value="bed" selected="true">Bed File</option> |
| 4 | 31 <option value="genome">Genome File</option> |
| 32 </param> | |
| 33 <when value="bed"> | |
|
50
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
34 <param name="input" argument="-b" type="data" format="@STD_BEDTOOLS_INPUTS@" label="@STD_BEDTOOLS_INPUT_LABEL@ file"/> |
| 4 | 35 </when> |
| 36 <when value="genome"> | |
|
32
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
37 <expand macro="input_conditional_genome_file" /> |
| 4 | 38 </when> |
| 39 </conditional> | |
| 40 <conditional name="action"> | |
| 41 <param name="action_select" type="select" label="Work with"> | |
|
50
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
42 <option value="windowsize" selected="true">Set WindowSize</option> |
| 4 | 43 <option value="number">Give Number of Windows</option> |
| 44 </param> | |
| 45 <when value="windowsize"> | |
|
50
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
46 <param name="windowsize" argument="-w" type="integer" value="1" |
| 4 | 47 label="Divide each input interval (either a chromosome or a BED interval) to fixed-sized windows" |
| 48 help="i.e. same number of nucleotide in each window" /> | |
| 49 <conditional name="step_size"> | |
| 50 <param name="step_size_select" type="select" | |
| 51 label="Specify Step size? i.e. how many base pairs to step before creating a new window" | |
| 52 help="Used to create 'sliding' windows. Defaults to window size (non-sliding windows)."> | |
| 53 <option value="yes">Yes</option> | |
|
50
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
54 <option value="no" selected="true">No</option> |
| 4 | 55 </param> |
| 56 <when value="yes"> | |
|
50
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
57 <param name="step_size" argument="-s" type="integer" value="100" label="Specify it" /> |
| 4 | 58 </when> |
| 59 <when value="no" /> | |
| 60 </conditional> | |
| 61 </when> | |
| 62 <when value="number"> | |
|
50
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
63 <param name="number" argument="-n" type="integer" value="1" |
| 4 | 64 label="Divide each input interval (either a chromosome or a BED interval) to fixed number of windows" |
|
50
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
65 help="I.e. same number of windows, with varying window sizes" /> |
| 4 | 66 </when> |
| 67 </conditional> | |
| 68 <param name="sourcename" type="select" label="ID Naming Options"> | |
|
50
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
69 <option value="" selected="true">Default</option> |
| 4 | 70 <option value="-i src">use the source interval's name</option> |
| 71 <option value="-i winnum">use the window number as the ID (e.g. 1,2,3,4...)</option> | |
| 72 <option value="-i srcwinnum">use the source interval's name with the window number.</option> | |
| 73 </param> | |
| 74 </inputs> | |
| 75 <outputs> | |
| 76 <data name="output" format="bed" /> | |
| 77 </outputs> | |
| 78 <tests> | |
| 79 <test> | |
| 80 <param name="type_select" value="genome" /> | |
|
32
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
81 <param name="genome_file_opts_selector" value="hist" /> |
| 4 | 82 <param name="genome" value="mm9_chr1.len" ftype="tabular" /> |
| 83 <param name="action_select" value="windowsize" /> | |
| 84 <param name="windowsize" value="1000000" /> | |
| 85 <output name="output" file="makeWindowBed_result1.bed" ftype="bed" /> | |
| 86 </test> | |
| 87 <test> | |
| 88 <param name="type_select" value="genome" /> | |
|
32
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
89 <param name="genome_file_opts_selector" value="hist" /> |
| 4 | 90 <param name="genome" value="mm9_chr1.len" ftype="tabular" /> |
| 91 <param name="action_select" value="windowsize" /> | |
| 92 <param name="windowsize" value="1000000" /> | |
| 93 <param name="step_size_select" value="yes" /> | |
| 94 <param name="step_size" value="50000" /> | |
| 95 <output name="output" file="makeWindowBed_result2.bed" ftype="bed" /> | |
| 96 </test> | |
| 97 <test> | |
| 98 <param name="type_select" value="genome" /> | |
|
32
b0d5e752c0c5
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit a78ca56350b1fcf9d7de2a1112155c9bd0844348
iuc
parents:
26
diff
changeset
|
99 <param name="genome_file_opts_selector" value="hist" /> |
| 4 | 100 <param name="genome" value="mm9_chr1.len" ftype="tabular" /> |
| 101 <param name="action_select" value="number" /> | |
| 102 <param name="number" value="100" /> | |
| 103 <output name="output" file="makeWindowBed_result3.bed" ftype="bed" /> | |
| 104 </test> | |
| 105 <test> | |
| 106 <param name="type_select" value="bed" /> | |
| 107 <param name="input" value="makeWindowBed1.bed" ftype="bed" /> | |
| 108 <param name="action_select" value="number" /> | |
| 109 <param name="number" value="15" /> | |
| 110 <output name="output" file="makeWindowBed_result4.bed" ftype="bed" /> | |
| 111 </test> | |
| 112 </tests> | |
|
50
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
113 <help><![CDATA[ |
| 4 | 114 **What it does** |
| 115 | |
| 116 Makes adjacent or sliding windows across a genome or BED file. | |
| 117 | |
| 118 @REFERENCES@ | |
|
50
df28283b3778
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents:
48
diff
changeset
|
119 ]]></help> |
| 4 | 120 <expand macro="citations" /> |
| 121 </tool> |
