OpenMS
IsotopeLabelingMDVs.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: 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, Feature& corrected_feature,
68  const Matrix<double>& correction_matrix, const DerivatizationAgent& correction_matrix_agent);
69 
85  const FeatureMap& normalized_featureMap, FeatureMap& corrected_featureMap,
86  const Matrix<double>& correction_matrix, const DerivatizationAgent& correction_matrix_agent);
87 
100  Feature& normalized_feature,
101  const std::vector<double>& experiment_data, const std::string& isotopic_purity_name);
102 
115  FeatureMap& normalized_featureMap,
116  const std::vector<std::vector<double>>& experiment_data, const std::vector<std::string>& isotopic_purity_name);
117 
127  Feature& normalized_feature,
128  const std::string& feature_name, const std::string& fragment_isotopomer_theoretical_formula);
129 
139  FeatureMap& normalized_featureMap,
140  const std::string& feature_name,
141  const std::map<std::string, std::string>& fragment_isotopomer_theoretical_formulas);
142 
154  const Feature& measured_feature, Feature& normalized_feature,
155  const MassIntensityType& mass_intensity_type, const std::string& feature_name);
156 
168  const FeatureMap& measured_featureMap, FeatureMap& normalized_featureMap,
169  const MassIntensityType& mass_intensity_type, const std::string& feature_name);
170 
171  protected:
173  void updateMembers_() override;
174  };
175 }
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
void calculateMDVAccuracies(FeatureMap &normalized_featureMap, 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 isotopicCorrections(const FeatureMap &normalized_featureMap, FeatureMap &corrected_featureMap, 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 calculateMDVs(const FeatureMap &measured_featureMap, FeatureMap &normalized_featureMap, 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...
~IsotopeLabelingMDVs() override
Destructor.
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 updateMembers_() override
Synchronize members with param class.
DerivatizationAgent
Definition: IsotopeLabelingMDVs.h:35
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...
void calculateIsotopicPurities(FeatureMap &normalized_featureMap, 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...
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22