Estimate the nucleosome repeat length (NRL) from the frequencies
of same-strand alignment distances (phasogram), e.g. generated by
calcPhasogram. The NRL is obtained from the slope of a linear
fit to the modes in the phasogram.
numeric vector giving the counts of alignment distances
(typically the output of calcPhasogram.
integer(1) specifying the minimal distance to be used for
NRL estimation. The default value (140) ignores any distance too short to
span at least a single nucleosome.
integer vector selecting the modes (peaks) in the
phasogram used in NRL estimation.
numeric(1) giving the smoothing parameter for de-trending
loess fit (high pass filter).
numeric(1) giving the smoothing parameter for de-noising
loess fit (low pass filter).
A list with elements:
the estimated nucleosome repeat length
the 95% confidence interval
smoothed (de-trended) phasogram
the de-noising fit to the de-trended phasogram
the linear fit to the phasogram peaks
the peak locations
minimal distance included in the fit
smoothing parameter for de-trending loess fit
smoothing parameter for de-noising loess fit
the peaks used in the fit
calcPhasogram to calculate the phasogram from
alignments, plotPhasogram to visualize an annotated phasogram
# see the help for calcPhasogram() for a full example