annotate macros.xml @ 48:2f457890d8c8 draft

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