diff shuffleBed.xml @ 34:dde39ba9c031 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
author iuc
date Mon, 29 Apr 2019 05:55:48 -0400
parents 4f7a5ccd2ae9
children ce3c7f062223
line wrap: on
line diff
--- a/shuffleBed.xml	Mon Dec 17 14:23:31 2018 -0500
+++ b/shuffleBed.xml	Mon Apr 29 05:55:48 2019 -0400
@@ -1,68 +1,68 @@
-<tool id="bedtools_shufflebed" name="bedtools ShuffleBed" version="@WRAPPER_VERSION@">
+<tool id="bedtools_shufflebed" name="bedtools ShuffleBed" version="@TOOL_VERSION@">
     <description>randomly redistrubute intervals in a genome</description>
     <macros>
         <import>macros.xml</import>
     </macros>
     <expand macro="requirements" />
     <expand macro="stdio" />
-    <command>
-<![CDATA[
-        bedtools shuffle
-        -g @GENOME_FILE@
-        -i '$inputA'
-        $bedpe
-        #if str($seed.seed_choose) == "True":
-            -seed $seed.seed
-        #end if
-        #if str($add_bed.add_bed_select) == "not_be":
-            -excl $add_bed.excl
-            -f $add_bed.overlap
-        #elif str($add_bed.add_bed_select) == "be":
-            -incl $add_bed.incl
-        #end if
-        $chrom
-        $chromfirst
-        $no_overlap
-        $allow_beyond
-        -maxTries $maxtries
-        > '$output'
-]]>
-    </command>
+    <command><![CDATA[
+bedtools shuffle
+-g @GENOME_FILE@
+-i '$inputA'
+$bedpe
+#if str($seed.seed_choose) == "True":
+    -seed $seed.seed
+#end if
+#if str($add_bed.add_bed_select) == "not_be":
+    -excl $add_bed.excl
+    #if str($add_bed.overlap)
+        -f $add_bed.overlap
+    #end if
+#elif str($add_bed.add_bed_select) == "be":
+    -incl $add_bed.incl
+#end if
+$chrom
+$chromfirst
+$no_overlap
+$allow_beyond
+-maxTries $maxtries
+> '$output'
+    ]]></command>
     <inputs>
-        <param format="@STD_BEDTOOLS_INPUTS@" name="inputA" type="data" label="@STD_BEDTOOLS_INPUT_LABEL@ file"/>
-        <param name="bedpe" type="boolean" label="The file is in BEDPE format" checked="False" truevalue="-bedpe" falsevalue="" />
+        <param name="inputA" argument="-i" type="data" format="@STD_BEDTOOLS_INPUTS@" label="@STD_BEDTOOLS_INPUT_LABEL@ file"/>
+        <param argument="-bedpe" type="boolean" truevalue="-bedpe" falsevalue="" checked="false" label="The file is in BEDPE format" />
         <expand macro="input_conditional_genome_file" />
-        <param name="chrom" type="boolean" checked="False" truevalue="-chrom" falsevalue=""
+        <param argument="-chrom" type="boolean" truevalue="-chrom" falsevalue="" checked="false"
             label="Keep features in the input file on the same chromosome"
-            help="Solely permute their location on the chromosome. By default, both the chromosome and position are randomly chosen. (-chrom)" />
+            help="Solely permute their location on the chromosome. By default, both the chromosome and position are randomly chosen." />
         <expand macro="seed" />
         <conditional name="add_bed">
             <param name="add_bed_select" type="select" label="Choose an additional BED file">
-                <option value="no" selected="True">No additional BED file</option>
+                <option value="no" selected="true">No additional BED file</option>
                 <option value="not_be">Coordinates in which features from -i should not be placed?</option>
                 <option value="be">coordinates in which features from -i should be placed?</option>
             </param>
             <when value="no" />
             <when value="not_be">
-                <param name="excl" type="data" format="bed" label="Choose File" />
-                <expand macro="overlap" />
+                <param argument="-excl" type="data" format="bed" label="Choose File" />
+                <expand macro="fraction" name="overlap" argument="-f" label="Maximum overlap (as a fraction of the -i feature) with an -excl feature that is tolerated before searching for a new, randomized locus" />
             </when>
             <when value="be">
-                <param name="incl" type="data" format="bed" label="Choose File" />
+                <param argument="-incl" type="data" format="bed" label="Choose File" />
             </when>
         </conditional>
-        <param name="chromfirst" type="boolean" checked="False" truevalue="-chromFirst" falsevalue="" 
+        <param name="chromfirst" argument="-chromFirst" type="boolean" truevalue="-chromFirst" falsevalue="" checked="false"
             label="Choose chromosome first"
-            help="Instead of choosing a position randomly among the entire genome (the default), first choose a chrom randomly, and then choose a random start coordinate on that chrom. This leads to features being ~uniformly distributed among the chroms, as opposed to features being distribute as a function of chrom size. (-chromFirst)" />
-        <param name="maxtries" type="integer" value="1000"
-            label="Max. number of attempts to find a home for a shuffled interval in the presence of -incl or -excl" help="(-maxTries)" />
-        <param name="no_overlap" type="boolean" checked="False" truevalue="-noOverlapping" falsevalue=""
-            label="Don’t allow shuffled intervals to overlap" help="(-noOverlapping)" />
-        <param name="allow_beyond" type="boolean" checked="False" truevalue="-allowBeyondChromEnd" falsevalue=""
-            label="Allow the original the length of the original records to extebd beyond the length of the chromosome" help="(-allowBeyondChromEnd)" />
+            help="Instead of choosing a position randomly among the entire genome (the default), first choose a chrom randomly, and then choose a random start coordinate on that chrom. This leads to features being ~uniformly distributed among the chroms, as opposed to features being distribute as a function of chrom size." />
+        <param name="maxtries" argument="-maxTries" type="integer" value="1000"
+            label="Max. number of attempts to find a home for a shuffled interval in the presence of -incl or -excl" />
+        <param name="no_overlap" argument="-noOverlapping" type="boolean" truevalue="-noOverlapping" falsevalue="" checked="false"
+            label="Don’t allow shuffled intervals to overlap" />
+        <param name="allow_beyond" argument="-allowBeyondChromEnd" type="boolean" truevalue="-allowBeyondChromEnd" falsevalue="" checked="false"
+            label="Allow the original the length of the original records to extebd beyond the length of the chromosome" />
     </inputs>
     <outputs>
-        <data format="bed" name="output" />
+        <data name="output" format="bed" />
     </outputs>
     <tests>
         <test>
@@ -102,8 +102,7 @@
             <output name="output" file="shuffleBed_result4.bed" ftype="bed" />
         </test>
     </tests>
-    <help>
-<![CDATA[
+    <help><![CDATA[
 **What it does**
 
 bedtools shuffle will randomly permute the genomic locations of a feature file among a genome defined in a genome file. One can also provide an “exclusions” @STD_BEDTOOLS_INPUT_LABEL@ file that lists regions where you do not want the permuted features to be placed. For example, one might want to prevent features from being placed in known genome gaps. shuffle is useful as a null basis against which to test the significance of associations of one feature with another.
@@ -111,7 +110,6 @@
 .. image:: $PATH_TO_IMAGES/shuffle-glyph.png
 
 @REFERENCES@
-]]>
-    </help>
+    ]]></help>
     <expand macro="citations" />
 </tool>