Closed Dev-RDV closed 3 years ago
Oh, sorry for that - we changed quite some code since. Maybe better to use a more updated tutorial such as this here: SpectraTutorials.
And for the removePeaks
- we changed/renamed that function now into filterIntensity
. To have the original usage you can use filterIntensity(sps, intensity = 500)
, but you can now define also a lower and upper limit for the intensity or alternatively define a function
to support a spectra data dependent filter. Maybe check also the Spectra
vignette and ?Spectra
help page for more information.
Dear @jorainer, Thanks for the guidance. Now everything worked perfectly. Sincerely,
Hi,
I am following the tutorial proposed in http://eurobioc2019.bioconductor.org/slides/Flashlight3/Spectra.html#1
However, I am not able to execute the removePeaks and clean functions. I loaded only the Spectra package to avoid any interference.
In the step:
the error is: Error in removePeaks (., Threshold = 500): could not find function "removePeaks"
I tried to call removePeaks by MSnbase and then the error changed:
Error in (function (classes, fdef, mtable): unable to find an inherited method for function ‘removePeaks’ for signature ‘" Spectra "’
Here is my entire code with session information:
Error in clean(., all = TRUE) : could not find function "clean"