diff filtering.xml @ 3:48edb538c102 draft default tip

Uploaded 3.3.0
author greg
date Wed, 03 Oct 2012 13:22:53 -0400
parents 8d212f15666b
children
line wrap: on
line diff
--- a/filtering.xml	Tue Aug 07 09:20:08 2012 -0400
+++ b/filtering.xml	Wed Oct 03 13:22:53 2012 -0400
@@ -1,10 +1,10 @@
-<tool id="Filter1" name="Filter (new behavior)" version="1.0.2">
+<tool id="Filter1" name="Filter" version="3.3.0">
   <description>data on any column using simple expressions</description>
   <command interpreter="python">
     filtering.py $input $out_file1 "$cond" ${input.metadata.columns} "${input.metadata.column_types}"
   </command>
   <inputs>
-    <param format="tabular" name="input" type="data" label="Filter" help="Query missing? See TIP below."/>
+    <param format="tabular" name="input" type="data" label="Filter" help="Dataset missing? See TIP below."/>
     <param name="cond" size="40" type="text" value="c1=='chr22'" label="With following condition" help="Double equal signs, ==, must be used as shown above. To filter for an arbitrary string, use the Select tool.">
       <validator type="empty_field" message="Enter a valid filtering condition, see syntax and examples below."/>
     </param>
@@ -23,6 +23,17 @@
       <param name="cond" value="c1=='chr1' and c3-c2>=2000 and c6=='+'"/>
       <output name="out_file1" file="filter1_test2.bed"/>
     </test>
+    <!-- Test filtering of file with a variable number of columns. -->
+    <test>
+      <param name="input" value="filter1_in3.sam"/>
+      <param name="cond" value="c3=='chr1' and c5>5"/>
+      <output name="out_file1" file="filter1_test3.sam"/>
+    </test>
+    <test>
+      <param name="input" value="filter1_inbad.bed"/>
+      <param name="cond" value="c1=='chr22'"/>
+      <output name="out_file1" file="filter1_test4.bed"/>
+    </test>
   </tests>
   <help>