A base class for all classes handling default parameters.
Definition DefaultParamHandler.h:66
Data processing pipeline for one Flow Injection Analysis MS (FIA-MS) sample.
Definition FIAMSDataProcessor.h:48
std::vector< float > bin_sizes_
Per-band sliding bin sizes parallel to mzs_; populated by updateMembers_.
Definition FIAMSDataProcessor.h:230
MSSpectrum mergeAlongTime(const std::vector< OpenMS::MSSpectrum > &input)
Sum input across the time axis into a single spectrum using a per-band sliding bin size.
SavitzkyGolayFilter sgfilter_
Smoothing filter used by extractPeaks; configured from sgf:* parameters.
Definition FIAMSDataProcessor.h:231
void cutForTime(const MSExperiment &experiment, const float n_seconds, std::vector< MSSpectrum > &output)
Append spectra of experiment whose retention time is strictly less than n_seconds to output.
MSSpectrum extractPeaks(const MSSpectrum &input)
Smooth input with the configured SavitzkyGolayFilter and pick peaks via PeakPickerHiRes.
PeakPickerHiRes picker_
Peak picker used by extractPeaks; configured from the picker's own parameter section.
Definition FIAMSDataProcessor.h:232
MSSpectrum trackNoise(const MSSpectrum &input)
Build a parallel "noise level" spectrum: per-peak m/z carried over, intensity replaced by the local n...
const std::vector< float > & getBinSizes()
Return the per-band sliding bin sizes used by mergeAlongTime.
bool run(const MSExperiment &experiment, const float n_seconds, OpenMS::MzTab &output, const bool load_cached_spectrum=true)
Run the full FIA-MS pipeline for one time window and (re)compute the accurate-mass-search result.
~FIAMSDataProcessor() override=default
Default destructor.
FIAMSDataProcessor & operator=(const FIAMSDataProcessor &fdp)=default
Copy assignment.
void storeSpectrum_(const MSSpectrum &input, const std::string &filename)
Write input to filename as a single-spectrum mzML file via FileHandler.
void updateMembers_() override
Recompute the per-band mzs_ / bin_sizes_ caches and push the sgf:* parameters into the SavitzkyGolayF...
FIAMSDataProcessor()
Construct with the FIA-MS default parameters.
void runAccurateMassSearch(FeatureMap &input, OpenMS::MzTab &output)
Run AccurateMassSearchEngine on input and write the matches into output.
std::vector< float > mzs_
Per-band m/z centres consumed by mergeAlongTime; populated by updateMembers_.
Definition FIAMSDataProcessor.h:229
FIAMSDataProcessor(const FIAMSDataProcessor &cp)=default
Copy constructor.
const std::vector< float > & getMZs()
Return the band centres used by mergeAlongTime.
FeatureMap convertToFeatureMap(const MSSpectrum &input)
Wrap input's peaks as Feature objects in a new FeatureMap, tagging the "scan_polarity" meta value.
A container for features.
Definition FeatureMap.h:78
In-Memory representation of a mass spectrometry run.
Definition MSExperiment.h:49
The representation of a 1D spectrum.
Definition MSSpectrum.h:44
Data model of MzTab files. Please see the official MzTab specification at https://code....
Definition MzTab.h:455
This class implements a fast peak-picking algorithm best suited for high resolution MS data (FT-ICR-M...
Definition PeakPickerHiRes.h:59
Computes the Savitzky-Golay filter coefficients using QR decomposition.
Definition SavitzkyGolayFilter.h:79
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19