annotate tools/unix_tools/join_tool.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="cshl_join_tool" name="join">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
2 <description>two files</description>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
3 <command interpreter="sh">join_tool.sh "$jointype" "$output_format"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
4 "$empty_string_filler" "$delimiter"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
5 "$ignore_case"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
6 "$input1" "$column1"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
7 "$input2" "$column2"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
8 "$output"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
9 </command>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
10
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
11 <inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
12 <param format="txt" name="input1" type="data" label="1st file" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
13 <param name="column1" label="Column to use from 1st file" type="data_column" data_ref="input1" accept_default="true" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
14
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
15 <param format="txt" name="input2" type="data" label="2nd File" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
16 <param name="column2" label="Column to use from 2nd file" type="data_column" data_ref="input2" accept_default="true" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
17
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
18 <param name="jointype" type="select" label="Output lines appearing in">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
19 <option value=" ">BOTH 1st &amp; 2nd file.</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
20 <option value="-v 1">1st but not in 2nd file. [-v 1]</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
21 <option value="-v 2">2nd but not in 1st file. [-v 2]</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
22 <option value="-a 1">both 1st &amp; 2nd file, plus unpairable lines from 1st file. [-a 1]</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
23 <option value="-a 2">both 1st &amp; 2nd file, plus unpairable lines from 2st file. [-a 2]</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
24 <option value="-a 1 -a 2">All Lines [-a 1 -a 2]</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
25 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
26
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
27 <param name="delimiter" type="select" label="field-separator [-t]">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
28 <option value=",">comma (,)</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
29 <option value=":">colons (:) </option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
30 <option value=" ">single space</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
31 <option value=".">dot (.)</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
32 <option value="-">dash (-)</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
33 <option value="|">pipe (|)</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
34 <option value="_">underscore (_)</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
35 <option selected="True" value="tab">tab</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
36 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
37
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
38 <param name="ignore_case" type="select" label="Case sensitivity">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
39 <option value="">Case sensitive</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
40 <option value="-i">Case INsensitive [-i]</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
41 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
42
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
43 <param name="empty_string_filler" type="text" size="20" label="String replacement for empty fields [-e EMPTY]" help="Leave empty unless you know what you're doing. Use this when specifing output format" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
44
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
45 <param name="output_format" type="text" size="30" label="Output line format [-o FORMAT]" help="Leave empty unless you know what you're doing. Example: 1.1,2.1,2.1" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
46
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
47 </inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
48 <outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
49 <data name="output" format="input" metadata_source="input1" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
50 </outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
51
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
52 <help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
53 </help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
54 </tool>