GenomeComb
cg colvalue ?options? ?infile? ?outfile?
Converts data in tsv format from a long key-value format to a wide column-value format
In a file in long key-value format, each value is in a separate line, where each line has identifier fields indicating the object, key fields defining what the value descibes about the object, and a value field containing the actual value. "cg colvalue" converts these files to a wide col-value format, where all values about the object are on the same line in different columns.
The fields identifying the object can be specified using the -idfields option. If not given, all fields except the key and value fields will be used as idfields.
This command is similar to the cg wide command, but more generic. cg wide is specifically made for conveniently converting variant files (to wide variant file format with samples). cg colvalue can be used to "transpose" any tsv file.
Format Conversion