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