msn2xcmsRaw: Copy MSn data in an xcmsRaw to the MS slots

Description Usage Arguments Details Value Author(s) See Also Examples

Description

The MS2 and MSn data is stored in separate slots, and can not directly be used by e.g. findPeaks(). msn2xcmsRaw() will copy the MSn spectra into the "normal" xcmsRaw slots.

Usage

1

Arguments

xmsn

an object of class xcmsRaw that contains spectra read with includeMSn=TRUE

Details

The default gap value is determined from the 90th percentile of the pair-wise differences between adjacent mass values.

Value

An xcmsRaw object

Author(s)

Steffen Neumann sneumann@ipb-halle.de

See Also

xcmsRaw,

Examples

1
2
3
4
 msnfile <- system.file("microtofq/MSMSpos20_6.mzML", package = "msdata")
 xrmsn <- xcmsRaw(msnfile, includeMSn=TRUE)
 xr <- msn2xcmsRaw(xrmsn)
 p <- findPeaks(xr, method="centWave")

benjiec/xcms documentation built on May 12, 2019, 11:57 a.m.