diff macros.xml @ 17:44867b59dbf2 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit cf7a3674bc833bbd5fdd2ad02e724935ffc7a174
author iuc
date Tue, 05 Sep 2017 15:40:14 -0400
parents 304a594a7ef6
children a8eabd2838f6
line wrap: on
line diff
--- a/macros.xml	Fri Aug 18 15:33:08 2017 -0400
+++ b/macros.xml	Tue Sep 05 15:40:14 2017 -0400
@@ -49,10 +49,68 @@
             label="Treat split/spliced BAM or BED12 entries as distinct BED intervals when computing coverage."
             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)" />
     </xml>
-    <xml name="genome">
-        <param format="tabular" name="genome" type="data" label="Genome file" />
-        <!--TODO: make use of: ${chromInfo} -->
+    <xml name="input_conditional_genome_file">
+        <conditional name="genome_file_opts">
+            <param name="genome_file_opts_selector" type="select" label="Genome file">
+                <option value="loc" selected="True">Locally installed Genome file</option>
+                <option value="hist">Genome file from your history</option>
+            </param>
+            <when value="loc">
+                <param name="genome" type="select" multiple="false" label="Genome file">
+                    <options from_data_table="__dbkeys__" />
+                </param>
+            </when>
+            <when value="hist">
+                <param name="genome" type="data" format="tabular" label="Genome file" />
+            </when>
+        </conditional>
     </xml>
+    <token name="@GENOME_FILE@">
+#if $genome_file_opts.genome_file_opts_selector == "loc":
+    '$genome_file_opts.genome.fields.len_path'
+#elif $genome_file_opts.genome_file_opts_selector == "hist":
+    '$genome_file_opts.genome'
+#end if
+    </token>
+    <token name="@GENOME_FILE_MAPBED@">
+#if $genome.genome_choose == "-g":
+    #if $genome.genome_file_opts.genome_file_opts_selector == "loc":
+        -g '$genome.genome_file_opts.genome.fields.len_path'
+    #elif $genome.genome_file_opts.genome_file_opts_selector == "hist":
+        -g '$genome.genome_file_opts.genome'
+    #end if
+#end if
+    </token>
+    <token name="@GENOME_FILE_MAKEWINDOWS@">
+#if $type.type_select == "genome":
+    #if $type.genome_file_opts.genome_file_opts_selector == "loc":
+        -g '$type.genome_file_opts.genome.fields.len_path'
+    #elif $type.genome_file_opts.genome_file_opts_selector == "hist":
+        -g '$type.genome_file_opts.genome'
+    #end if
+#end if
+    </token>
+    <token name="@GENOME_FILE_UNION@">
+#if $empty.empty_selector == "-empty":
+    #if $empty.genome_file_opts.genome_file_opts_selector == "loc":
+        -g '$empty.genome_file_opts.genome.fields.len_path'
+    #elif $empty.genome_file_opts.genome_file_opts_selector == "hist":
+        -g '$empty.genome_file_opts.genome'
+    #end if
+#end if
+    </token>
+    <token name="@GENOME_FILE_COVERAGE@">
+#if $input_type.input_type_select == "bed":
+    -i '$input_type.input'
+    #if $input_type.genome_file_opts.genome_file_opts_selector == "loc":
+        -g '$input_type.genome_file_opts.genome.fields.len_path'
+    #elif $input_type.genome_file_opts.genome_file_opts_selector == "hist":
+        -g '$input_type.genome_file_opts.genome'
+    #end if
+#elif $input_type.input_type_select == "bam":
+    -ibam '$input_type.input'
+#end if
+    </token>
     <xml name="closest_D_option">
         <param name="iu" type="boolean" checked="false" truevalue="-iu" falsevalue=""
             label="Ignore features in B that are upstream of features in A"