OpenMS
IsotopeLabelingMDVs.h
Go to the documentation of this file.
1 // Copyright (c) 2002-present, The OpenMS Team -- EKU Tuebingen, ETH Zurich, and FU Berlin
2 // SPDX-License-Identifier: BSD-3-Clause
3 //
4 // --------------------------------------------------------------------------
5 // $Maintainer: Ahmed Khalil $
6 // $Authors: Ahmed Khalil $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
14 #include <OpenMS/KERNEL/Feature.h>
15 
16 namespace OpenMS
17 {
22  class OPENMS_DLLAPI IsotopeLabelingMDVs :
23  public DefaultParamHandler
24  {
25  public:
29 
33 
35  {
36  NOT_SELECTED,
37  TBDMS,
38  SIZE_OF_DERIVATIZATIONAGENT
39  };
40 
41  enum class MassIntensityType
42  {
43  NORM_MAX,
44  NORM_SUM,
45  SIZE_OF_MASSINTENSITYTYPE
46  };
47 
48  static const std::string NamesOfDerivatizationAgent[static_cast<int>(DerivatizationAgent::SIZE_OF_DERIVATIZATIONAGENT)];
49 
50  static const std::string NamesOfMassIntensityType[static_cast<int>(MassIntensityType::SIZE_OF_MASSINTENSITYTYPE)];
51 
67  const Feature& normalized_feature,
68  Feature& corrected_feature,
69  const Matrix<double>& correction_matrix,
70  const DerivatizationAgent& correction_matrix_agent);
71 
87  const FeatureMap& measured_fm,
88  FeatureMap& corrected_fm,
89  const Matrix<double>& correction_matrix,
90  const DerivatizationAgent& correction_matrix_agent);
91 
104  Feature& normalized_feature,
105  const std::vector<double>& experiment_data,
106  const std::string& isotopic_purity_name);
107 
120  FeatureMap& measured_fm,
121  const std::vector<std::vector<double>>& experiment_data,
122  const std::vector<std::string>& isotopic_purity_name);
123 
133  Feature& normalized_feature,
134  const std::string& feature_name,
135  const std::string& fragment_isotopomer_theoretical_formula);
136 
146  FeatureMap& normalized_fm,
147  const std::string& feature_name,
148  const std::map<std::string, std::string>& fragment_isotopomer_theoretical_formulas);
149 
161  const Feature& measured_feature,
162  Feature& normalized_feature,
163  const MassIntensityType& mass_intensity_type,
164  const std::string& feature_name);
165 
177  const FeatureMap& measured_fm,
178  FeatureMap& normalized_fm,
179  const MassIntensityType& mass_intensity_type,
180  const std::string& feature_name);
181 
182  protected:
184  void updateMembers_() override;
185  };
186 }
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:66
A container for features.
Definition: FeatureMap.h:80
An LC-MS feature.
Definition: Feature.h:46
IsotopeLabelingMDVs is a class to support and analyze isotopic labeling experiments (i....
Definition: IsotopeLabelingMDVs.h:24
void calculateIsotopicPurity(Feature &normalized_feature, const std::vector< double > &experiment_data, const std::string &isotopic_purity_name)
This function calculates the isotopic purity of the MDV using the following formula: isotopic purity ...
MassIntensityType
Definition: IsotopeLabelingMDVs.h:42
~IsotopeLabelingMDVs() override
Destructor.
void calculateMDVAccuracies(FeatureMap &normalized_fm, const std::string &feature_name, const std::map< std::string, std::string > &fragment_isotopomer_theoretical_formulas)
This function calculates the accuracy of the MDVs as compared to the theoretical MDVs (only for 12C q...
void isotopicCorrection(const Feature &normalized_feature, Feature &corrected_feature, const Matrix< double > &correction_matrix, const DerivatizationAgent &correction_matrix_agent)
This function performs an isotopic correction to account for unlabeled abundances coming from the der...
void calculateMDVAccuracy(Feature &normalized_feature, const std::string &feature_name, const std::string &fragment_isotopomer_theoretical_formula)
This function calculates the accuracy of the MDV as compared to the theoretical MDV (only for 12C qua...
void calculateMDVs(const FeatureMap &measured_fm, FeatureMap &normalized_fm, const MassIntensityType &mass_intensity_type, const std::string &feature_name)
This function calculates the mass distribution vector (MDV) either normalized to the highest mass int...
void updateMembers_() override
Synchronize members with param class.
DerivatizationAgent
Definition: IsotopeLabelingMDVs.h:35
void isotopicCorrections(const FeatureMap &measured_fm, FeatureMap &corrected_fm, const Matrix< double > &correction_matrix, const DerivatizationAgent &correction_matrix_agent)
This function performs an isotopic correction to account for unlabeled abundances coming from the der...
void calculateIsotopicPurities(FeatureMap &measured_fm, const std::vector< std::vector< double >> &experiment_data, const std::vector< std::string > &isotopic_purity_name)
This function calculates the isotopic purity of the MDVs using the following formula: isotopic purity...
void calculateMDV(const Feature &measured_feature, Feature &normalized_feature, const MassIntensityType &mass_intensity_type, const std::string &feature_name)
This function calculates the mass distribution vector (MDV) either normalized to the highest mass int...
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19