sdMassSpectrum: Compute standard-deviation spectra

View source: R/sdMassSpectrum.R

sdMassSpectrumR Documentation

Compute standard-deviation spectra

Description

This is a fork from sgibb's MALDIquant::averageMassSpectra() function. It is now able to compute "standard-deviation spectra".

Usage

sdMassSpectrum(l, labels, ...)

Arguments

l

list, list of MassSpectrum objects.

labels

list, list of factors (one for each MassSpectrum object) to do groupwise averaging.

...

arguments to be passed to underlying functions (currently only mc.cores is supported).

Value

Returns a single (no labels given) or a list (labels given) of standard-deviation spectra as MassSpectrum objects.

Examples

data(Blank2022spec)

sdMassSpectrum(Blank2022spec, labels = names(Blank2022spec))[[1]]

MALDIcellassay documentation built on Sept. 11, 2024, 8:29 p.m.