average_spectrum: Generating consensus spectra

View source: R/average_spectrum.r

average_spectrumR Documentation

Generating consensus spectra

Description

Internal function that merges a list of normalized spectra that belong to the same ID

Usage

average_spectrum(splist, ppm_window = 10, clean = F)

Arguments

splist

List of extracted spectra. Each spectrum is a data matrix with two columns: m/z and intensity

ppm_window

m/z tolerance window (in ppm) for spectra alignment

clean

Logical. TRUE if peaks not present in all spectra are filtered.

Value

new_spectrum ~ The aligned, (filtered) and averaged consensus spectra: data matrix with two columns (m/z and intensity)


daniellyz/MergeION documentation built on Oct. 19, 2022, 1:56 p.m.