annotate bedtools_genomecov/macros.xml @ 10:4371d34bfd84 draft

Uploaded
author jackcurragh
date Fri, 27 Jan 2023 09:42:28 +0000
parents 59d5cc7095f7
children e54b9793e28d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
1 <macros>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
2 <xml name="requirements">
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
3 <requirements>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
4 <requirement type="package" version="@TOOL_VERSION@">bedtools</requirement>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
5 <yield/>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
6 </requirements>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
7 </xml>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
8 <xml name="bio_tools">
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
9 <xrefs>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
10 <xref type="bio.tools">bedtools</xref>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
11 </xrefs>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
12 </xml>
10
4371d34bfd84 Uploaded
jackcurragh
parents: 6
diff changeset
13 <token name="@TOOL_VERSION@">2.30.1</token>
5
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
14 <token name="@SAMTOOLS_VERSION@">1.9</token>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
15 <token name="@STD_BEDTOOLS_INPUTS@">bed,bedgraph,gff,vcf,encodepeak</token>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
16 <token name="@STD_BEDTOOLS_INPUT_LABEL@">BED/bedGraph/GFF/VCF/EncodePeak</token>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
17 <token name="@PROFILE@">20.05</token>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
18 <xml name="stdio">
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
19 <stdio>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
20 <!-- Anything other than zero is an error -->
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
21 <exit_code range="1:" />
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
22 <exit_code range=":-1" />
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
23 <!-- In case the return code has not been set propery check stderr too -->
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
24 <regex match="Error:" />
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
25 <regex match="Exception:" />
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
26 </stdio>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
27 <version_command>bedtools --version</version_command>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
28 </xml>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
29 <xml name="reciprocal">
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
30 <param name="reciprocal" argument="-r" type="select" label="Require that the fraction of overlap be reciprocal for A and B" 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.">
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
31 <option value="" selected="true">No</option>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
32 <option value="-r">Yes</option>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
33 </param>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
34 </xml>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
35 <xml name="fraction" token_name="" token_argument="" token_label="" token_help="" >
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
36 <param name="@NAME@" argument="@ARGUMENT@" type="float" min="0" max="1" optional="true" label="@LABEL@" help="@HELP@" />
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
37 </xml>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
38 <xml name="overlap" token_name="overlap" token_argument="-f" token_fracof="A">
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
39 <expand macro="fraction" name="@NAME@" argument="@ARGUMENT@" label="Minimum overlap required as a fraction of @FRACOF@" help="Default is 1E-9, i.e. 1bp."/>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
40 </xml>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
41 <token name="@OVERLAP@"><![CDATA[
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
42 #if str($overlap):
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
43 -f $overlap
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
44 #end if
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
45 ]]></token>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
46 <xml name="strand2">
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
47 <param name="strand" type="select" label="Calculation based on strandedness?">
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
48 <option value="" selected="true">Overlaps on either strand</option>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
49 <option value="-s">Only overlaps occurring on the **same** strand.</option>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
50 <option value="-S">Only overlaps occurring on the **opposite** strand.</option>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
51 </param>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
52 </xml>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
53 <xml name="seed">
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
54 <conditional name="seed">
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
55 <param name="seed_choose" type="select" label="Choose Seed?">
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
56 <option value="False" selected="true">Random Shuffling</option>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
57 <option value="True">Choose fixed seed</option>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
58 </param>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
59 <when value="True">
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
60 <param argument="-seed" type="integer" value="12345" label="Enter Seed" />
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
61 </when>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
62 <when value="False" />
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
63 </conditional>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
64 </xml>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
65 <xml name="split">
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
66 <param argument="-split" type="boolean" truevalue="-split" falsevalue="" checked="false"
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
67 label="Treat split/spliced BAM or BED12 entries as distinct BED intervals when computing coverage."
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
68 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." />
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
69 </xml>
6
59d5cc7095f7 Uploaded
jackcurragh
parents: 5
diff changeset
70 <xml name="input_conditional_genome_file" token_optional="false" token_help="">
5
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
71 <conditional name="genome_file_opts">
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
72 <param name="genome_file_opts_selector" type="select" label="Genome file" help="@HELP@">
6
59d5cc7095f7 Uploaded
jackcurragh
parents: 5
diff changeset
73 <!-- <option value="loc" selected="true">Locally installed Genome file</option> -->
5
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
74 <option value="hist">Genome file from your history</option>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
75 </param>
6
59d5cc7095f7 Uploaded
jackcurragh
parents: 5
diff changeset
76 <!-- <when value="loc">
5
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
77 <param name="genome" type="select" optional="@OPTIONAL@" multiple="false" label="Genome file">
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
78 <options from_data_table="__dbkeys__" />
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
79 </param>
6
59d5cc7095f7 Uploaded
jackcurragh
parents: 5
diff changeset
80 </when> -->
5
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
81 <when value="hist">
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
82 <param name="genome" type="data" optional="@OPTIONAL@" format="tabular" label="Genome file" />
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
83 </when>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
84 </conditional>
6
59d5cc7095f7 Uploaded
jackcurragh
parents: 5
diff changeset
85 </xml>
5
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
86 <token name="@GENOME_FILE@">
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
87 #if $genome_file_opts.genome
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
88 -g
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
89 #if $genome_file_opts.genome_file_opts_selector == "loc":
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
90 '$genome_file_opts.genome.fields.len_path'
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
91 #elif $genome_file_opts.genome_file_opts_selector == "hist":
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
92 '$genome_file_opts.genome'
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
93 #end if
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
94 #end if
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
95 </token>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
96 <token name="@GENOME_FILE_MAKEWINDOWS@">
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
97 #if $type.type_select == "genome":
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
98 #if $type.genome_file_opts.genome_file_opts_selector == "loc":
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
99 -g '$type.genome_file_opts.genome.fields.len_path'
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
100 #elif $type.genome_file_opts.genome_file_opts_selector == "hist":
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
101 -g '$type.genome_file_opts.genome'
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
102 #end if
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
103 #end if
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
104 </token>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
105 <token name="@GENOME_FILE_UNION@">
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
106 #if $empty.empty_selector == "-empty":
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
107 #if $empty.genome_file_opts.genome_file_opts_selector == "loc":
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
108 -g '$empty.genome_file_opts.genome.fields.len_path'
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
109 #elif $empty.genome_file_opts.genome_file_opts_selector == "hist":
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
110 -g '$empty.genome_file_opts.genome'
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
111 #end if
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
112 #end if
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
113 </token>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
114 <token name="@GENOME_FILE_COVERAGE@">
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
115 #if $input_type.input_type_select == "bam":
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
116 -ibam '$input_type.input'
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
117 #else:
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
118 -i '$input_type.input'
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
119 #if $input_type.genome_file_opts.genome_file_opts_selector == "loc":
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
120 -g '$input_type.genome_file_opts.genome.fields.len_path'
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
121 #elif $input_type.genome_file_opts.genome_file_opts_selector == "hist":
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
122 -g '$input_type.genome_file_opts.genome'
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
123 #end if
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
124 #end if
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
125 </token>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
126 <xml name="closest_D_option">
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
127 <param argument="-iu" type="boolean" truevalue="-iu" falsevalue="" checked="false"
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
128 label="Ignore features in B that are upstream of features in A"
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
129 help="This option requires -D and follows its orientation rules for determining what is 'upstream'" />
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
130
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
131 <param argument="-id" type="boolean" truevalue="-id" falsevalue="" checked="false"
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
132 label="Ignore features in B that are downstream of features in A"
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
133 help="This option requires -D and follows its orientation rules for determining what is 'downstream'" />
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
134
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
135 <param argument="-fu" type="boolean" truevalue="-fu" falsevalue="" checked="false"
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
136 label="Choose first from features in B that are upstream of features in A"
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
137 help="This option requires -D and follows its orientation rules for determining what is 'upstream'" />
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
138
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
139 <param argument="-fd" type="boolean" truevalue="-fd" falsevalue="" checked="false"
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
140 label="Choose first from features in B that are downstream of features in A"
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
141 help="This option requires -D and follows its orientation rules for determining what is 'downstream'" />
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
142 </xml>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
143 <xml name="addition">
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
144 <conditional name="addition">
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
145 <param name="addition_select" type="select" label="Choose what you want to do">
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
146 <option value="b" selected="true">Increase the @STD_BEDTOOLS_INPUT_LABEL@ entry by the same number base pairs in each direction.</option>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
147 <option value="lr">Increase by Start Coordinate and End Coordinate</option>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
148 </param>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
149 <when value="b">
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
150 <param name="b" value="1" label="Number of base pairs" type="integer" />
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
151 </when>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
152 <when value="lr">
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
153 <param name="l" type="integer" value="0" label="The number of base pairs to subtract from the start coordinate" />
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
154 <param name="r" type="integer" value="0" label="The number of base pairs to add to the end coordinate" />
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
155 </when>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
156 </conditional>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
157 </xml>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
158 <xml name="print_header">
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
159 <param argument="-header" type="boolean" truevalue="-header" falsevalue="" checked="false"
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
160 label="Print the header from the A file prior to results" />
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
161 </xml>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
162 <!-- TODO this is currently not used, but we should make use of it -->
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
163 <xml name="genome_validator">
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
164 <validator type="unspecified_build" />
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
165 <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." />
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
166 </xml>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
167
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
168 <!-- ToDo column_picker -->
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
169 <xml name="choose_columns">
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
170 <param name="cols" argument="-c" type="text" value=""
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
171 label="Specify the column(s) that should be summarized"
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
172 help="Comma separated">
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
173 <sanitizer invalid_char="">
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
174 <valid initial="string.digits"><add value=","/></valid>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
175 </sanitizer>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
176 </param>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
177 </xml>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
178
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
179 <token name="@C_AND_O_ARGUMENT@">
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
180 #set $col = list()
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
181 #set $op = list()
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
182 #for $item in $c_and_o_argument_repeat:
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
183 #silent $col.append( str($item.col) )
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
184 #silent $op.append( str($item.operation) )
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
185 #end for
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
186 #if $col:
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
187 -c #echo ','.join($col)#
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
188 -o #echo ','.join($op)#
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
189 #end if
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
190 </token>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
191
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
192 <xml name="c_and_o_argument">
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
193 <repeat name="c_and_o_argument_repeat" title="Applying operations to columns from merged intervals" min="0">
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
194 <yield />
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
195 <expand macro="choose_operations">
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
196 <expand macro="math_options" />
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
197 <expand macro="additional_math_options" />
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
198 </expand>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
199 </repeat>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
200 </xml>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
201
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
202 <xml name="choose_operations">
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
203 <param name="operation" type="select" label="Specify the operation">
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
204 <yield />
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
205 </param>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
206 </xml>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
207
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
208 <xml name="math_options">
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
209 <option value="sum" selected="true">Sum - numeric only</option>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
210 <option value="min">Min - numeric only</option>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
211 <option value="max">Max - numeric only</option>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
212 <option value="absmin">AbsMin - numeric only</option>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
213 <option value="absmax">AbsMax - numeric only</option>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
214 <option value="mean">Mean - numeric only</option>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
215 <option value="median">Median - numeric only</option>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
216 <option value="mode">Mode - numeric only</option>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
217 <option value="antimode">Antimode - numeric only</option>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
218 <option value="collapse">collapse (i.e., print a comma separated list) - numeric or text</option>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
219 </xml>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
220 <xml name="additional_math_options">
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
221 <option value="count">Count - numeric or text</option>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
222 <option value="count_disctinct">Count Distinct - numeric or text</option>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
223 <option value="distinct">distinct (i.e., print a comma separated list) - numeric or text</option>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
224 <option value="concat">concat (i.e., print a comma separated list) - numeric or text</option>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
225 </xml>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
226 <xml name="sorted">
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
227 <!-- -sorted -g -->
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
228 <param argument="-sorted" type="boolean" truevalue="-sorted" falsevalue="" checked="false"
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
229 label="For coordinate sorted input file the more efficient sweeping algorithm is enabled."/>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
230 </xml>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
231 <token name="@SORTED@">
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
232 <![CDATA[
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
233 $sorted
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
234 #if str($sorted) != '':
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
235 #if str($reduce_or_iterate.reduce_or_iterate_selector) == 'iterate' and $reduce_or_iterate.inputB.is_of_type('bam'):
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
236 -g <(samtools view -H $reduce_or_iterate.inputB | tr ':' '\t' | grep SN | cut -f 3,5)
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
237 #else if str($reduce_or_iterate.reduce_or_iterate_selector) == 'reduce' and str($reduce_or_iterate.inputB) != 'None' and $reduce_or_iterate.inputB[0].is_of_type('bam'):
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
238 -g <(samtools view -H $reduce_or_iterate.inputB[0] | tr ':' '\t' | grep SN | cut -f 3,5)
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
239 #end if
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
240 #end if
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
241 ]]>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
242 </token>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
243 <token name="@REFERENCES@">
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
244 <![CDATA[
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
245 ------
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
246
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
247 This tool is part of the `bedtools package`_ from the `Quinlan laboratory`_.
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
248
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
249 .. _bedtools package: https://github.com/arq5x/bedtools2
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
250 .. _Quinlan laboratory: http://quinlanlab.org
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
251
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
252
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
253 **Citation**
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
254
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
255 If you use this tool in Galaxy, please cite:
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
256
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
257 Bjoern A. Gruening (2014), `Galaxy wrapper <https://github.com/bgruening/galaxytools>`_
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
258 ]]>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
259 </token>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
260 <xml name="citations">
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
261 <citations>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
262 <citation type="doi">10.1093/bioinformatics/btq033</citation>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
263 <yield />
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
264 </citations>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
265 </xml>
f7beecae0315 Uploaded
jackcurragh
parents:
diff changeset
266 </macros>