| 1 | package Bin::TSV::Util ; | ||
| 2 | our $VERSION = '0.100' ; | ||
| 3 | our $DATE = '2021-05-28T22:40+0900' ; | ||
| 4 | |||
| 5 | =encoding utf8 | ||
| 6 | |||
| 7 | =head1 NAME | ||
| 8 | |||
| 9 | Bin::TSV::Util | ||
| 10 | |||
| 11 | =head1 SYNOPSIS | ||
| 12 | |||
| 13 | This module "Bin::TSV::Util" provides scripts for specific functions that deals especially TSV formatted data. | ||
| 14 | |||
| 15 | =head1 DESCRIPTION | ||
| 16 | |||
| 17 | The included commands are as follows. Only one of many major functions are explained for each command. | ||
| 18 | Note that all of the command here is designed based on Unix philosophy such as | ||
| 19 | "Write programs that do one thing and do it well", "Write programs to work together", and | ||
| 20 | "Write programs to handle text streams because that is a universal interface". | ||
| 21 | |||
| 22 | colsummary : Print the table about 8 statistics of each column of the input TSV file. | ||
| 23 | |||
| 24 | colorplus : By "colorplus -t 5" you can easily recognize to see how each column of a TSV file. | ||
| 25 | |||
| 26 | colchop : You can make it easy to see a TSV file in a "square" format even if the lengths of cell of the table differs. | ||
| 27 | |||
| 28 | collen : You can take the lenghts (byte size) of each cell of the input cell of the input TSV file. | ||
| 29 | |||
| 30 | keyvalues : "How many different values each key has?" for the input TSV files whose 1st column is regarded to be key. | ||
| 31 | |||
| 32 | kvcmp : For multiple TSV files, whether key-value relationship is the same or not will be checked. | ||
| 33 | |||
| 34 | colpairs : For a TSV with N columns, N x N matrix will be output to show every "two columns" pair statistics. | ||
| 35 | |||
| 36 | colhashS : For each column, the total of SHA1 value is output. Useful for a kind of rigorous check of data processing. | ||
| 37 | |||
| 38 | colsplit : Some kind of "column splitting" is performed. Try using it for understanding how it works. | ||
| 39 | |||
| 40 | crosstable : 2-way contingency table for 2 column TSV file. Also a crosstable each of whose cell shows the sum of the 3rd column. | ||
| 41 | |||
| 42 | colgrep : "grep" on a specifed column. | ||
| 43 | |||
| 44 | inarow : clealy show the rows grouping by the specific columns. | ||
| 45 | |||
| 46 | join2 : The alternative Unix command "join" or "SQL join", for 2 TSV files. | ||
| 47 | |||
| 48 | joinn : for N TSV files, each of whose 1st column is regarded to be key column, the values (all of not the key) of N files are alligned. | ||
| 49 | |||
| 50 | =over 4 | ||
| 51 | |||
| 52 | =item * | ||
| 53 | |||
| 54 | 1. B<something> ;; | ||
| 55 | |||
| 56 | =back | ||
| 57 | |||
| 58 | =head1 SEE ALSO | ||
| 59 | |||
| 60 | =cut | ||
| 61 | |||
| 62 | 1 ; |