Description Usage Arguments Value Author(s) Examples
It identifies the summit of the peak and stores it in a new metadata column.
1 2 | ## 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
1 2 3 4 5 6 7 | # load the data
data(peaks)
# Computing the summits of the peaks from
# the spline-smoothed approximation.
peaks.spline.summit <- summit_peak(peaks.data.smooth)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.