get_smoothed_data: Get smoothed distances to reference and estimates of standard...

Description Usage Arguments Value

View source: R/variation_plot.R

Description

Get smoothed distances to reference and estimates of standard deviation.

Usage

 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
)

Arguments

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.

Value

A data.table with denoised and smoothed estimates of distances to the median reference run.


MatteoLacki/LFQBench2 documentation built on April 4, 2020, 7:10 a.m.