seqRecompress {SeqArray} | R Documentation |
Recompress the SeqArray GDS file.
seqRecompress(gds.fn, compress=c("ZIP", "LZ4", "LZMA", "Ultra", "UltraMax", "none"), exclude=character(), optimize=TRUE, verbose=TRUE)
gds.fn |
the file name of SeqArray file |
compress |
the compression method, |
exclude |
excluded GDS nodes |
optimize |
if |
verbose |
if |
This function requires gdsfmt (>= v1.17.2). seqVCF2GDS
usually
takes lots of memory when the compression method "LZMA_RA.max"
,
"Ultra"
or "UltraMax"
is specified. So users could call
seqVCF2GDS(, storage.option="ZIP_RA")
first, and then recompress the
GDS file with a higher compression option, e.g., "UltraMax"
.
seqRecompress()
takes much less memory, since it recompresses data in
a GDS node each time.
None.
Xiuwen Zheng
gds.fn <- seqExampleFileName("gds") file.copy(gds.fn, "tmp.gds") seqRecompress("tmp.gds", "LZMA") unlink("tmp.gds")