Description Usage Arguments Value
View source: R/variation_plot.R
Get smoothed distances to reference and estimates of standard deviation.
1 2 3 4 5 6 7 8 9 10 | get_smoothed_data(
x,
runs,
ids,
min_observed_cnt = 2,
window_size = 11,
mad_cnt = 2,
spline.df = 30,
grid.points.cnt = 100
)
|
x |
Array of values to smooth. |
runs |
Each entries indicate the run at which the corresponding entry of x was measured. |
ids |
Classifies entries of x as being the measurement of the same entity, e.g. a peptide. |
min_observed_cnt |
The minimal number of runs the measurements were recorded. |
window_size |
An integer describing how many points are considered in the calculation of rolling medians and MADs. |
mad_cnt |
Numeric value: how many MAD from the median should be calculated for the ribbons. Non positive values result in the absence of a ribbon. |
spline.df |
Degrees of freedom for the spline extrapolating the rolling medians and rolling MADs. |
grid.points.cnt |
Number of points in the grid extrapolating the rolling medians and rolling MADS. |
A data.table with denoised and smoothed estimates of distances to the median reference run.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.