diff tac.xml @ 6:8928e6d1e7ba draft

Uploaded
author bgruening
date Thu, 08 Jan 2015 09:07:31 -0500
parents 56e80527c482
children d64eace4f9f3
line wrap: on
line diff
--- a/tac.xml	Wed Jan 07 11:15:41 2015 -0500
+++ b/tac.xml	Thu Jan 08 09:07:31 2015 -0500
@@ -11,18 +11,20 @@
             #if str($separator.separator_select) == "yes":
                 $separator.before
                 $separator.regex
-                $separator.separator_string
+                #if $separator.separator_string:
+                    "$separator.separator_string"
+                #end if
             #end if
-            "$input"
+            "$infile"
         > "$outfile"
 ]]>
     </command>
     <inputs>
-        <param name="input" type="data" format="txt" label="Input file"/>
+        <param name="infile" type="data" format="txt" label="Input file"/>
         <conditional name="separator">
             <param name="separator_select" type="select" label="Do you want to use a separator other than newline?">
+                <option value="no">No</option>
                 <option value="yes">Yes</option>
-                <option value="no">No</option>
             </param>
             <when value="no" />
             <when value="yes">
@@ -36,15 +38,19 @@
         </conditional>
     </inputs>
     <outputs>
-        <data name="outfile" format="input" metadata_source="input"/>
+        <data name="outfile" format_source="infile" metadata_source="infile"/>
     </outputs>
     <tests>
         <test>
-            <param name="input" value="1.bed" ftype="txt"/>
-            <param name="before" value=""/>
-            <param name="regex" value=""/>
+            <param name="infile" value="1.bed"/>
             <output name="outfile" file="tac_result1.txt"/>
         </test>
+        <test>
+            <param name="infile" value="1.bed"/>
+            <param name="separator_select" value="yes"/>
+            <param name="before" value="True"/>
+            <output name="outfile" file="tac_result2.txt"/>
+        </test>
     </tests>
     <help>
 <![CDATA[