UnzipAndMergeBed {enrichTF} | R Documentation |
This function process region BED files in three step: First, unzip the gzip and bzip2 BED input files. Second, select first 3 columns of the BED files. Third, merge the BED files into one BED.
enrichUnzipAndMergeBed(prevStep, bedInput = NULL, bedOutput = NULL, ...) ## S4 method for signature 'Step' enrichUnzipAndMergeBed(prevStep, bedInput = NULL, bedOutput = NULL, ...) unzipAndMergeBed(bedInput, bedOutput = NULL, ...)
prevStep |
|
bedInput |
|
bedOutput |
|
... |
Additional arguments, currently unused. |
All compressed files will be de-compressed. Only first 3 columns (chromasomes, start and end) will be collected. All BED files will be merged into one BED file.
An invisible EnrichStep-class
object (inherit from Step-class
) scalar for downstream analysis.
Zheng Wei
foregroundBedPath <- system.file(package = "enrichTF", "extdata","testregion.bed.gz") gen <- unzipAndMergeBed(bedInput = foregroundBedPath)