Mercurial > repos > bgruening > text_processing
comparison multijoin @ 5:20344ce0c811 draft
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit b9d202134c3c6d0e5c398c3ae75e410067fcfc52
author | bgruening |
---|---|
date | Wed, 23 Nov 2016 15:56:41 -0500 |
parents | 5314e5d6f040 |
children |
comparison
equal
deleted
inserted
replaced
4:288462ec2630 | 5:20344ce0c811 |
---|---|
3 use warnings; | 3 use warnings; |
4 use Getopt::Long qw(:config no_ignore_case); | 4 use Getopt::Long qw(:config no_ignore_case); |
5 use Data::Dumper; | 5 use Data::Dumper; |
6 use Carp; | 6 use Carp; |
7 use File::Basename; | 7 use File::Basename; |
8 use Sort::Key::Natural qw(natsort); | |
9 | 8 |
10 my $version = "0.1.1"; | 9 my $version = "0.1.1"; |
11 my $field_sep = "\t"; | 10 my $field_sep = "\t"; |
12 my $key_column; | 11 my $key_column; |
13 my @values_columns; | 12 my @values_columns; |
66 or die "Output error: can't write output line: $!\n"; | 65 or die "Output error: can't write output line: $!\n"; |
67 } | 66 } |
68 | 67 |
69 sub print_combined_data() | 68 sub print_combined_data() |
70 { | 69 { |
71 my @keys = natsort keys %data ; | 70 my @keys = sort keys %data ; |
72 | 71 |
73 foreach my $key ( @keys ) { | 72 foreach my $key ( @keys ) { |
74 my @outputs; | 73 my @outputs; |
75 | 74 |
76 foreach my $file (@input_files) { | 75 foreach my $file (@input_files) { |
245 | 244 |
246 -f X | 245 -f X |
247 --filler X Fill missing values with X. | 246 --filler X Fill missing values with X. |
248 (Default: '$filler'). | 247 (Default: '$filler'). |
249 | 248 |
250 --labels When printning output headers with '-h', instead of using the file name, | 249 --labels When printing output headers with '-h', instead of using the file name, |
251 use specific labels. | 250 use specific labels. |
252 Each file name must be followed by a name. | 251 Each file name must be followed by a name. |
253 | 252 |
254 example (without labels): | 253 example (without labels): |
255 \$ multijoin -h -k 1 -v 2 A.TXT B.TXT C.TXT | 254 \$ multijoin -h -k 1 -v 2 A.TXT B.TXT C.TXT |