Mercurial > repos > iuc > bedtools
annotate macros.xml @ 15:ce2f9b4e4e7c draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 0d7fcf576fd797327af90538b216473ef13daa41
author | iuc |
---|---|
date | Sat, 23 May 2015 22:48:56 -0400 |
parents | 38516915ccaf |
children | e30113df8cf6 |
rev | line source |
---|---|
8 | 1 <macros> |
2 <xml name="requirements"> | |
3 <requirements> | |
4 <requirement type="package" version="2.22">bedtools</requirement> | |
5 <yield/> | |
6 </requirements> | |
7 </xml> | |
8 <token name="@WRAPPER_VERSION@">2.22</token> | |
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> | |
12
542d2008a462
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 344140b8df53b8b7024618bb04594607a045c03a
iuc
parents:
8
diff
changeset
|
18 <version_command>bedtools --version</version_command> |
8 | 19 </xml> |
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> | |
25 <xml name="overlap"> | |
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)"/> | |
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"> | |
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> | |
41 <when value="True"> | |
42 <param name="seed" type="integer" value="12345" label="Enter Seed" /> | |
43 </when> | |
44 <when value="False" /> | |
45 </conditional> | |
46 </xml> | |
47 <xml name="split"> | |
12
542d2008a462
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 344140b8df53b8b7024618bb04594607a045c03a
iuc
parents:
8
diff
changeset
|
48 <param name="split" type="boolean" checked="false" truevalue="-split" falsevalue="" |
542d2008a462
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 344140b8df53b8b7024618bb04594607a045c03a
iuc
parents:
8
diff
changeset
|
49 label="Treat split/spliced BAM or BED12 entries as distinct BED intervals when computing coverage." |
8 | 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)" /> |
51 </xml> | |
52 <xml name="genome"> | |
53 <param format="tabular" name="genome" type="data" label="Genome file" /> | |
54 <!--TODO: make use of: ${chromInfo} --> | |
55 </xml> | |
56 <xml name="addition"> | |
57 <conditional name="addition"> | |
58 <param name="addition_select" type="select" label="Choose what you want to do"> | |
59 <option value="b" selected="True">Increase the BED/GFF/VCF entry by the same number base pairs in each direction.</option> | |
60 <option value="lr">Increase by Start Coordinate and End Coordinate</option> | |
61 </param> | |
62 <when value="b"> | |
63 <param name="b" value="1" label="Number of base pairs" type="integer" /> | |
64 </when> | |
65 <when value="lr"> | |
66 <param name="l" type="integer" value="0" label="The number of base pairs to subtract from the start coordinate" /> | |
67 <param name="r" type="integer" value="0" label="The number of base pairs to add to the end coordinate" /> | |
68 </when> | |
69 </conditional> | |
70 </xml> | |
71 <xml name="print_header"> | |
72 <param name="header" type="boolean" checked="False" truevalue="-header" falsevalue="" | |
73 label="Print the header from the A file prior to results" help="(-header)" /> | |
74 </xml> | |
75 <!-- TODO this is currently not used, but we should make use of it --> | |
76 <xml name="genome_validator"> | |
77 <validator type="unspecified_build" /> | |
78 <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." /> | |
79 </xml> | |
80 | |
81 <!-- ToDo column_picker --> | |
82 <xml name="choose_columns"> | |
83 <param name="cols" type="text" value="" | |
84 label="Specify the column(s) that should be summarized" | |
85 help="comma separated (-c)"> | |
86 <sanitizer invalid_char=""> | |
87 <valid initial="string.digits"><add value=","/></valid> | |
88 </sanitizer> | |
89 </param> | |
90 </xml> | |
91 | |
15
ce2f9b4e4e7c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 0d7fcf576fd797327af90538b216473ef13daa41
iuc
parents:
14
diff
changeset
|
92 <xml name="choose_column"> |
ce2f9b4e4e7c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 0d7fcf576fd797327af90538b216473ef13daa41
iuc
parents:
14
diff
changeset
|
93 <param name="col" type="data_column" data_ref="inputA" label="Specify the column(s) that should be summarized" help="(-c)" /> |
ce2f9b4e4e7c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 0d7fcf576fd797327af90538b216473ef13daa41
iuc
parents:
14
diff
changeset
|
94 </xml> |
ce2f9b4e4e7c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 0d7fcf576fd797327af90538b216473ef13daa41
iuc
parents:
14
diff
changeset
|
95 |
8 | 96 <token name="@C_AND_O_ARGUMENT@"> |
97 #set $col = list() | |
98 #set $op = list() | |
99 #for $item in $c_and_o_argument_repeat: | |
100 #silent $col.append( str($item.col) ) | |
101 #silent $op.append( str($item.operation) ) | |
102 #end for | |
103 #if $col: | |
104 -c #echo ','.join($col)# | |
105 -o #echo ','.join($op)# | |
106 #end if | |
107 </token> | |
108 | |
109 <xml name="c_and_o_argument"> | |
110 <repeat name="c_and_o_argument_repeat" title="Applying operations to columns from merged intervals" min="0"> | |
15
ce2f9b4e4e7c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 0d7fcf576fd797327af90538b216473ef13daa41
iuc
parents:
14
diff
changeset
|
111 <expand macro="choose_column" /> |
8 | 112 <expand macro="choose_operations"> |
113 <expand macro="math_options" /> | |
114 <expand macro="additional_math_options" /> | |
115 </expand> | |
116 </repeat> | |
117 </xml> | |
118 | |
119 | |
120 <xml name="choose_operations"> | |
121 <param name="operation" type="select" label="Specify the operation"> | |
122 <yield /> | |
123 </param> | |
124 </xml> | |
125 | |
126 <xml name="math_options"> | |
127 <option value="sum" selected="True">Sum - numeric only</option> | |
128 <option value="min">Min - numeric only</option> | |
129 <option value="max">Max - numeric only</option> | |
130 <option value="absmin">AbsMin - numeric only</option> | |
131 <option value="absmax">AbsMax - numeric only</option> | |
132 <option value="mean">Mean - numeric only</option> | |
133 <option value="median">Median - numeric only</option> | |
134 <option value="mode">Mode - numeric only</option> | |
135 <option value="antimode">Antimode - numeric only</option> | |
136 <option value="collapse">collapse (i.e., print a comma separated list) - numeric or text</option> | |
137 </xml> | |
138 <xml name="additional_math_options"> | |
139 <option value="count">Count - numeric or text</option> | |
140 <option value="count_disctinct">Count Distinct - numeric or text</option> | |
141 <option value="distinct">distinct (i.e., print a comma separated list) - numeric or text</option> | |
142 <option value="concat">concat (i.e., print a comma separated list) - numeric or text</option> | |
143 </xml> | |
144 <token name="@REFERENCES@"> | |
145 <![CDATA[ | |
146 ------ | |
147 | |
148 This tool is part of the `bedtools package`_ from the `Quinlan laboratory`_. | |
149 | |
150 .. _bedtools package: https://github.com/arq5x/bedtools2 | |
151 .. _Quinlan laboratory: http://cphg.virginia.edu/quinlan/ | |
152 | |
153 | |
154 **Citation** | |
155 | |
156 If you use this tool in Galaxy, please cite: | |
157 | |
158 Bjoern A. Gruening (2014), `Galaxy wrapper <https://github.com/bgruening/galaxytools>`_ | |
159 ]]> | |
160 </token> | |
161 <xml name="citations"> | |
162 <citations> | |
163 <citation type="doi">10.1093/bioinformatics/btq033</citation> | |
164 <yield /> | |
165 </citations> | |
166 </xml> | |
167 </macros> |