annotate TopHit_namefilter/TopHit_namefilter.xml @ 0:9f1fe290345e default tip

Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
author abossers
date Tue, 07 Jun 2011 18:07:34 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
1 <tool id="TopHit_namefilter" name="TopHit filter" version="0.1.Alx">
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
2 <description>Simple filter to keep N occurrences of lines in a file</description>
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
3 <command interpreter="perl">
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
4 TopHit_namefilter_galaxy.pl
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
5 $input
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
6 $column
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
7 "$splitter"
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
8 $hits
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
9 $output_file
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
10 <!-- 2&gt;$logfile -->
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
11 </command>
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
12 <inputs>
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
13 <param name="input" type="data" format="tabular,txt" label="Input tabular or plain text file" />
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
14 <param name="column" type="integer" size="4" value="1" label="Column number to use after the split!" />
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
15 <param name="splitter" type="text" size="10" value="\t" label="Splitter character/code to use" help="See help below for advanced options and how to use {pipe}" >
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
16 <sanitizer>
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
17 <valid>
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
18 <add value="\"/>
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
19 <add value=">"/>
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
20 <add value="%"/>
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
21 <add value="|"/>
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
22 </valid>
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
23 </sanitizer>
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
24 </param>
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
25 <param name="hits" type="integer" size="4" value="1" label="Number of occurrences to keep" help="They will not be sorted!" />
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
26 </inputs>
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
27 <outputs>
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
28 <data name="output_file" format="input" label="Filtered table/text" />
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
29 </outputs>
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
30 <tests>
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
31 </tests>
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
32 <help>
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
33 **What it does**
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
34
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
35 TopHit_namefilter is a SIMPLE filter to keep just the TOPHIT / first [N] occurrence(s) of some identifier
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
36 useful for keeping only the first N tophits in blast when multiple hits were returned (and you don't want to rerun the BLAST analysis).
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
37
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
38 Please be aware that NO additional filtering or checking is done on for instance E values of BLAST hits.
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
39 Tophit = FIRST hit...not necessarily the best.. If multiple hits are selected to be returned
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
40 they will NOT be sorted (see below example of a number of 2 hits occurring somewhere else in the input
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
41 and therefore in the output file).
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
42
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
43 **Comments/feedback** on the Perl script or GALAXY wrapper: alex.bossers@wur.nl
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
44
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
45 -----
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
46
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
47 **Note!** Beware the special use of splitters! Especially if you want to use special characters that have a "perl" split
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
48 meaning. They need to be escaped by a leading \\.
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
49
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
50 Examples of splitters before filtering (end result will remain the ORIGINAL unsplit line!):
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
51
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
52 ::
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
53
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
54 Splitter Meaning Example line to split Split result for filtering only!
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
55 -------- ------------------------------- ----------------------- --------------------------------
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
56 \t Single tab Foo&lt;tab&gt;Bar&lt;tab&gt;here ---&gt; Foo Bar here
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
57 \| Single pipe Foo&lt;tab&gt;Bar|here ---&gt; Foo&lt;tab&gt;Bar here
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
58 - Single dash Foo-Bar ---&gt; Foo Bar
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
59 -|\| Combined splits on dash OR pipe Foo-Bar|here ---&gt; Foo Bar here
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
60
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
61
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
62 -----
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
63
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
64 **EXAMPLE**
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
65
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
66 Parameters: Column = 1, **hits = 2** and splitter = \\t
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
67
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
68 **Input**
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
69
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
70 Any text/tabular file:
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
71
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
72 ::
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
73
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
74 Q3262-21 gi|71066702|gb|AE016828.2| tja..here something extra
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
75 Q3262-23 gi|71066702|gb|AE016828.2| okay
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
76 Q3262-24 gi|71066702|gb|AE016828.2| nothing there
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
77 Q3262-21 gi|71066702|gb|AE016828.2| enhier was zonder space :)
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
78 Q3262-26 gi|71066702|gb|AE016828.2| or still
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
79 Q3262-21 gi|71066702|gb|AE016828.2|
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
80 Q3262-21 gi|71066702|gb|AE016828.2|
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
81 Q3262-21 gi|71066702|gb|AE016828.2|
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
82 Q3262-21 gi|71066702|gb|AE016828.2|
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
83 Q3262-21 gi|145004|gb|M80806.1|COXTRANSPO
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
84 Q3262-21 gi|144996|gb|M20482.1|COXHSPAB
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
85 Q3262-21 gi|161761570|gb|CP000890.1|
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
86 Q3262-30 gi|161761570|gb|CP000890.1|
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
87 Q3262-21 gi|161761570|gb|CP000890.1|
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
88 Q3262-21 gi|161761570|gb|CP000890.1|
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
89 Q3262-21 gi|161761570|gb|CP000890.1|
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
90
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
91
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
92 **Outputs**
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
93
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
94 ::
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
95
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
96 Q3262-21 gi|71066702|gb|AE016828.2| tja..here something extra
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
97 Q3262-23 gi|71066702|gb|AE016828.2| okay
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
98 Q3262-21 gi|71066702|gb|AE016828.2| enhier was zonder space :)
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
99 Q3262-24 gi|71066702|gb|AE016828.2| nothing there
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
100 Q3262-26 gi|71066702|gb|AE016828.2| or still
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
101 Q3262-30 gi|161761570|gb|CP000890.1|
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
102
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
103 -----
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
104
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
105 Please acknowledge our work when you find it useful!
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
106
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
107 |
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
108
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
109
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
110 </help>
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
111 </tool>
9f1fe290345e Migrated tool version 0.1.Alx from old tool shed archive to new tool shed repository
abossers
parents:
diff changeset
112