lua.wetgenes.tsv
(C) 2020 Kriss Blank under the https://opensource.org/licenses/MIT
local wtsv = require("wetgenes.tsv")
Load and save tsv files https://pypi.org/project/linear-tsv/1.0.0/
The following need to be escaped with a \ when used in each column.
\n for newline,
\t for tab,
\r for carriage return,
\\ for backslash.
When loading we read the entire file and keep all the text in one string with function lookups to cut out sections of that string as needed.
lua.wetgenes.tsv.close
get or set a line of data as a table of strings
lua.wetgenes.tsv.create
wtsv.create()
wtsv.create({filename="filename.tsv"})
wtsv.create({basedata="1\t2\t3\n4\t5\t6\n"})
Create a tsv, possibly from a datachunk or file
lua.wetgenes.tsv.flush
save recent changes to disk, appended to loaded file
lua.wetgenes.tsv.load
save a tsv file to tsv.filename