find_linearity: Function for finding linear MRD range

Description Usage Arguments Value See Also

Description

Function for finding linear MRD range

Usage

1
2
3
find_linearity(MRD, input_cancer_cells, max_deviation_threshold = 0.05,
  log = TRUE, log_offset = 1e-06, linearity.plot = TRUE,
  log_deviation = T)

Arguments

MRD

The measured MRD values

input_cancer_cells

The pre-specified input. Note: can be frequency or any other input value

log

Boolean for log10-transforming input_cancer_cells, default TRUE

log_offset

log offset for transformation to avoid log(0), default 1e-6

linearity.plot

If TRUE, returns a ggplot of the Total Error fit

log_deviation

If TRUE and if log==T, calculate deviation in log space. Otherwise, convert deviance to linear space.

max_deviance_threshold

Maximum deviation threshold from linearity

Value

Returns a list containing linear_range_min, linear_range_max and deviation within the linear range. If linearity.plot == TRUE, also contains a ggplot of the linear range.

See Also

PRO-00091


AdaptiveCompBio/EOS documentation built on May 26, 2019, 6:37 a.m.