diff overlapBed.xml @ 1:82aac94b06c3 draft

Uploaded
author iuc
date Thu, 08 Jan 2015 14:25:51 -0500
parents b8348686a0b9
children 607c0576c6ab
line wrap: on
line diff
--- a/overlapBed.xml	Tue Nov 04 01:45:04 2014 -0500
+++ b/overlapBed.xml	Thu Jan 08 14:25:51 2015 -0500
@@ -6,25 +6,37 @@
     <expand macro="requirements" />
     <expand macro="stdio" />
     <command>
-        overlap
-        -i $inputA
+<![CDATA[
+        bedtools overlap
+        -i $input
         -cols $cols
-        &gt; $output
+        > $output
+]]>
     </command>
     <inputs>
-        <param format="bed,vcf,gff,gff3" name="inputA" type="data" label="BED/VCF/GFF file"/>
-        <param name="cols" type="text" value="" area="True" size="20x10" label="Specify the columns (1-based) for the starts and ends of the features for which you’d like to compute the overlap/distance. The columns must be listed in the following order: start1,end1,start2,end2" />
+        <param format="bed,vcf,gff,gff3" name="input" type="data" label="BED/VCF/GFF file"/>
+        <param name="cols" type="data_column" multiple="True" data_ref="input"
+            label="Specify the columns for the starts and ends of the features for which you’d like to compute the overlap/distance"
+            help="The columns must be listed in the following order: start1,end1,start2,end2" />
     </inputs>
     <outputs>
-        <data format_source="inputA" name="output" metadata_source="inputA" label="Overlap of ${inputA.name}"/>
+        <data format_source="input" name="output" metadata_source="input" label="Overlap of ${input.name}"/>
     </outputs>
+    <tests>
+        <test>
+            <param name="input" value="windowBed_result1.bed" ftype="bed" />
+            <param name="cols" value="2,3,5,6" />
+            <output name="output" file="overlapBed_result1.bed" ftype="bed" />
+        </test>
+    </tests>
     <help>
-
+<![CDATA[
 **What it does**
 
 overlap computes the amount of overlap (in the case of positive values) or distance (in the case of negative values) between feature coordinates occurring on the same input line and reports the result at the end of the same line. In this way, it is a useful method for computing custom overlap scores from the output of other BEDTools.
 
 @REFERENCES@
+]]>
     </help>
     <expand macro="citations" />
 </tool>