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