annotate tools/filters/joiner2.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="joiner2" name="Relational join 2">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
2 <description>two datasets a specific column of which has the same value</description>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
3 <command>sort -k $col1 $input1 > $input1.tmp; sort -k $col2 $input2 > $input2.tmp; join -1 $col1 -2 $col2 $input1.tmp $input2.tmp | tr " " "\t" > $out_file1; rm -rf $input1.tmp $input2.tmp </command>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
4 <inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
5 <param name="input1" label="Combine dataset" format="tabular" type="data" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
6 <param name="col1" label="using column" type="data_column" data_ref="input1" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
7 <param name="input2" label="with dataset" format="tabular" type="data"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
8 <param name="col2" label="and column" type="data_column" data_ref="input2" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
9 </inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
10 <outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
11 <data format="input" name="out_file1" metadata_source="input1" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
12 </outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
13 </tool>