Closed jorainer closed 4 months ago
A nice use case for this function would be to filter a LC-MS data set keeping (or removing) all mass peaks that were considered a chromatographic peak by xcms-based preprocessing. This allows e.g. to evaluate the foreground (i.e. all quantified ion signal) and background signal (i.e. background noise, or signal that was not considered a valid chromatographic peak by xcms) of a full data set.
I will later add such a use case to the xcmsTutorials tutorial/workshop.
Thanks @philouail ! I addressed all of your points! Hope documentation is now a bit clearer. Happy for additional/extra feedback, otherwise I proceed and merge tomorrow.
filterPeaksRanges
function that allows to filter mass peaks in aSpectra
by any (combination of) numeric spectra and peaks variables.