binning: Bin m/z values

Description Usage Arguments Details Value Author(s) Examples

Description

Bin m/z values

Usage

1
binning(msp, tol = 0.01, group = NULL, method = c("median", "mean"), verbose = FALSE)

Arguments

msp

MSP-object, see ?convert2MSP for further information

tol

numerical, boundary value until which neighboured peaks will be joined together

group

character vector, to which group does the entry belong to

method

character vector, method has to be median or mean

verbose

logical vector, if set to TRUE information will be printed if groups were not detected

Details

The functions binning bins fragments together by obtaining bins via calculating either mean or medians of fragments which were put in intervals according to the tol parameter.

Value

binning returns a matrix where rownames are precursor ions (m/z / retention time) and colnames are newly calculated m/z values which were binned. Entires are intensity values in

Author(s)

Thomas Naake, thomasnaake@googlemail.com

Examples

1
2
data("idMSMStoMSP", package = "MetCirc")
binning(msp = finalMSP, tol = 0.01, group = NULL, method = "median", verbose = FALSE)

PlantDefenseMetabolism/MetabolomicTools documentation built on May 8, 2019, 2:53 p.m.