| compression {BiocIO} | R Documentation |
File compression
Description
Methods and generics for file compression strategies.
Usage
decompress(manager, con, ...)
## S4 method for signature 'ANY'
decompress(manager, con, ...)
## S4 method for signature 'CompressedFile'
decompress(manager, con, ...)
## S4 method for signature 'character'
decompress(manager, con, ...)
## S4 method for signature 'CompressedFile'
fileFormat(x)
Arguments
manager |
The connection manager, defaults to the internal |
con |
The connection from which data is loaded or to which data is
saved. If this is a |
... |
Parameters to pass to the format-specific method. |
x |
A |
Value
A decompressed representation of a CompressedFile or character
object
Related functions
-
FileForFormat(path, format = file_ext(path)): Determines the file type ofpathand returns a high-level file object such as BamFile, BEDFile, BigWigFile, etc.
Examples
file <- tempfile(fileext = ".gzip")
decompress(con = file)