xcms icon indicating copy to clipboard operation
xcms copied to clipboard

Build error and tons of "No data points ... Returning empty spectrum."

Open sneumann opened this issue 4 years ago • 2 comments

Loading required package: GenomeInfoDb
Polarity can not be extracted from netCDF files, please set manually the polarity with the 'polarity' method.
Warning in trimMz_Spectrum(object, mzlim = mz, msLevel. = msLevel., ...) :
  No data points between 334.9 and 335.1 for spectrum with acquisition
number 128. Returning empty spectrum.
Warning in trimMz_Spectrum(object, mzlim = mz, msLevel. = msLevel., ...) :
  No data points between 334.9 and 335.1 for spectrum with acquisition
number 131. Returning empty spectrum.
Warning in trimMz_Spectrum(object, mzlim = mz, msLevel. = msLevel., ...) :
  No data points between 334.9 and 335.1 for spectrum with acquisition
number 132. Returning empty spectrum.

sneumann avatar Jun 14 '21 11:06 sneumann

The warnings come from the filterMz (trimMz) function from MSnbase. Everything above is only a warning, so that should not cause a build error.

jorainer avatar Jun 14 '21 12:06 jorainer

Seems that the error comes from the estimatePrecursorIntensity which is now also available in the Spectra package. I could fix this quickly if OK.

jorainer avatar Jun 16 '21 06:06 jorainer