Metabolomics Society Forum

Software => R => XCMS => Topic started by: Cole Wunderlich on March 13, 2014, 03:42:09 PM

Title: rawEIC return in seconds
Post by: Cole Wunderlich on March 13, 2014, 03:42:09 PM
Is there any way to get rawEIC() to return Rt time in seconds instead of scan number?

Thanks,
Cole
Title: Re: rawEIC return in seconds
Post by: sneumann on March 14, 2014, 12:40:06 AM
Hi Cole,

no, not directly. But you can:

Code: [Select]
library(faahKO)
library(xcms)
xr <- xcmsRaw(filepaths(faahko)[1])
e <- rawEIC(xr, mzrange=c(300.5, 301.5))
xr@scantime[e$scan]

Yours,
Steffen
Title: Re: rawEIC return in seconds
Post by: Cole Wunderlich on March 21, 2014, 11:49:59 AM
Ok, thanks for your help!

Cole