Hello,
I have XMS data files from a Scion GC-MS that I converted in netCDF. I would like to do some data preprocessing before any statistical analysis by using MSnbase and XCMS libraries.
When I use the readMSData from MSnbase on my CDF files, I get this warning: "Polarity can not be extracted from netCDF files, please set manually the polarity with the 'polarity' method." I thought at first that I could set the polarity in the object afterwards but the function get stuck at this step.
If someone have a solution for that or to convert my XMS files into the recommended mzXML format, thank you.
Best regards, Julien Kermorvant
Dear Johannes,
Thank you for your quick answer.
I tried to read only one of my files and it is working fine, it took about 10 or 15 minutes though. I'm currently trying to read all my 50 files and it is not finished yet, I checked the performances of my computer and it use only a third of it's capacity and I still have free memory.
Is there any parameter to accelerate the reading ? I'm already using the "inMemory" mode.
Best regards, Julien Kermorvant
Note that
xcms
does not support analyzing in-memory data. If you plan to usexcms
I suggest you use themode = "onDisk"
- which is also much faster because it does not import all the spectra data into memory (and laterxcms
will allow you to process the files in parallel).Thank you a lot, it does work a lot faster. I can finally start working on my data.
Best regards, Julien
In addition to Jo's comment regarding in-memory vs on-disk reading times, you can find a short benchmark here and a more extensive one in the latest MSnbase pre-print.
Thank you, it's very interesting!
Best regards, Julien