mergePeaks: Merge BED files

Description Usage Arguments Value Author(s) Examples

View source: R/mergePeaks.R

Description

Merge multiple peak files

Usage

1
mergePeaks(peaks, maxPeakWidth = 5000, ...)

Arguments

peaks

BED filenames which indicate the peaks or an GRangesList or GRanges object could be used as input peaks.

maxPeakWidth

maximal peak width. If greater than maxPeakWidth, the peak will be divided in half to fit the parameter.

...

parameters could be passed to import

Value

an object of GRanges

Author(s)

Jianhong Ou

Examples

1
2
3
path <- system.file("extdata", package = "diffPeaks", mustWork = TRUE)
peaks <- dir(path, "bed$")
p <- mergePeaks(file.path(path, peaks))

jianhong/diffPeaks documentation built on May 22, 2019, 12:37 p.m.