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{
19 class OPENMS_DLLAPI DefaultChromHandler : public IChromatogramHandler
20 {
21 public:
24
25 std::vector<MSChromatogram> collectIrtChromatogramsForIrt(
26 const std::vector< OpenSwath::SwathMap > & swath_maps,
27 const OpenSwath::LightTargetedExperiment & irt_transitions,
28 const Param & mrm_mapping_param,
29 const ChromExtractParams & cp,
31 bool pasef = false,
32 bool load_into_memory = false) override;
33
34 std::vector<MSChromatogram> extractAndMapChromatogramsForTransitions(
35 const std::vector< OpenSwath::SwathMap > & swath_maps,
36 const OpenSwath::LightTargetedExperiment & transition_exp,
37 const ChromExtractParams & cp,
38 const Param & mrm_mapping_param) override;
39
40 private:
41 std::unique_ptr<MRMChromHandler> mrm_;
42 std::unique_ptr<DIAChromHandler> dia_;
43 };
44
45} // namespace OpenMS
Default handler that delegates to SRM/MRM or DIA handler depending on input.
Definition DefaultChromHandler.h:20
std::unique_ptr< DIAChromHandler > dia_
Definition DefaultChromHandler.h:42
std::unique_ptr< MRMChromHandler > mrm_
Definition DefaultChromHandler.h:41
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 from the swath maps and try to map them to the provided iRT transitions.
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 (or select) chromatograms for the given transitions and return mapped & filtered chromatogram...
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:37
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
ChromatogramExtractor parameters.
Definition OpenSwathWorkflow.h:54
Definition TransitionExperiment.h:356