
Copy MSn data in an xcmsRaw to the MS slots
msn2xcmsRaw.RdThe 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.
Details
The default gap value is determined from the 90th percentile of the pair-wise differences between adjacent mass values.
Author
Steffen Neumann sneumann@ipb-halle.de
Examples
library(MsDataHub)
msnfile <- MsDataHub::PestMix1_DDA.mzML()
#> see ?MsDataHub and browseVignettes('MsDataHub') for documentation
#> loading from cache
xrmsn <- xcmsRaw(msnfile, includeMSn=TRUE)
#> Create profile matrix with method 'bin' and step 1 ...
#> OK
xr <- msn2xcmsRaw(xrmsn)