Learn R Programming

pcrsim (version 1.0.1)

calibrateScaling: Calibrate Peak Height Scaling

Description

Corrects the peak height scaling intercept.

Usage

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.

Value

numeric corrected scaling intercept.

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.