Usage
mergePlusMinusPeaks(peaks.gr, peak.height.mcol = "count", bg.height.mcol = "bg", distance.threshold = 40L, max.overlap.plusSig.minusSig = 10L, plus.strand.start.gt.minus.strand.end = TRUE, output.bedfile)
Arguments
peaks.gr
Specify the peaks as GRanges object, which should contain peaks
from both plus and minus strand. In addition, it should contain peak height
metadata column to store peak height and optionally background height.
peak.height.mcol
Specify the metadata column containing the peak height, default to count
bg.height.mcol
Specify the metadata column containing the background height, default to bg
distance.threshold
Specify the maximum gap allowed between the plus stranded and
the negative stranded peak, default 40. Suggest set it to twice of
window.size used for peak calling.
max.overlap.plusSig.minusSig
Specify the cushion distance (maximum overlap between plus strand peak and minus strand peak).
Default to 10L to allow sequence error and inprecise integration. Only applicable
if plus.strand.start.gt.minus.strand.end is set to TRUE.
plus.strand.start.gt.minus.strand.end
Specify whether plus strand peak start greater than
the paired negative strand peak end. Default to TRUE
output.bedfile
Specify the bed output file name, which is used for off target analysis
subsequently.