OpenMS
Loading...
Searching...
No Matches
DefaultChromHandler.h
Go to the documentation of this file.
1// Copyright (c) 2002-present, OpenMS Inc. -- EKU Tuebingen, ETH Zurich, and FU Berlin
2// SPDX-License-Identifier: BSD-3-Clause
3//
4//
5// --------------------------------------------------------------------------
6// $Maintainer: Justin Sing $
7// $Authors: Justin Sing $
8// --------------------------------------------------------------------------
9#pragma once
10
14#include <memory>
15
16namespace OpenMS
17{
41 class OPENMS_DLLAPI DefaultChromHandler : public IChromatogramHandler
42 {
43 public:
46
49
69 std::vector<MSChromatogram> collectIrtChromatogramsForIrt(
70 const std::vector< OpenSwath::SwathMap > & swath_maps,
71 const OpenSwath::LightTargetedExperiment & irt_transitions,
72 const Param & mrm_mapping_param,
73 const ChromExtractParams & cp,
75 bool pasef = false,
76 bool load_into_memory = false) override;
77
93 std::vector<MSChromatogram> extractAndMapChromatogramsForTransitions(
94 const std::vector< OpenSwath::SwathMap > & swath_maps,
95 const OpenSwath::LightTargetedExperiment & transition_exp,
96 const ChromExtractParams & cp,
97 const Param & mrm_mapping_param) override;
98
99 private:
101 std::unique_ptr<MRMChromHandler> mrm_;
102
104 std::unique_ptr<DIAChromHandler> dia_;
105 };
106
107} // namespace OpenMS
Dispatching chromatogram handler that picks SRM/MRM or DIA at runtime based on the input maps.
Definition DefaultChromHandler.h:42
std::unique_ptr< DIAChromHandler > dia_
Inner DIA handler; selected when at least one input map carries MS1 or spectra.
Definition DefaultChromHandler.h:104
std::unique_ptr< MRMChromHandler > mrm_
Inner SRM/MRM handler; selected when all input maps are chromatogram-only.
Definition DefaultChromHandler.h:101
std::vector< MSChromatogram > collectIrtChromatogramsForIrt(const std::vector< OpenSwath::SwathMap > &swath_maps, const OpenSwath::LightTargetedExperiment &irt_transitions, const Param &mrm_mapping_param, const ChromExtractParams &cp, const TransformationDescription &trafo=TransformationDescription(), bool pasef=false, bool load_into_memory=false) override
Collect iRT chromatograms by delegating to the SRM/MRM or DIA handler.
DefaultChromHandler()
Default constructor; eagerly constructs the inner SRM/MRM and DIA handlers.
std::vector< MSChromatogram > extractAndMapChromatogramsForTransitions(const std::vector< OpenSwath::SwathMap > &swath_maps, const OpenSwath::LightTargetedExperiment &transition_exp, const ChromExtractParams &cp, const Param &mrm_mapping_param) override
Extract and map analytical transition chromatograms via the SRM/MRM or DIA handler.
~DefaultChromHandler() override
Destructor.
Abstract interface for providing chromatograms.
Definition IChromatogramHandler.h:41
Management and storage of parameters / INI files.
Definition Param.h:46
Generic description of a coordinate transformation.
Definition TransformationDescription.h:38
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
ChromatogramExtractor parameters.
Definition OpenSwathWorkflow.h:54
Definition TransitionExperiment.h:369