1
XCMS / Re: How to access data returned by getEIC?
Code: [Select]
temp <- attr(eicm,"eic")Sorry for the noise.
rtime <- temp$xcmsRaw[[1]][,1] # get rt's
intensity <- temp$xcmsRaw[[1]][,2] # get intensities
This section allows you to view all Show Posts made by this member. Note that you can only see Show Posts made in areas you currently have access to.
temp <- attr(eicm,"eic")Sorry for the noise.
rtime <- temp$xcmsRaw[[1]][,1] # get rt's
intensity <- temp$xcmsRaw[[1]][,2] # get intensities
filename <- "#4606.mzXML"and get an extracted ion chromatogram with
xraw <- xcmsRaw(filename)
mzr <- cbind(179.9,180.3)but for further processing I would now like to access the values for 'rt' and 'intensity' as displayed by
rtr <- cbind(397,1560.3)
eicm <- getEIC(xraw, mzrange = mzr, rtrange = rtr)
> attr(eicm,"eic")Could somebody please help with the required voodoo?
$xcmsRaw
$xcmsRaw[[1]]
rt intensity
[1,] 397.022 1425
[2,] 397.241 13700
...
[5510,] 1560.069 0
[5511,] 1560.288 36000