Mercurial > repos > bgruening > text_processing
comparison multijoin @ 12:062ed2bb4f2e draft
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit f8896018f5b980a456c4ceaffe0ed457dc80b5a8
| author | bgruening |
|---|---|
| date | Thu, 02 Jun 2016 08:58:39 -0400 |
| parents | ec66f9d90ef0 |
| children | 3c685c4106b3 |
comparison
equal
deleted
inserted
replaced
| 11:e6d48dc4e6ba | 12:062ed2bb4f2e |
|---|---|
| 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) { |
