0
|
1 <?xml version="1.0"?>
|
|
2 <tool id="roi_filter" name="ROI Filter">
|
|
3 <description>Filter ROI files</description>
|
|
4
|
|
5 <command interpreter="bash">
|
|
6 roi_filter.sh $numeric -c $column -o $operator -v $value <$input >$output
|
|
7 </command>
|
|
8
|
|
9 <!--
|
|
10 Input Files and Parameters
|
|
11 -->
|
|
12 <inputs>
|
|
13 <param name="input" format="roi" type="data" label="ROI file to filter." />
|
|
14
|
|
15 <param name="column" type="integer" label="column (starts with 1)" value="5" />
|
|
16
|
|
17 <param name="operator" type="select" label="operator">
|
|
18 <option value="gt" selected="true">></option>
|
|
19 <option value="lt"><</option>
|
|
20 <option value="geq">>=</option>
|
|
21 <option value="leq"><=</option>
|
|
22 <option value="eq">==</option>
|
|
23 <option value="neq">!=</option>
|
|
24 </param>
|
|
25
|
|
26 <param name="value" type="text" label="value" value="100" />
|
|
27
|
|
28 <param name="numeric" type="boolean" label="compare as number" checked="true" truevalue="-n" falsevalue="" />
|
|
29 </inputs>
|
|
30
|
|
31 <!--
|
8
|
32 Output Files
|
|
33 -->
|
|
34 <outputs>
|
|
35 <data name="output" format="roi" label="${input.name}_sorted_${by}" />
|
|
36 </outputs>
|
|
37
|
|
38 <!--
|
0
|
39 Recognize errors by return code and not output to stderr.
|
|
40 -->
|
|
41 <stdio>
|
|
42 <exit_code range="1:" level="fatal" />
|
|
43 <exit_code range=":-1" level="fatal" />
|
|
44 </stdio>
|
|
45
|
|
46 <!--
|
|
47 Tool Help
|
|
48 -->
|
|
49 <help>No help yet.</help>
|
|
50 </tool>
|