summit_peak {FunChIP} | R Documentation |
It identifies the summit of the peak and stores it in a new metadata column.
## S4 method for signature 'GRanges' summit_peak(object, summit = NULL, rescale = FALSE)
object |
GRanges object of length N. If |
summit |
vector of length N. It contains the x coordinate of the summit of the peaks, i.e.
the distance of the summit from the starting position of the spline approximation of peak (distance
from |
rescale |
logical. If |
the GRanges object with the new metadata column summit_spline
. In case of rescale = TRUE
an extra metadata column summit_spline_rescaled
is added, containing the summit of the scaled peak.
Alice Parodi, Marco J. Morelli, Laura M. Sangalli, Piercesare Secchi, Simone Vantini
# load the data data(peaks) # Computing the summits of the peaks from # the spline-smoothed approximation. peaks.spline.summit <- summit_peak(peaks.data.smooth)