annotate filter_kw_val.xml @ 7:6f32c1e12572 draft default tip

planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
author proteore
date Fri, 01 Jun 2018 11:10:47 -0400
parents 1e9911190142
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
593b8a1b2a7b planemo upload commit f338a1cf9a782938c228f9bd0ea19ef22eec35d8-dirty
proteore
parents: 2
diff changeset
1 <tool id="MQoutputfilter" name="Filter by keywords or numerical value" version="0.1.0">
4
2c1012e0a628 planemo upload commit f23adbff4edf77bde1fe742f7bd6dcc7ae0fbb8e-dirty
proteore
parents: 3
diff changeset
2 <description></description>
0
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
3 <requirements>
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
4 </requirements>
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
5 <stdio>
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
6 <exit_code range="1:" />
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
7 </stdio>
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
8 <command><![CDATA[
1
d29e469b6b20 planemo upload commit 5774fd6a5a746f36f6bf4671a51a39ea2b978300-dirty
proteore
parents: 0
diff changeset
9 python $__tool_directory__/filter_kw_val.py
d29e469b6b20 planemo upload commit 5774fd6a5a746f36f6bf4671a51a39ea2b978300-dirty
proteore
parents: 0
diff changeset
10 -i "$input1,$header"
0
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
11 -o "$output1"
7
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
12 --filtered_file "$filtered_file"
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
13 --operator "$operator"
0
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
14
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
15 ## Keywords
7
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
16 #for $key in $keyword
0
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
17 #if $key.k.kw != "None"
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
18 #if $key.k.kw == "text"
1
d29e469b6b20 planemo upload commit 5774fd6a5a746f36f6bf4671a51a39ea2b978300-dirty
proteore
parents: 0
diff changeset
19 --kw "$key.k.txt" "$key.ncol" "$key.match"
0
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
20 #else if $key.k.kw == "file"
1
d29e469b6b20 planemo upload commit 5774fd6a5a746f36f6bf4671a51a39ea2b978300-dirty
proteore
parents: 0
diff changeset
21 --kw_file "$key.k.file" "$key.ncol" "$key.match"
0
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
22 #end if
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
23 #end if
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
24 #end for
1
d29e469b6b20 planemo upload commit 5774fd6a5a746f36f6bf4671a51a39ea2b978300-dirty
proteore
parents: 0
diff changeset
25
7
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
26 ## value to filter
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
27 #for $val in $value
0
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
28 #if $val.v.val != "None"
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
29 --value
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
30 #if $val.v.val == "Equal"
1
d29e469b6b20 planemo upload commit 5774fd6a5a746f36f6bf4671a51a39ea2b978300-dirty
proteore
parents: 0
diff changeset
31 $val.v.equal "$val.ncol" "="
0
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
32 #else if $val.v.val == "Higher"
1
d29e469b6b20 planemo upload commit 5774fd6a5a746f36f6bf4671a51a39ea2b978300-dirty
proteore
parents: 0
diff changeset
33 $val.v.higher "$val.ncol" ">"
0
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
34 #else if $val.v.val == "Equal or higher"
1
d29e469b6b20 planemo upload commit 5774fd6a5a746f36f6bf4671a51a39ea2b978300-dirty
proteore
parents: 0
diff changeset
35 $val.v.equal_higher "$val.ncol" ">="
0
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
36 #else if $val.v.val == "Lower"
1
d29e469b6b20 planemo upload commit 5774fd6a5a746f36f6bf4671a51a39ea2b978300-dirty
proteore
parents: 0
diff changeset
37 $val.v.lower "$val.ncol" "<"
7
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
38 #else if $val.v.val == "Equal or lower"
1
d29e469b6b20 planemo upload commit 5774fd6a5a746f36f6bf4671a51a39ea2b978300-dirty
proteore
parents: 0
diff changeset
39 $val.v.equal_lower "$val.ncol" "<="
7
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
40 #else
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
41 $val.v.different "$val.ncol" "!="
0
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
42 #end if
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
43 #end if
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
44 #end for
1
d29e469b6b20 planemo upload commit 5774fd6a5a746f36f6bf4671a51a39ea2b978300-dirty
proteore
parents: 0
diff changeset
45
7
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
46 ##range of values to keep
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
47 #for $vr in $values_range
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
48 #if vr
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
49 --values_range $vr.bottom_value $vr.top_value $vr.ncol $vr.inclusive
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
50 #end if
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
51 #end for
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
52
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
53 #if $sort_column != ""
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
54 --sort_col "$sort_column,$reversed_sort"
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
55 #end if
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
56
0
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
57 ]]></command>
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
58 <inputs>
1
d29e469b6b20 planemo upload commit 5774fd6a5a746f36f6bf4671a51a39ea2b978300-dirty
proteore
parents: 0
diff changeset
59 <param type="data" name="input1" format="txt,tabular" label="Input file" help="Input file is a tab-delimited file containing proteomics identification and/or quantitative results" />
0
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
60 <param name="header" type="boolean" checked="true" truevalue="true" falsevalue="false" label="Does your input file contain header?" />
7
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
61 <param name="operator" type="select" label="Please select your operator for your filters" help="OR : only one filter must be satisfied to filter a row, AND : all your filters must be satisfied to filter a row" >
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
62 <option value="OR" selected="True">OR</option>
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
63 <option value="AND">AND</option>
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
64 </param>
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
65 <param name="sort_column" type="text" value="" label="If you want to sort the result files by values from a column, please enter a column number" help="For example : fill in 'c1' if you want to sort your result file by the column 1 values." />
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
66 <param name="reversed_sort" type="boolean" checked="false" truevalue="true" falsevalue="false" label="Sort in descending order ?"/>
0
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
67 <repeat name="keyword" title="Filter by keywords" >
1
d29e469b6b20 planemo upload commit 5774fd6a5a746f36f6bf4671a51a39ea2b978300-dirty
proteore
parents: 0
diff changeset
68 <param name="ncol" type="text" value="c1" label="Please specify the column number of the input file on which you want to apply the filter" help='For example, fill in "c1" if the keywords you want to filter out are listed in the first column' />
d29e469b6b20 planemo upload commit 5774fd6a5a746f36f6bf4671a51a39ea2b978300-dirty
proteore
parents: 0
diff changeset
69 <param type="boolean" name="match" truevalue="True" label="Would you like to search for exact match?" help='Choosing "Yes" will only filter out exact match (i.e. case sensitive), see below for more details' />
0
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
70 <conditional name="k" >
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
71 <param argument="--kw" type="select" label="Filter by keyword" >
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
72 <option value="None" selected="True">---</option>
1
d29e469b6b20 planemo upload commit 5774fd6a5a746f36f6bf4671a51a39ea2b978300-dirty
proteore
parents: 0
diff changeset
73 <option value="text">Enter keywords (copy/paste)</option>
0
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
74 <option value="file">Choose a file containing keywords</option>
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
75 </param>
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
76 <when value="None" />
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
77 <when value="text" >
5
1e9911190142 planemo upload commit 08f1831e097df5d74bf60ff5955e7e9c8e524cc8-dirty
proteore
parents: 4
diff changeset
78 <param name="txt" type="text" label="Copy/paste keywords to be filtered out" help='Keywords should be separated by ";", for example: A8K2U0;Q5TA79;O43175' >
0
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
79 <sanitizer>
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
80 <valid initial="string.printable">
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
81 <remove value="&apos;"/>
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
82 </valid>
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
83 <mapping initial="none">
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
84 <add source="&apos;" target="__sq__"/>
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
85 </mapping>
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
86 </sanitizer>
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
87 </param>
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
88 </when>
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
89 <when value="file" >
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
90 <param name="file" type="data" format="txt,tabular" label="Choose a file containing keywords" />
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
91 </when>
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
92 </conditional>
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
93 </repeat>
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
94 <repeat name="value" title="Filter by value" >
1
d29e469b6b20 planemo upload commit 5774fd6a5a746f36f6bf4671a51a39ea2b978300-dirty
proteore
parents: 0
diff changeset
95 <param name="ncol" type="text" value="c1" label="Please specify the column number of the input file on which you want to apply the filter" help='For example, fill in "c1" if the keywords you want to filter out are listed in the first column' />
0
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
96 <conditional name="v" >
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
97 <param argument="--val" type="select" label="Filter by value" >
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
98 <option value="None">---</option>
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
99 <option value="Equal">=</option>
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
100 <option value="Higher">&gt;</option>
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
101 <option value="Equal or higher">&gt;=</option>
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
102 <option value="Lower">&lt;</option>
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
103 <option value="Equal or lower">&lt;=</option>
7
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
104 <option value="Different">!=</option>
0
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
105 </param>
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
106 <when value="None" >
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
107 </when>
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
108 <when value="Equal" >
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
109 <param name="equal" type="float" value="" label="Value" />
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
110 </when>
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
111 <when value="Higher" >
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
112 <param type="float" name="higher" value="" label="Value" />
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
113 </when>
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
114 <when value="Equal or higher" >
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
115 <param type="float" name="equal_higher" value="" label="Value" />
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
116 </when>
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
117 <when value="Lower" >
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
118 <param type="float" name="lower" value="" label="Value" />
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
119 </when>
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
120 <when value="Equal or lower" >
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
121 <param type="float" name="equal_lower" value="" label="Value" />
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
122 </when>
7
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
123 <when value="Different">
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
124 <param type="float" name="different" value="" label="Value"/>
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
125 </when>
0
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
126 </conditional>
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
127 </repeat>
7
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
128 <repeat name="values_range" title="Filter by range of values">
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
129 <param name="ncol" type="text" value="c1" label="Please specify the column number of the input file on which you want to apply the filter" help='For example, fill in "c1" if the keywords you want to filter out are listed in the first column' />
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
130 <param name="bottom_value" type="float" value="" label="Please enter the bottom value" />
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
131 <param name="top_value" type="float" value="" label="Please enter the top value" />
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
132 <param name="inclusive" type="boolean" label="inclusive range ?" checked="false" truevalue="true" falsevalue="false" />
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
133 </repeat>
0
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
134 </inputs>
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
135 <outputs>
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
136 <data name="output1" format="tabular" label="${tool.name} on ${input1.name}" />
7
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
137 <data name="filtered_file" format="tabular" label="${tool.name} on ${input1.name} - Filtered lines" />
0
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
138 </outputs>
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
139 <tests>
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
140 <test>
1
d29e469b6b20 planemo upload commit 5774fd6a5a746f36f6bf4671a51a39ea2b978300-dirty
proteore
parents: 0
diff changeset
141 <param name="input1" value="Lacombe_et_al_2017_OK.txt" />
d29e469b6b20 planemo upload commit 5774fd6a5a746f36f6bf4671a51a39ea2b978300-dirty
proteore
parents: 0
diff changeset
142 <param name="header" value="true" />
7
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
143 <param name="operator" value="OR"/>
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
144 <param name="sort_column" value="c1"/>
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
145 <param name="reversed_sort" value="false"/>
0
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
146 <repeat name="keyword">
1
d29e469b6b20 planemo upload commit 5774fd6a5a746f36f6bf4671a51a39ea2b978300-dirty
proteore
parents: 0
diff changeset
147 <param name="ncol" value="c1" />
d29e469b6b20 planemo upload commit 5774fd6a5a746f36f6bf4671a51a39ea2b978300-dirty
proteore
parents: 0
diff changeset
148 <param name="match" value="True" />
0
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
149 <conditional name="k">
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
150 <param name="kw" value="text" />
1
d29e469b6b20 planemo upload commit 5774fd6a5a746f36f6bf4671a51a39ea2b978300-dirty
proteore
parents: 0
diff changeset
151 <param name="txt" value="P04264;P35908;P13645;Q5D862;Q5T749;Q8IW75;P81605;P22531;P59666;P78386" />
0
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
152 </conditional>
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
153 </repeat>
7
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
154 <repeat name="value">
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
155 <param name="ncol" value="c3"/>
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
156 <conditional name="v">
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
157 <param name="val" value="Higher"/>
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
158 <param name="higher" value="20" />
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
159 </conditional>
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
160 </repeat>
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
161 <output name="output1" file="output.csv" />
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
162 <output name="filtered_file" file="filtered_output.csv" />
1
d29e469b6b20 planemo upload commit 5774fd6a5a746f36f6bf4671a51a39ea2b978300-dirty
proteore
parents: 0
diff changeset
163 </test>
0
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
164 </tests>
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
165 <help><![CDATA[
7
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
166 This tool allows to remove unneeded data (e.g. contaminants, non-significant values) from a proteomics results file (e.g. MaxQuant or Proline output).
0
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
167
7
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
168 **Filter by keyword(s)**
0
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
169
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
170 Several options can be used. For each option, you can fill in the field or upload a file which contains the keywords.
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
171
2
330d6c7b1916 planemo upload commit ffa3be72b850aecbfbd636de815967c06a8f643f-dirty
proteore
parents: 1
diff changeset
172 - If you choose to fill in the field, the keywords should be separated by ";", for example: A8K2U0;Q5TA79;O43175
1
d29e469b6b20 planemo upload commit 5774fd6a5a746f36f6bf4671a51a39ea2b978300-dirty
proteore
parents: 0
diff changeset
173
d29e469b6b20 planemo upload commit 5774fd6a5a746f36f6bf4671a51a39ea2b978300-dirty
proteore
parents: 0
diff changeset
174 - If you choose to upload a file in a text format in which each line is a keyword, for example:
0
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
175
1
d29e469b6b20 planemo upload commit 5774fd6a5a746f36f6bf4671a51a39ea2b978300-dirty
proteore
parents: 0
diff changeset
176 REV
d29e469b6b20 planemo upload commit 5774fd6a5a746f36f6bf4671a51a39ea2b978300-dirty
proteore
parents: 0
diff changeset
177
d29e469b6b20 planemo upload commit 5774fd6a5a746f36f6bf4671a51a39ea2b978300-dirty
proteore
parents: 0
diff changeset
178 TRYP_PIG
d29e469b6b20 planemo upload commit 5774fd6a5a746f36f6bf4671a51a39ea2b978300-dirty
proteore
parents: 0
diff changeset
179
d29e469b6b20 planemo upload commit 5774fd6a5a746f36f6bf4671a51a39ea2b978300-dirty
proteore
parents: 0
diff changeset
180 ALDOA_RABBIT
d29e469b6b20 planemo upload commit 5774fd6a5a746f36f6bf4671a51a39ea2b978300-dirty
proteore
parents: 0
diff changeset
181
7
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
182 **The line that contains these keywords will be eliminated from input file.**
1
d29e469b6b20 planemo upload commit 5774fd6a5a746f36f6bf4671a51a39ea2b978300-dirty
proteore
parents: 0
diff changeset
183
d29e469b6b20 planemo upload commit 5774fd6a5a746f36f6bf4671a51a39ea2b978300-dirty
proteore
parents: 0
diff changeset
184 **Keywords search can be applied by performing either exact match or partial one by using the following option**
d29e469b6b20 planemo upload commit 5774fd6a5a746f36f6bf4671a51a39ea2b978300-dirty
proteore
parents: 0
diff changeset
185
7
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
186 - If you choose **Yes**, only the fields that contains exactly the same content will be removed.
1
d29e469b6b20 planemo upload commit 5774fd6a5a746f36f6bf4671a51a39ea2b978300-dirty
proteore
parents: 0
diff changeset
187
7
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
188 - If you choose **No**, all the fields containing the keyword will be removed.
1
d29e469b6b20 planemo upload commit 5774fd6a5a746f36f6bf4671a51a39ea2b978300-dirty
proteore
parents: 0
diff changeset
189
0
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
190 For example:
1
d29e469b6b20 planemo upload commit 5774fd6a5a746f36f6bf4671a51a39ea2b978300-dirty
proteore
parents: 0
diff changeset
191
7
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
192 **Yes** option (exact match) selected using the keyword "kinase": only lines which contain exactly "kinase" is removed.
1
d29e469b6b20 planemo upload commit 5774fd6a5a746f36f6bf4671a51a39ea2b978300-dirty
proteore
parents: 0
diff changeset
193
0
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
194 **No** option (partial match) for "kinase": not only lines which contain "kinase" but also lines with "alpha-kinase" (and so on) are removed.
1
d29e469b6b20 planemo upload commit 5774fd6a5a746f36f6bf4671a51a39ea2b978300-dirty
proteore
parents: 0
diff changeset
195
7
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
196 -----
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
197
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
198 **Filter by values**
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
199
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
200 You can filter your data by a column of numerical values.
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
201 Enter the column to be use and select one operator in the list :
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
202
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
203 - "="
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
204 - "!="
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
205 - "<"
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
206 - "<="
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
207 - ">"
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
208 - ">="
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
209
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
210 Then enter the value to filter and specify the column to apply that option.
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
211 If a row contains a value that correspond to your settings, it will be filtered.
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
212
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
213 -----
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
214
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
215 **Filter by a range of values**
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
216
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
217 You can also set a range of values to filter your file.
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
218 In opposition to value filter, rows with values inside of the defined range are kept.
0
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
219
7
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
220 Rows with values outside of the defined range will be filtered.
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
221
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
222 -----
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
223
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
224 **AND/OR operator**
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
225
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
226 Since you can add as many filters as you want, you can choose how filters apply on your data.
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
227
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
228 AND or OR operator option works on all filters :
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
229
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
230 - OR : only one filter to be satisfied to remove one row
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
231 - AND : all filters must be satisfied to remove one row
0
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
232
7
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
233 -----
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
234
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
235 **Sort the results files**
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
236
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
237 You can sort the result file if you wish, it can help you to check results.
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
238
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
239 In order to do so : enter the column to be used, all columns will be sorted according to the one filled in.
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
240
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
241 Rows stay intact, just in different order like excel.
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
242 You can also choose ascending or descending order, by default descending order is set.
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
243
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
244 -----
0
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
245
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
246 **Output**
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
247
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
248 The tool will produce 2 output files.
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
249
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
250 * A text file containing the resulting filtered input file.
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
251
7
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
252 * A text file containing the rows removed from the input file.
0
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
253
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
254 -----
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
255
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
256 .. class:: infomark
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
257
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
258 **Authors**
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
259
7
6f32c1e12572 planemo upload commit 72b345a7df2c87f07a9df71ecee1f252c9355337
proteore
parents: 5
diff changeset
260 T.P. Lien Nguyen, David Christiany, Florence Combes, Yves Vandenbrouck - CEA, INSERM, CNRS, Grenoble-Alpes University, BIG Institute, FR
1
d29e469b6b20 planemo upload commit 5774fd6a5a746f36f6bf4671a51a39ea2b978300-dirty
proteore
parents: 0
diff changeset
261
d29e469b6b20 planemo upload commit 5774fd6a5a746f36f6bf4671a51a39ea2b978300-dirty
proteore
parents: 0
diff changeset
262 Sandra Dérozier, Olivier Rué, Christophe Caron, Valentin Loux - INRA, Paris-Saclay University, MAIAGE Unit, Migale Bioinformatics platform, FR
0
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
263
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
264 This work has been partially funded through the French National Agency for Research (ANR) IFB project.
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
265
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
266 Contact support@proteore.org for any questions or concerns about the Galaxy implementation of this tool.
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
267
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
268 ]]></help>
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
269 <citations>
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
270 </citations>
6a45ccfc0e4c planemo upload commit abb24d36c776520e73220d11386252d848173697-dirty
proteore
parents:
diff changeset
271 </tool>