annotate filter_columns.xml @ 0:e77c9484b2d0 draft default tip

Uploaded
author saskia-hiltemann
date Thu, 22 Oct 2015 09:18:30 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
1 <tool id="filter_columns" name="Filter Columns" version="1.2">
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
2
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
3 <description> filter file based on column values </description>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
4
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
5 <command interpreter="bash">
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
6 filter_columns.sh
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
7 --infile $infile
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
8 #for $f in $filters <!--get each var/mastervar file-->
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
9 --filter ${f.column},${f.condition},${f.value}
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
10 #end for
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
11 --outfile_rem $outputfile_removed
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
12 --outfile_ret $outputfile_retained
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
13 </command>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
14
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
15 <outputs>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
16 <data format="input" name="outputfile_removed" label="${sample} - Removed lines Column filter on ${on_string}" metadata_source="infile"/>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
17 <data format="input" name="outputfile_retained" label="${sample} - Retained lines Column filter on ${on_string}" metadata_source="infile"/>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
18 </outputs>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
19
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
20 <inputs>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
21
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
22 <param name="infile" type="data" label="Select input file" help="expects header lines to be indicated by # or > symbols. First line is always considered header line"/>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
23
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
24 <repeat name="filters" title="Filter" min="1" help="Multiple filters: lines removed if match any of the filters, not all (rules are OR'd, not AND'd)">
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
25 <param name="column" type="data_column" data_ref="infile" multiple="False" label="Select Column to filter on" />
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
26 <param name="condition" type="select" label="Remove line if column value.." help="you will receive both file with retained lines and file with removed lines">
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
27 <option value="nonempty"> non-empty </option>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
28 <option value="empty" > empty </option>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
29 <option value="equals" > equals (string or number) </option>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
30 <option value="nequals" > not equals (string or number)</option>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
31 <option value="contains"> contains (substring) </option>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
32 <option value="ncontains"> does not contain (substring) </option>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
33 <option value="gt" > greater than </option>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
34 <option value="ge" > greater than or equals </option>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
35 <option value="lt" > less than </option>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
36 <option value="le" > less than or equals </option>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
37 </param>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
38
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
39
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
40 <param name="value" type="text" value="" label="enter number or string unless above option was set to empty or nonempty"/>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
41 </repeat>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
42
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
43 <param name="sample" type="text" value="" label="Output File Name" help="Optional."/>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
44
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
45 </inputs>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
46
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
47 <help>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
48
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
49 **What it does**
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
50 Concatenates 2 files
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
51
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
52 </help>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
53 </tool>