Skip to contents

Calculate the fit for a dose-response curve

Usage

calculateCurveFit(intmat, idx, verbose = TRUE, ...)

Arguments

intmat

Intensity matrix as generated by MALDIquant::intensityMatrix() with rownames as the respective concentrations of the spectra.

idx

Numeric vector of the mz indices to perform the fit.

verbose

Logical, print logs to console.

...

Additional arguments passed to nplr::nplr().

Value

List of curve fits.

Examples

data(Blank2022intmat)

# for faster runtime we let it run on 5 peaks only
fits <- calculateCurveFit(Blank2022intmat, idx = 1:5)
#> fitting 402.407 (1/5)
#> fitting 406.997 (2/5)
#> fitting 407.016 (3/5)
#> fitting 408.043 (4/5)
#> fitting 408.062 (5/5)