make_spectrum_peakpick: make_spectrum_peakpick

Description Usage Arguments

View source: R/make_spectrum_peakpick.R

Description

make_spectrum_peakpick

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
make_spectrum_peakpick(
  MSspectrum = NULL,
  mz = NULL,
  intensity = NULL,
  SNR = 10,
  method = "MAD",
  refineMz = "kNeighbors",
  k = 2,
  binSize = 0.05
)

Arguments

MSspectrum

An MSnbase Spectrum1 object.

mz

A numeric vector containing m/z values for a spectrum.

intensity

A numeric vector containing intensity values for a spectrum.

SNR

Signal-to-noise cutoff to use for peak picking. See ?MSnbase::pickPeaks.

method

Method to use for peak picking. See ?MSnbase::pickPeaks.

refineMz

Method for m/z refinement for peak picking. See ?MSnbase::pickPeaks.

k

Number of neighboring signals to use for m/z refinement if refineMz = "kNeighbors". See ?MSnbase::pickPeaks.

binSize

Bin size to use for peak binning prior to comparing spectra. See ?MSnbase::bin.


davidsbutcher/abundancer documentation built on Feb. 21, 2022, 2:13 p.m.