Question: ReadMSData problem with xcms
0
gravatar for bhgyu
21 months ago by
bhgyu30
bhgyu30 wrote:

Hello, 

I cannot work out how to make the readMSData function work?

I get an error message. Anyone had this before and know how to solve it? Cheers!

temp = list.files(pattern="*.CDF")

readMSData(temp, pdata = pheno)
Polarity can not be extracted from netCDF files, please set manually the polarity with the 'polarity' method.
Error in readMSData(temp, pdata = pheno) : 
  No MS(n>1) spectra in file meta1.CDF
xcms readmsdata • 987 views
ADD COMMENTlink modified 21 months ago by Johannes Rainer1.5k • written 21 months ago by bhgyu30
Answer: ReadMSData problem with xcms
1
gravatar for Johannes Rainer
21 months ago by
Johannes Rainer1.5k
Italy
Johannes Rainer1.5k wrote:

readMSData with mode = "inMem" (the default) will by default read only MS level >= 2 from the input files. If you are going to use xcms you should use readMSData(temp, pdata = pheno, mode = "onDisk") which will a) read all MS levels from the input file and b) return a OnDiskMSnExp object that you need for xcms. OnDiskMSnExp objects don't read the full MS data into memory and are thus lightweight.

cheers, jo

ADD COMMENTlink written 21 months ago by Johannes Rainer1.5k

Worked perfectly! Thanks so much Johannes!

ADD REPLYlink written 21 months ago by bhgyu30
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 175 users visited in the last hour