xcmsAvgHyperSpec: A function that retrieve averaged spectra from a xcmsRaw...

Description Usage Arguments Value

Description

From a xcmsRaw object (with multiple scans), this function returns a hyperSpec object (averaged spectrum). As this function only accepts one object, later merging would be necessary to construct a hyperSpec object with multiple spectra (use rbind()).

Usage

1
2
xcmsAvgHyperSpec(xcmsraw, scans = NULL, msLevel = 1, step = 0.01,
  mzrange = NULL)

Arguments

xcmsraw

An object of class xcmsRaw class

scans

A numeric vector (default NULL returns average of all the scans). Scan index within the ms level, not an actual scan number.

msLevel

MS level (MS1 or MS2). Either 1 or 2. Default, 1 (MS1).

step

Numeric (default 0.01). The step size of x axis to which the raw data is interpolated.

mzrange

Range of m/z to be included in the output hyperSpec object. By default, the min and max values of m/z in the data are used.

Value

Returns an object of class hyperSpec.


ohgane/ShotgunLipidomicsR documentation built on May 24, 2019, 11:55 a.m.