OpenMS
IonMobilityScoring.h
Go to the documentation of this file.
1 // Copyright (c) 2002-2023, The OpenMS Team -- EKU Tuebingen, ETH Zurich, and FU Berlin
2 // SPDX-License-Identifier: BSD-3-Clause
3 //
4 // --------------------------------------------------------------------------
5 // $Maintainer: Hannes Roest $
6 // $Authors: Hannes Roest $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
11 // data access
17 
19 
20 // scoring
22 
23 #include <vector>
24 
25 namespace OpenMS
26 {
27 
39  class OPENMS_DLLAPI IonMobilityScoring
40  {
43 
44  public:
45 
48 
51 
69  static void driftScoring(const OpenSwath::SpectrumPtr& spectrum,
70  const std::vector<TransitionType> & transitions,
71  OpenSwath_Scores & scores,
72  const double drift_lower,
73  const double drift_upper,
74  const double drift_target,
75  const double dia_extraction_window_,
76  const bool dia_extraction_ppm_,
77  const bool use_spline,
78  const double drift_extra);
79 
97  static void driftScoringMS1(const OpenSwath::SpectrumPtr& spectrum,
98  const std::vector<TransitionType> & transitions,
99  OpenSwath_Scores & scores,
100  const double drift_lower,
101  const double drift_upper,
102  const double drift_target,
103  const double dia_extract_window_,
104  const bool dia_extraction_ppm_,
105  const bool use_spline,
106  const double drift_extra);
107 
126  static void driftScoringMS1Contrast(const OpenSwath::SpectrumPtr& spectrum, const OpenSwath::SpectrumPtr& ms1spectrum,
127  const std::vector<TransitionType> & transitions,
128  OpenSwath_Scores & scores,
129  const double drift_lower,
130  const double drift_upper,
131  const double dia_extract_window_,
132  const bool dia_extraction_ppm_,
133  const double drift_extra);
134  };
135 }
136 
A class that calls the ion mobility scoring routines.
Definition: IonMobilityScoring.h:40
static void driftScoringMS1(const OpenSwath::SpectrumPtr &spectrum, const std::vector< TransitionType > &transitions, OpenSwath_Scores &scores, const double drift_lower, const double drift_upper, const double drift_target, const double dia_extract_window_, const bool dia_extraction_ppm_, const bool use_spline, const double drift_extra)
Performs scoring of the ion mobility dimension in MS1.
~IonMobilityScoring()
Destructor.
static void driftScoringMS1Contrast(const OpenSwath::SpectrumPtr &spectrum, const OpenSwath::SpectrumPtr &ms1spectrum, const std::vector< TransitionType > &transitions, OpenSwath_Scores &scores, const double drift_lower, const double drift_upper, const double dia_extract_window_, const bool dia_extraction_ppm_, const double drift_extra)
Performs scoring of the ion mobility dimension in MS1 and MS2 (contrast)
OpenSwath::LightTransition TransitionType
Definition: IonMobilityScoring.h:42
OpenSwath::LightCompound CompoundType
Definition: IonMobilityScoring.h:41
static void driftScoring(const OpenSwath::SpectrumPtr &spectrum, const std::vector< TransitionType > &transitions, OpenSwath_Scores &scores, const double drift_lower, const double drift_upper, const double drift_target, const double dia_extraction_window_, const bool dia_extraction_ppm_, const bool use_spline, const double drift_extra)
Performs scoring of the ion mobility dimension in MS2.
IonMobilityScoring()
Constructor.
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22
boost::shared_ptr< Spectrum > SpectrumPtr
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/DataStructures.h:270
A structure to hold the different scores computed by OpenSWATH.
Definition: OpenSwathScores.h:57
Definition: TransitionExperiment.h:127
Definition: TransitionExperiment.h:20