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