annotate collection_column_join.xml @ 4:071084070619 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 11d99b82e4e78f3077bc5f6997403b602b8a8423
author iuc
date Thu, 28 Feb 2019 05:04:03 -0500
parents 58228a4d58fe
children 3ddd99c7efee
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
58228a4d58fe planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 9f1c3ab3f41bab8ff962aca1478c75e538e5bf6a
iuc
parents: 2
diff changeset
1 <tool id="collection_column_join" name="Column Join" version="0.0.3">
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 ):
3
58228a4d58fe planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 9f1c3ab3f41bab8ff962aca1478c75e538e5bf6a
iuc
parents: 2
diff changeset
22 #if $old_col_in_header:
58228a4d58fe planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 9f1c3ab3f41bab8ff962aca1478c75e538e5bf6a
iuc
parents: 2
diff changeset
23 #if $has_header:
58228a4d58fe planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 9f1c3ab3f41bab8ff962aca1478c75e538e5bf6a
iuc
parents: 2
diff changeset
24 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 &&
58228a4d58fe planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 9f1c3ab3f41bab8ff962aca1478c75e538e5bf6a
iuc
parents: 2
diff changeset
25 tail -n +${tail_offset} "${tabular_item}" | LC_ALL=C sort -t "${delimiter}" -k $identifier_column > input_file.tmp &&
58228a4d58fe planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 9f1c3ab3f41bab8ff962aca1478c75e538e5bf6a
iuc
parents: 2
diff changeset
26 #else:
58228a4d58fe planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 9f1c3ab3f41bab8ff962aca1478c75e538e5bf6a
iuc
parents: 2
diff changeset
27 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 &&
58228a4d58fe planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 9f1c3ab3f41bab8ff962aca1478c75e538e5bf6a
iuc
parents: 2
diff changeset
28 LC_ALL=C sort -t "${delimiter}" -k $identifier_column "${tabular_item}" > input_file.tmp &&
58228a4d58fe planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 9f1c3ab3f41bab8ff962aca1478c75e538e5bf6a
iuc
parents: 2
diff changeset
29 #end if
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 #else:
3
58228a4d58fe planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 9f1c3ab3f41bab8ff962aca1478c75e538e5bf6a
iuc
parents: 2
diff changeset
31 #if $has_header:
58228a4d58fe planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 9f1c3ab3f41bab8ff962aca1478c75e538e5bf6a
iuc
parents: 2
diff changeset
32 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}" ); ctr++ } }; printf( "\n" ); }' > input_header.tmp &&
58228a4d58fe planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 9f1c3ab3f41bab8ff962aca1478c75e538e5bf6a
iuc
parents: 2
diff changeset
33 tail -n +${tail_offset} "${tabular_item}" | LC_ALL=C sort -t "${delimiter}" -k $identifier_column > input_file.tmp &&
58228a4d58fe planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 9f1c3ab3f41bab8ff962aca1478c75e538e5bf6a
iuc
parents: 2
diff changeset
34 #else:
58228a4d58fe planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 9f1c3ab3f41bab8ff962aca1478c75e538e5bf6a
iuc
parents: 2
diff changeset
35 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}"); ctr++ } }; exit }' "${tabular_item}" > input_header.tmp &&
58228a4d58fe planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 9f1c3ab3f41bab8ff962aca1478c75e538e5bf6a
iuc
parents: 2
diff changeset
36 LC_ALL=C sort -t "${delimiter}" -k $identifier_column "${tabular_item}" > input_file.tmp &&
58228a4d58fe planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 9f1c3ab3f41bab8ff962aca1478c75e538e5bf6a
iuc
parents: 2
diff changeset
37 #end if
0
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
38 #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
39 #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
40 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
41 #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
42 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
43 #else:
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
44 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
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 #else:
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
47 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
48 #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
49 #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
50 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
51 #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
52 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
53 ]]>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
54 </configfile>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
55 </configfiles>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
56 <inputs>
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="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
58 <!-- <param name="identifier_column" type="data_column" data_ref="input_tabular" value="0" min="0" optional="False" label="Identifier column"/> -->
4
071084070619 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 11d99b82e4e78f3077bc5f6997403b602b8a8423
iuc
parents: 3
diff changeset
59 <param name="identifier_column" type="integer" value="1" min="0" optional="False" label="Identifier column" help="The column that will be used to join the input datasets"/>
071084070619 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 11d99b82e4e78f3077bc5f6997403b602b8a8423
iuc
parents: 3
diff changeset
60 <param name="has_header" type="integer" value="0" min="0" optional="False" label="Number of header lines in each input file" help="If this is set to 0, a header line will be added containing column names as follows: the identifier column will be named #KEY and the other columns are named by the input dataset names/columns. If you have one or more header lines in your input, set this to the number of header lines."/>
071084070619 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 11d99b82e4e78f3077bc5f6997403b602b8a8423
iuc
parents: 3
diff changeset
61 <param name="old_col_in_header" type="boolean" checked="true" label="Add column name to header" help="Disable if you want column headers to only be composed of the input file names, for example, if you want headers like file1 and not file1_column1, see Help section below. Default: Yes"/>
0
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
62 <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
63 <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
64 <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
65 </param>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
66 </inputs>
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 <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
69 <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
70 <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
71 </data>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
72 </outputs>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
73 <tests>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
74 <test>
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="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
76 <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
77 <param name="has_header" value="1"/>
3
58228a4d58fe planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 9f1c3ab3f41bab8ff962aca1478c75e538e5bf6a
iuc
parents: 2
diff changeset
78 <param name="old_col_in_header" value="true"/>
0
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="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
80 <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
81 <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
82 </test>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
83 <test>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
84 <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
85 <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
86 <param name="has_header" value="0"/>
3
58228a4d58fe planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 9f1c3ab3f41bab8ff962aca1478c75e538e5bf6a
iuc
parents: 2
diff changeset
87 <param name="old_col_in_header" value="true"/>
0
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
88 <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
89 <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
90 <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
91 </test>
3
58228a4d58fe planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 9f1c3ab3f41bab8ff962aca1478c75e538e5bf6a
iuc
parents: 2
diff changeset
92 <test>
58228a4d58fe planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 9f1c3ab3f41bab8ff962aca1478c75e538e5bf6a
iuc
parents: 2
diff changeset
93 <param name="input_tabular" value="in_1.tabular,in_2.tabular,in_3.tabular" ftype="tabular"/>
58228a4d58fe planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 9f1c3ab3f41bab8ff962aca1478c75e538e5bf6a
iuc
parents: 2
diff changeset
94 <param name="identifier_column" value="1"/>
58228a4d58fe planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 9f1c3ab3f41bab8ff962aca1478c75e538e5bf6a
iuc
parents: 2
diff changeset
95 <param name="has_header" value="1"/>
58228a4d58fe planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 9f1c3ab3f41bab8ff962aca1478c75e538e5bf6a
iuc
parents: 2
diff changeset
96 <param name="old_col_in_header" value="false"/>
58228a4d58fe planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 9f1c3ab3f41bab8ff962aca1478c75e538e5bf6a
iuc
parents: 2
diff changeset
97 <param name="fill_char" value="."/>
58228a4d58fe planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 9f1c3ab3f41bab8ff962aca1478c75e538e5bf6a
iuc
parents: 2
diff changeset
98 <param name="include_outputs" />
58228a4d58fe planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 9f1c3ab3f41bab8ff962aca1478c75e538e5bf6a
iuc
parents: 2
diff changeset
99 <output name="tabular_output" file="out_3.tabular" ftype="tabular"/>
58228a4d58fe planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 9f1c3ab3f41bab8ff962aca1478c75e538e5bf6a
iuc
parents: 2
diff changeset
100 </test>
58228a4d58fe planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 9f1c3ab3f41bab8ff962aca1478c75e538e5bf6a
iuc
parents: 2
diff changeset
101 <test>
58228a4d58fe planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 9f1c3ab3f41bab8ff962aca1478c75e538e5bf6a
iuc
parents: 2
diff changeset
102 <param name="input_tabular" value="in_1_headerless.tabular,in_2_headerless.tabular,in_3_headerless.tabular" ftype="tabular"/>
58228a4d58fe planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 9f1c3ab3f41bab8ff962aca1478c75e538e5bf6a
iuc
parents: 2
diff changeset
103 <param name="identifier_column" value="1"/>
58228a4d58fe planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 9f1c3ab3f41bab8ff962aca1478c75e538e5bf6a
iuc
parents: 2
diff changeset
104 <param name="has_header" value="0"/>
58228a4d58fe planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 9f1c3ab3f41bab8ff962aca1478c75e538e5bf6a
iuc
parents: 2
diff changeset
105 <param name="old_col_in_header" value="false"/>
58228a4d58fe planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 9f1c3ab3f41bab8ff962aca1478c75e538e5bf6a
iuc
parents: 2
diff changeset
106 <param name="fill_char" value="."/>
58228a4d58fe planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 9f1c3ab3f41bab8ff962aca1478c75e538e5bf6a
iuc
parents: 2
diff changeset
107 <param name="include_outputs" />
58228a4d58fe planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 9f1c3ab3f41bab8ff962aca1478c75e538e5bf6a
iuc
parents: 2
diff changeset
108 <output name="tabular_output" file="out_4.tabular" ftype="tabular"/>
58228a4d58fe planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 9f1c3ab3f41bab8ff962aca1478c75e538e5bf6a
iuc
parents: 2
diff changeset
109 </test>
0
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
110 </tests>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
111 <help>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
112 <![CDATA[
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
113 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
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 -----
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
116
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
117 **Example**
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 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
120
4
071084070619 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 11d99b82e4e78f3077bc5f6997403b602b8a8423
iuc
parents: 3
diff changeset
121 **First file (in_1)**::
0
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
122
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
123 #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
124 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
125 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
126 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
127
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
128
4
071084070619 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 11d99b82e4e78f3077bc5f6997403b602b8a8423
iuc
parents: 3
diff changeset
129 **Second File (in_2)**::
0
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
130
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
131 #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
132 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
133 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
134 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
135
4
071084070619 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 11d99b82e4e78f3077bc5f6997403b602b8a8423
iuc
parents: 3
diff changeset
136 **Third file (in_3)**::
0
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
137
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
138 #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
139 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
140 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
141 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
142
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
143
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
144 **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
145
4
071084070619 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 11d99b82e4e78f3077bc5f6997403b602b8a8423
iuc
parents: 3
diff changeset
146 #KEY in_1_c2 in_1_c3 in_1_c4 in_2_c2 in_2_c3 in_2_c4 in_3_c2 in_3_c3 in_3_c4
0
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
147 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
148 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
149 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
150
3
58228a4d58fe planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 9f1c3ab3f41bab8ff962aca1478c75e538e5bf6a
iuc
parents: 2
diff changeset
151
4
071084070619 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 11d99b82e4e78f3077bc5f6997403b602b8a8423
iuc
parents: 3
diff changeset
152 **Joining** the files, using **identifier column of 1** and a **header lines of 1**, but disabling **Add column name to header**, will return::
3
58228a4d58fe planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 9f1c3ab3f41bab8ff962aca1478c75e538e5bf6a
iuc
parents: 2
diff changeset
153
4
071084070619 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 11d99b82e4e78f3077bc5f6997403b602b8a8423
iuc
parents: 3
diff changeset
154 #KEY in_1 in_1 in_1 in_2 in_2 in_2 in_3 in_3 in_3
3
58228a4d58fe planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 9f1c3ab3f41bab8ff962aca1478c75e538e5bf6a
iuc
parents: 2
diff changeset
155 one 1-1 1-2 1-3 2-1 2-2 2-3 3-3 3-2 3-3
58228a4d58fe planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 9f1c3ab3f41bab8ff962aca1478c75e538e5bf6a
iuc
parents: 2
diff changeset
156 three 1-7 1-8 1-9 2-7 2-8 2-9 3-7 3-8 3-9
58228a4d58fe planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 9f1c3ab3f41bab8ff962aca1478c75e538e5bf6a
iuc
parents: 2
diff changeset
157 two 1-4 1-5 1-6 2-4 2-5 2-6 3-4 3-5 3-6
58228a4d58fe planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 9f1c3ab3f41bab8ff962aca1478c75e538e5bf6a
iuc
parents: 2
diff changeset
158
0
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
159 ]]>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
160 </help>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
161 <citations>
2f120a5c49b1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/collection_column_join commit 3b918f5a99ea13ec5acc7cc5fdd310fadb773ac0
iuc
parents:
diff changeset
162 </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
163 </tool>