Encode a jsonlines file with records to a tab-separated file with coordinates.
Médéric Hurier 2b47c6b3ed Update 'LICENSE.txt' 2 months ago
examples More tests 1 year ago
.gitignore More tests 1 year ago
LICENSE.txt Update 'LICENSE.txt' 2 months ago
README.md Update README.md 8 months ago
tsvcoord.clj Merged 1 year ago
tsvcoord_test.clj More tests 1 year ago



Sparse matrix extracted from row oriented databases are painful to transpose to a column oriented format.

This script help you make this transformation, by encoding the structure to a TSV file of coordinates.

Then, you can sort the coordinates to change their orientation or keep the output structure.

NOTE: this script requires Clojure Boot


cat rows.jsonlines | ./tsvcoord.clj -k ID -E ID > coords.tsv

where ID is the column identifier


You can find more examples in the examples/ folder.