annotate tools/filters/fileGrep.xml @ 0:9071e359b9a3

Uploaded
author xuebing
date Fri, 09 Mar 2012 19:37:19 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
1 <tool id="fileGrep1" name="Match">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
2 <description>a column from one Query against another Query</description>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
3 <command>cut -f $col $input1 | grep -f - $match $input2 > $out_file1</command>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
4 <inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
5 <param name="col" size="2" type="text" value="1" label="Match content of column"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
6 <param format="tabular" name="input1" type="data" label="From Query1"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
7 <param format="tabular" name="input2" type="data" label="Against Query2"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
8 <param name="match" type="select" label="and return rows that">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
9 <option value="">Match</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
10 <option value="-v">Do not match</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
11 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
12 </inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
13 <outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
14 <data format="input" name="out_file1" metadata_source="input2" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
15 </outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
16 <help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
17 This tool is based on UNIX command grep with option -f. It matches content of one query against another. For example, assume you have two queries - one that contains EST accession numbers and some other information::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
18
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
19 AA001229 12 12
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
20 A001501 7 7
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
21 AA001641 6 6
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
22 AA001842 6 6
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
23 AA002047 6 6
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
24 AA004638 3 3
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
25
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
26 and another that is a typical BED file describing genomic location of some ESTs::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
27
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
28 chr7 115443235 115443809 CA947954_exon_0_0_chr7_115443236_f 0 +
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
29 chr7 115443236 115443347 DB338189_exon_0_0_chr7_115443237_f 0 +
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
30 chr7 115443347 115443768 DB338189_exon_1_0_chr7_115443348_f 0 +
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
31 chr7 115443239 115443802 AA001842_exon_0_0_chr7_115443240_f 0 +
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
32 chr7 115443243 115443347 DB331869_exon_0_0_chr7_115443244_f 0 +
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
33 chr7 115443347 115443373 DB331869_exon_1_0_chr7_115443348_f 0 +
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
34
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
35 Using this tool you will be able to tell how many ESTs in Query1 are also preset in Query2 and will output this::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
36
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
37 chr7 115443239 115443802 AA001842_exon_0_0_chr7_115443240_f 0
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
38
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
39 if **Match** option is chosen.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
40
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
41 </help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
42 </tool>