calibrateScaling: Calibrate Peak Height Scaling

Description Usage Arguments Details Value

View source: R/calibrateScaling.r

Description

Corrects the peak height scaling intercept.

Usage

1
2
3
calibrateScaling(data, ref = NULL, target, c.min = 0, c.max = 10000,
  min.step.size = 1e-04, exact.matching = FALSE, progress = FALSE,
  .i = 1)

Arguments

data

data.frame simulated data.

ref

data.frame with reference profiles for the simulated data. If NULL the best guess will be used (see guessProfile).

target

numeric target average peak height 'H'.

c.min

numeric the smallest correction factor in the current range.

c.max

numeric the largest correction factor in the current range.

min.step.size

numeric threshold. Exit function when step size is this small.

exact.matching

logical to indicate exact reference sample to dataset sample name matching.

progress

logical flag to show progress messages.

.i

integer internal counter for number of iterations.

Details

Finds the scaling factor correction that gives the best fit between the simulated peak heights and the target average peak height. This is the final step in calibrating pcrsim for a specific kit and method.

Value

numeric corrected scaling intercept.


pcrsim documentation built on May 29, 2017, 3:53 p.m.