seqRecompress | 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 |
a list of GDS nodes to be excluded, see details |
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 than seqVCF2GDS()
,
since it recompresses data in a GDS node each time.
"UltraMax"
might be not better than "Ultra"
, and its behavior
is similar to xz -9 --extreme
: use a slower variant of the selected
compression preset level (-9) to hopefully get a little bit better compression
ratio, but with bad luck this can also make it worse.
ls.gdsn(gdsfile, include.hidden=TRUE, recursive=TRUE)
returns a list
of GDS nodes to be re-compressed, and users can specify the excluded nodes in
the argument exclude
.
None.
Xiuwen Zheng
seqVCF2GDS
, seqStorageOption
gds.fn <- seqExampleFileName("gds")
file.copy(gds.fn, "tmp.gds")
seqRecompress("tmp.gds", "LZMA")
unlink("tmp.gds")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.