serialize the collection of XenSPEP and parquet with zip
zipXenSPEP(xsp, targetfile)
output of zip()
a .rds and three parquet files are zipped together for restoration by `restoreZipXenSPEP`. The outcome is `paste0(targetfile, ".zip")`.
zipXenSPEP
#> function (xsp, targetfile)
#> {
#> stopifnot(is(xsp, "XenSPEP"))
#> stopifnot(isTRUE(slot(xsp, "loaded")))
#> pas = unlist(lapply(c("cellbounds_path", "nucbounds_path",
#> "tx_path"), function(x) slot(xsp, x)))
#> rdstarg = paste0(basename(tempfile()), ".rds")
#> saveRDS(xsp, file = rdstarg, compress = "xz")
#> zip(targetfile, c(rdstarg, pas))
#> }
#> <bytecode: 0x622d50c33538>
#> <environment: namespace:xenLite>