annotate collection_column_join.xml @ 2:dfde09461b1e draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 52cb707375a11118a7e46612bd5044016abb9903
author iuc
date Wed, 24 May 2017 06:19:45 -0400
parents 9c8536c7ed42
children 58228a4d58fe
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
dfde09461b1e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 52cb707375a11118a7e46612bd5044016abb9903
iuc
parents: 1
diff changeset
1 <tool id="collection_column_join" name="Column Join" version="0.0.2">
dfde09461b1e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 52cb707375a11118a7e46612bd5044016abb9903
iuc
parents: 1
diff changeset
2 <description>on Collections</description>
0
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
3 <requirements>
2
dfde09461b1e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 52cb707375a11118a7e46612bd5044016abb9903
iuc
parents: 1
diff changeset
4 <requirement type="package" version="8.25">coreutils</requirement>
0
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>
2
dfde09461b1e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 52cb707375a11118a7e46612bd5044016abb9903
iuc
parents: 1
diff changeset
6 <command detect_errors="exit_code"><![CDATA[
dfde09461b1e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 52cb707375a11118a7e46612bd5044016abb9903
iuc
parents: 1
diff changeset
7 #if 'output_shell_script' in str( $include_outputs ).split( "," ):
dfde09461b1e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 52cb707375a11118a7e46612bd5044016abb9903
iuc
parents: 1
diff changeset
8 cp '${collection_column_join_script}' '${script_output}' &&
0
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
9 #end if
2
dfde09461b1e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 52cb707375a11118a7e46612bd5044016abb9903
iuc
parents: 1
diff changeset
10 sh '${collection_column_join_script}'
0
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
11 ]]>
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>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
13 <configfiles>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
14 <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
15 #!/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
16 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
17 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
18 #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
19 #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
20 #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
21 #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
22 #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
23 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
24 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
25 #else:
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
26 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
27 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
28 #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
29 #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
30 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
31 #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
32 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
33 #else:
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
34 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
35 #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
36 #else:
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
37 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
38 #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
39 #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
40 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
41 #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
42 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
43 ]]>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
44 </configfile>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
45 </configfiles>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
46 <inputs>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
47 <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
48 <!-- <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
49 <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
50 <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
51 <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
52 <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
53 <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
54 </param>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
55 </inputs>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
56 <outputs>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
57 <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
58 <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
59 <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
60 </data>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
61 </outputs>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
62 <tests>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
63 <test>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
64 <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
65 <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
66 <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
67 <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
68 <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
69 <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
70 </test>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
71 <test>
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="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
73 <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
74 <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
75 <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
76 <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
77 <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
78 </test>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
79 </tests>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
80 <help>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
81 <![CDATA[
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
82 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
83
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
84 -----
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
85
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
86 **Example**
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
87
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
88 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
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 **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
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 #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
93 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
94 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
95 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
96
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 **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
99
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
100 #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
101 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
102 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
103 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
104
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
105 **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
106
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
107 #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
108 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
109 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
110 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
111
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 **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
114
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
115 #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
116 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
117 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
118 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
119
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 </help>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
122 <citations>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
123 </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
124 </tool>