Mercurial > repos > iuc > bedtools
annotate macros.xml @ 13:fadebae7e69b draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 391d2d41095edb2badf70924d3636238453ee377
author | iuc |
---|---|
date | Mon, 23 Jan 2017 06:43:06 -0500 |
parents | 7308cc546a36 |
children | 304a594a7ef6 |
rev | line source |
---|---|
0 | 1 <macros> |
2 <xml name="requirements"> | |
3 <requirements> | |
11
7308cc546a36
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents:
4
diff
changeset
|
4 <requirement type="package" version="2.26.0gx">bedtools</requirement> |
1 | 5 <yield/> |
0 | 6 </requirements> |
7 </xml> | |
11
7308cc546a36
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents:
4
diff
changeset
|
8 <token name="@WRAPPER_VERSION@">2.26.0</token> |
0 | 9 <xml name="stdio"> |
10 <stdio> | |
11 <!-- Anything other than zero is an error --> | |
12 <exit_code range="1:" /> | |
13 <exit_code range=":-1" /> | |
14 <!-- In case the return code has not been set propery check stderr too --> | |
15 <regex match="Error:" /> | |
16 <regex match="Exception:" /> | |
17 </stdio> | |
2 | 18 <version_command>bedtools --version</version_command> |
0 | 19 </xml> |
1 | 20 <xml name="reciprocal"> |
21 <param name="reciprocal" type="boolean" checked="false" truevalue="-r" falsevalue="" | |
22 label="Require that the fraction of overlap be reciprocal for A and B" | |
23 help="In other words, if -f is 0.90 and -r is used, this requires that B overlap at least 90% of A and that A also overlaps at least 90% of B. (-r)" /> | |
24 </xml> | |
0 | 25 <xml name="overlap"> |
1 | 26 <param name="overlap" type="float" value="0.000000001" label="Minimum overlap required as a fraction of A" help="Default is 1E-9, i.e. 1bp. (-f)"/> |
0 | 27 </xml> |
28 <xml name="strand2"> | |
29 <param name="strand" type="select" label="Calculation based on strandedness?"> | |
30 <option value="" selected="True">Overlaps on either strand</option> | |
31 <option value="-s">Only overlaps occurring on the **same** strand.</option> | |
32 <option value="-S">Only overlaps occurring on the **opposite** strand.</option> | |
33 </param> | |
34 </xml> | |
35 <xml name="seed"> | |
36 <conditional name="seed"> | |
1 | 37 <param name="seed_choose" type="select" label="Choose Seed?" help="(-seed)"> |
38 <option value="False" selected="True">Random Shuffling</option> | |
39 <option value="True">Choose fixed seed</option> | |
40 </param> | |
0 | 41 <when value="True"> |
42 <param name="seed" type="integer" value="12345" label="Enter Seed" /> | |
43 </when> | |
1 | 44 <when value="False" /> |
0 | 45 </conditional> |
46 </xml> | |
47 <xml name="split"> | |
2 | 48 <param name="split" type="boolean" checked="false" truevalue="-split" falsevalue="" |
49 label="Treat split/spliced BAM or BED12 entries as distinct BED intervals when computing coverage." | |
1 | 50 help="If set, the coverage will be calculated based the spliced intervals only. For BAM files, this inspects the CIGAR N operation to infer the blocks for computing coverage. For BED12 files, this inspects the BlockCount, BlockStarts, and BlockEnds fields (i.e., columns 10,11,12). If this option is not set, coverage will be calculated based on the interval's START/END coordinates, and would include introns in the case of RNAseq data. (-split)" /> |
0 | 51 </xml> |
52 <xml name="genome"> | |
1 | 53 <param format="tabular" name="genome" type="data" label="Genome file" /> |
54 <!--TODO: make use of: ${chromInfo} --> | |
0 | 55 </xml> |
4
607c0576c6ab
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents:
3
diff
changeset
|
56 <xml name="closest_D_option"> |
607c0576c6ab
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents:
3
diff
changeset
|
57 <param name="iu" type="boolean" checked="false" truevalue="-iu" falsevalue="" |
11
7308cc546a36
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents:
4
diff
changeset
|
58 label="Ignore features in B that are upstream of features in A" |
4
607c0576c6ab
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents:
3
diff
changeset
|
59 help="This option requires -D and follows its orientation rules for determining what is 'upstream'. (-iu)" /> |
607c0576c6ab
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents:
3
diff
changeset
|
60 |
607c0576c6ab
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents:
3
diff
changeset
|
61 <param name="id" type="boolean" checked="false" truevalue="-id" falsevalue="" |
11
7308cc546a36
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents:
4
diff
changeset
|
62 label="Ignore features in B that are downstream of features in A" |
4
607c0576c6ab
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents:
3
diff
changeset
|
63 help="This option requires -D and follows its orientation rules for determining what is 'downstream'. (-id)" /> |
607c0576c6ab
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents:
3
diff
changeset
|
64 |
607c0576c6ab
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents:
3
diff
changeset
|
65 <param name="fu" type="boolean" checked="false" truevalue="-fu" falsevalue="" |
11
7308cc546a36
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents:
4
diff
changeset
|
66 label="Choose first from features in B that are upstream of features in A" |
4
607c0576c6ab
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents:
3
diff
changeset
|
67 help="This option requires -D and follows its orientation rules for determining what is 'upstream'. (-fu)" /> |
607c0576c6ab
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents:
3
diff
changeset
|
68 |
607c0576c6ab
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents:
3
diff
changeset
|
69 <param name="fd" type="boolean" checked="false" truevalue="-fd" falsevalue="" |
11
7308cc546a36
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents:
4
diff
changeset
|
70 label="Choose first from features in B that are downstream of features in A" |
4
607c0576c6ab
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents:
3
diff
changeset
|
71 help="This option requires -D and follows its orientation rules for determining what is 'downstream'. (-fd)" /> |
607c0576c6ab
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents:
3
diff
changeset
|
72 </xml> |
0 | 73 <xml name="addition"> |
74 <conditional name="addition"> | |
75 <param name="addition_select" type="select" label="Choose what you want to do"> | |
76 <option value="b" selected="True">Increase the BED/GFF/VCF entry by the same number base pairs in each direction.</option> | |
77 <option value="lr">Increase by Start Coordinate and End Coordinate</option> | |
78 </param> | |
79 <when value="b"> | |
1 | 80 <param name="b" value="1" label="Number of base pairs" type="integer" /> |
0 | 81 </when> |
82 <when value="lr"> | |
1 | 83 <param name="l" type="integer" value="0" label="The number of base pairs to subtract from the start coordinate" /> |
84 <param name="r" type="integer" value="0" label="The number of base pairs to add to the end coordinate" /> | |
0 | 85 </when> |
86 </conditional> | |
87 </xml> | |
1 | 88 <xml name="print_header"> |
89 <param name="header" type="boolean" checked="False" truevalue="-header" falsevalue="" | |
90 label="Print the header from the A file prior to results" help="(-header)" /> | |
91 </xml> | |
92 <!-- TODO this is currently not used, but we should make use of it --> | |
93 <xml name="genome_validator"> | |
94 <validator type="unspecified_build" /> | |
95 <validator type="dataset_metadata_in_data_table" table_name="fasta_indexes" metadata_name="dbkey" metadata_column="1" message="Sequences are not currently available for the specified build." /> | |
96 </xml> | |
97 | |
98 <!-- ToDo column_picker --> | |
99 <xml name="choose_columns"> | |
100 <param name="cols" type="text" value="" | |
2 | 101 label="Specify the column(s) that should be summarized" |
102 help="comma separated (-c)"> | |
1 | 103 <sanitizer invalid_char=""> |
104 <valid initial="string.digits"><add value=","/></valid> | |
105 </sanitizer> | |
106 </param> | |
107 </xml> | |
108 | |
2 | 109 <token name="@C_AND_O_ARGUMENT@"> |
110 #set $col = list() | |
111 #set $op = list() | |
112 #for $item in $c_and_o_argument_repeat: | |
113 #silent $col.append( str($item.col) ) | |
114 #silent $op.append( str($item.operation) ) | |
115 #end for | |
116 #if $col: | |
117 -c #echo ','.join($col)# | |
118 -o #echo ','.join($op)# | |
119 #end if | |
120 </token> | |
121 | |
122 <xml name="c_and_o_argument"> | |
123 <repeat name="c_and_o_argument_repeat" title="Applying operations to columns from merged intervals" min="0"> | |
3 | 124 <yield /> |
2 | 125 <expand macro="choose_operations"> |
126 <expand macro="math_options" /> | |
127 <expand macro="additional_math_options" /> | |
128 </expand> | |
129 </repeat> | |
130 </xml> | |
131 | |
132 | |
1 | 133 <xml name="choose_operations"> |
134 <param name="operation" type="select" label="Specify the operation"> | |
135 <yield /> | |
136 </param> | |
137 </xml> | |
138 | |
0 | 139 <xml name="math_options"> |
1 | 140 <option value="sum" selected="True">Sum - numeric only</option> |
141 <option value="min">Min - numeric only</option> | |
142 <option value="max">Max - numeric only</option> | |
143 <option value="absmin">AbsMin - numeric only</option> | |
144 <option value="absmax">AbsMax - numeric only</option> | |
145 <option value="mean">Mean - numeric only</option> | |
146 <option value="median">Median - numeric only</option> | |
147 <option value="mode">Mode - numeric only</option> | |
148 <option value="antimode">Antimode - numeric only</option> | |
149 <option value="collapse">collapse (i.e., print a comma separated list) - numeric or text</option> | |
150 </xml> | |
0 | 151 <xml name="additional_math_options"> |
1 | 152 <option value="count">Count - numeric or text</option> |
153 <option value="count_disctinct">Count Distinct - numeric or text</option> | |
154 <option value="distinct">distinct (i.e., print a comma separated list) - numeric or text</option> | |
155 <option value="concat">concat (i.e., print a comma separated list) - numeric or text</option> | |
0 | 156 </xml> |
157 <token name="@REFERENCES@"> | |
1 | 158 <![CDATA[ |
0 | 159 ------ |
160 | |
161 This tool is part of the `bedtools package`_ from the `Quinlan laboratory`_. | |
162 | |
163 .. _bedtools package: https://github.com/arq5x/bedtools2 | |
13
fadebae7e69b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 391d2d41095edb2badf70924d3636238453ee377
iuc
parents:
11
diff
changeset
|
164 .. _Quinlan laboratory: http://quinlanlab.org |
0 | 165 |
1 | 166 |
167 **Citation** | |
168 | |
169 If you use this tool in Galaxy, please cite: | |
170 | |
171 Bjoern A. Gruening (2014), `Galaxy wrapper <https://github.com/bgruening/galaxytools>`_ | |
172 ]]> | |
0 | 173 </token> |
174 <xml name="citations"> | |
175 <citations> | |
176 <citation type="doi">10.1093/bioinformatics/btq033</citation> | |
1 | 177 <yield /> |
0 | 178 </citations> |
179 </xml> | |
180 </macros> |