wlcutter: Set intensities of a given bandpass to a preset value...

Description Usage Arguments Value

View source: R/wlcutter.R

Description

This function converts takes a list of MALDIquant::massSpectrum objects and sets the intensitiy values between certain wavelengths to a given value. By default, this value is zero, as this function can be used to remove errant peaks from the spectra.

Usage

1
wlcutter(x, lower_wl = 900L, upper_wl = 1100L, new_intens = 0L)

Arguments

x

a list of MALDIquant::massSpectrum objects

lower_wl

an integer of the lower boundary of wavelenghts to replace intensities for (defaults to 900)

upper_wl

an integer of the upper boundary of wavelengths to replace intensities for (defaults to 1100)

new_intens

new intensity value to assign to all peaks between lower_wl and upper_wl. Defaults to 0. Needs to be a single integer value (for now).

Value

a list of MALDIquant::massSpectrum objects with replaced intensities


CMET-UGent/MicroRaman documentation built on July 25, 2020, 6:20 p.m.