annotate collection_column_join.xml @ 1:9c8536c7ed42 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit d46d41c5fec10407bd6b5cb77a11d9b43b82b95e
author iuc
date Fri, 23 Sep 2016 12:14:04 -0400
parents 2f120a5c49b1
children dfde09461b1e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
1 <tool id="collection_column_join" name="Column Join" version="0.0.1">
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
2 <description>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
3 on Collections
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
4 </description>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
5 <requirements>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
6 <requirement type="package" version="8.22">gnu_coreutils</requirement>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
7 </requirements>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
8 <stdio>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
9 <exit_code range="1:" />
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
10 <exit_code range=":-1" />
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
11 </stdio>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
12 <command><![CDATA[
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
13 #if "output_shell_script" in str( $include_outputs ).split( "," ):
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
14 cp "${collection_column_join_script}" "${script_output}" &&
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
15 #end if
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
16 sh "${collection_column_join_script}"
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
17 ]]>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
18 </command>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
19 <configfiles>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
20 <configfile name="collection_column_join_script"><![CDATA[
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
21 #!/bin/sh
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
22 touch header0.tmp &&
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
23 touch output0.tmp &&
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
24 #set $delimiter = '\t'
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
25 #set $left_identifier_column = $identifier_column
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
26 #set $tail_offset = int( str( $has_header ) ) + 1
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
27 #for $i, $tabular_item in enumerate( $input_tabular ):
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
28 #if $has_header:
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
29 head -n ${has_header} "${tabular_item}" | awk '{ n = split(\$0,arr,"${delimiter}"); ctr=1; for(i=1;i<=n;i++){ if( i != $identifier_column ){ if( ctr > 1) {printf("${delimiter}")}; printf( "${tabular_item.element_identifier}_%s", arr[i] ); ctr++ } }; printf( "\n" ); }' > input_header.tmp &&
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
30 tail -n +${tail_offset} "${tabular_item}" | LC_ALL=C sort -t "${delimiter}" -k $identifier_column > input_file.tmp &&
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
31 #else:
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
32 awk '{ n = split(\$0,arr,"${delimiter}"); ctr=1; for(i=1;i<=n;i++){ if( i != $identifier_column ){ if( ctr > 1) {printf("${delimiter}")}; printf( "${tabular_item.element_identifier}_%s", i ); ctr++ } }; exit }' "${tabular_item}" > input_header.tmp &&
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
33 LC_ALL=C sort -t "${delimiter}" -k $identifier_column "${tabular_item}" > input_file.tmp &&
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
34 #end if
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
35 #if $i == 0:
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
36 mv input_file.tmp output${ ( $i + 1 ) % 2 }.tmp &&
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
37 #if $has_header:
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
38 awk '{ printf \$${identifier_column}; exit }' "${tabular_item}" > header${ $i % 2 }.tmp &&
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
39 #else:
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
40 echo "#KEY" > header${ $i % 2 }.tmp &&
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
41 #end if
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
42 #else:
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
43 LC_ALL=C join -o auto -a 1 -a 2 -1 ${left_identifier_column} -2 ${identifier_column} -t "${delimiter}" -e "${fill_char}" output${ $i % 2 }.tmp input_file.tmp > output${ ( $i + 1 ) % 2 }.tmp &&
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
44 #set $left_identifier_column = 1
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
45 #end if
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
46 paste -d "${delimiter}" header${ $i % 2 }.tmp input_header.tmp > header${ ( $i + 1 ) % 2 }.tmp &&
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
47 #end for
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
48 cat header${ ( $i + 1 ) % 2 }.tmp output${ ( $i + 1 ) % 2 }.tmp > "${tabular_output}"
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
49 ]]>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
50 </configfile>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
51 </configfiles>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
52 <inputs>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
53 <param name="input_tabular" type="data" format="tabular" multiple="True" optional="False" label="Tabular files"/>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
54 <!-- <param name="identifier_column" type="data_column" data_ref="input_tabular" value="0" min="0" optional="False" label="Identifier column"/> -->
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
55 <param name="identifier_column" type="integer" value="1" min="0" optional="False" label="Identifier column"/>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
56 <param name="has_header" type="integer" value="0" min="0" optional="False" label="Number of Header lines in each item"/>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
57 <param name="fill_char" type="text" value="." optional="False" label="Fill character"/>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
58 <param name="include_outputs" type="select" multiple="True" label="Additional datasets to create">
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
59 <option value="output_shell_script" selected="false">Shell script</option>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
60 </param>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
61 </inputs>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
62 <outputs>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
63 <data format="tabular" name="tabular_output"/>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
64 <data format="txt" name="script_output">
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
65 <filter>include_outputs and "output_shell_script" in include_outputs</filter>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
66 </data>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
67 </outputs>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
68 <tests>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
69 <test>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
70 <param name="input_tabular" value="in_1.tabular,in_2.tabular,in_3.tabular" ftype="tabular"/>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
71 <param name="identifier_column" value="1"/>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
72 <param name="has_header" value="1"/>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
73 <param name="fill_char" value="."/>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
74 <param name="include_outputs" />
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
75 <output name="tabular_output" file="out_1.tabular" ftype="tabular"/>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
76 </test>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
77 <test>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
78 <param name="input_tabular" value="in_1_headerless.tabular,in_2_headerless.tabular,in_3_headerless.tabular" ftype="tabular"/>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
79 <param name="identifier_column" value="1"/>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
80 <param name="has_header" value="0"/>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
81 <param name="fill_char" value="."/>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
82 <param name="include_outputs" />
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
83 <output name="tabular_output" file="out_2.tabular" ftype="tabular"/>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
84 </test>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
85 </tests>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
86 <help>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
87 <![CDATA[
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
88 Joins lists of tabular datasets together on a field.
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
89
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
90 -----
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
91
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
92 **Example**
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
93
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
94 To join three files, with headers, based on the first column:
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
95
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
96 **First file (in_1.tabular)**::
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
97
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
98 #KEY c2 c3 c4
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
99 one 1-1 1-2 1-3
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
100 two 1-4 1-5 1-6
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
101 three 1-7 1-8 1-9
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
102
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
103
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
104 **Second File (in_2.tabular)**::
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
105
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
106 #KEY c2 c3 c4
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
107 one 2-1 2-2 2-3
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
108 two 2-4 2-5 2-6
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
109 three 2-7 2-8 2-9
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
110
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
111 **Third file (in_3.tabular)**::
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
112
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
113 #KEY c2 c3 c4
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
114 one 3-3 3-2 3-3
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
115 two 3-4 3-5 3-6
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
116 three 3-7 3-8 3-9
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
117
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
118
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
119 **Joining** the files, using **identifier column of 1** and a **header lines of 1**, will return::
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
120
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
121 #KEY in_1.tabular_c2 in_1.tabular_c3 in_1.tabular_c4 in_2.tabular_c2 in_2.tabular_c3 in_2.tabular_c4 in_3.tabular_c2 in_3.tabular_c3 in_3.tabular_c4
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
122 one 1-1 1-2 1-3 2-1 2-2 2-3 3-3 3-2 3-3
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
123 three 1-7 1-8 1-9 2-7 2-8 2-9 3-7 3-8 3-9
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
124 two 1-4 1-5 1-6 2-4 2-5 2-6 3-4 3-5 3-6
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
125
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
126 ]]>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
127 </help>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
128 <citations>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
129 </citations>
1
9c8536c7ed42 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit d46d41c5fec10407bd6b5cb77a11d9b43b82b95e
iuc
parents: 0
diff changeset
130 </tool>