GenomeComb
cg keyvalue ?options? ?infile? ?outfile?
Converts data in tsv format from wide format (data for each sample in separate columns) to keyvalue format.
Converts a tsv file containing different values of an object in one row (different fields) into a key-value format: Each of the rows is split into multiple rows (one for each data column) containing fields identifying the object followed by the fields key (fieldname of data column in original) \ and value (value in the data column).
The fields identifying the object can be specified using the -idfields option, but defaults to sample or id. sample as id field is treated special (unless an actual sample field is present in the file): The actual sample value is extracted from the fieldname (field-sample).
Format Conversion