Mercurial > repos > greg > gregs_filter
comparison 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 |
comparison
equal
deleted
inserted
replaced
2:24884dd48421 | 3:48edb538c102 |
---|---|
1 <tool id="Filter1" name="Filter (new behavior)" version="1.0.2"> | 1 <tool id="Filter1" name="Filter" version="3.3.0"> |
2 <description>data on any column using simple expressions</description> | 2 <description>data on any column using simple expressions</description> |
3 <command interpreter="python"> | 3 <command interpreter="python"> |
4 filtering.py $input $out_file1 "$cond" ${input.metadata.columns} "${input.metadata.column_types}" | 4 filtering.py $input $out_file1 "$cond" ${input.metadata.columns} "${input.metadata.column_types}" |
5 </command> | 5 </command> |
6 <inputs> | 6 <inputs> |
7 <param format="tabular" name="input" type="data" label="Filter" help="Query missing? See TIP below."/> | 7 <param format="tabular" name="input" type="data" label="Filter" help="Dataset missing? See TIP below."/> |
8 <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."> | 8 <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."> |
9 <validator type="empty_field" message="Enter a valid filtering condition, see syntax and examples below."/> | 9 <validator type="empty_field" message="Enter a valid filtering condition, see syntax and examples below."/> |
10 </param> | 10 </param> |
11 </inputs> | 11 </inputs> |
12 <outputs> | 12 <outputs> |
20 </test> | 20 </test> |
21 <test> | 21 <test> |
22 <param name="input" value="7.bed"/> | 22 <param name="input" value="7.bed"/> |
23 <param name="cond" value="c1=='chr1' and c3-c2>=2000 and c6=='+'"/> | 23 <param name="cond" value="c1=='chr1' and c3-c2>=2000 and c6=='+'"/> |
24 <output name="out_file1" file="filter1_test2.bed"/> | 24 <output name="out_file1" file="filter1_test2.bed"/> |
25 </test> | |
26 <!-- Test filtering of file with a variable number of columns. --> | |
27 <test> | |
28 <param name="input" value="filter1_in3.sam"/> | |
29 <param name="cond" value="c3=='chr1' and c5>5"/> | |
30 <output name="out_file1" file="filter1_test3.sam"/> | |
31 </test> | |
32 <test> | |
33 <param name="input" value="filter1_inbad.bed"/> | |
34 <param name="cond" value="c1=='chr22'"/> | |
35 <output name="out_file1" file="filter1_test4.bed"/> | |
25 </test> | 36 </test> |
26 </tests> | 37 </tests> |
27 <help> | 38 <help> |
28 | 39 |
29 .. class:: warningmark | 40 .. class:: warningmark |