Skip to contents

Function to apply peak picking parameters on a data subset

Usage

apply_peak_picking(
  data,
  method,
  ppm = 25,
  p_width = c(20, 50),
  snt = 3,
  noise = 1e+06,
  prefilter = c(1, 100),
  mz_diff = 0.001,
  bin = 0.1,
  fwhm = 30,
  sigma = 12.72,
  max = 10,
  steps = 2
)

Arguments

data

An MSnExp object in centroid mode.

p_width

Minium and maximum allowed peak width.

snt

Minimum signal-to-noise threshold allowed.

noise

Noise threshold.

prefilter

Prefilter step cutoff (c(k, I)). Mass will be retained if they contain at least k peaks with intensity >= I.